eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Comanche::TextFormatter':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: TextFormatter (in Comanche)


Inheritance:

   Object
   |
   +--Comanche::TextFormatter
      |
      +--Comanche::BookTemplateFormatter
      |
      +--Comanche::PageFormatter
      |
      +--Comanche::ShelfTemplateFormatter

Package:
stx:goodies/webServer/comanche/swiki
Category:
Comanche-Swiki-Formatting
Version:
rev: 1.11 date: 2018/05/15 12:18:56
user: sr
file: TextFormatter.st directory: goodies/webServer/comanche/swiki
module: stx stc-classLibrary: swiki

Class protocol:

formatting
o  crToCrlf: aCrDelimitedString

o  crlfToCr: aCrlfDelimitedString

o  decodeFromHttp: aHttpString

o  decodeFromXmlCr

o  decodeFromXmlCr: xml

o  decodeFromXmlCrlf

o  decodeFromXmlCrlf: xml

o  encodeToHttp: aString

o  encodeToStrictXmlCr

o  encodeToStrictXmlCr: aString

o  encodeToStrictXmlCrlf

o  encodeToStrictXmlCrlf: aString

o  encodeToXmlCr

o  encodeToXmlCr: aString

o  encodeToXmlCrlf

o  encodeToXmlCrlf: aString

initialize-release
o  initialize
Carriage Return Conversions

Usage example(s):

   self initialize

instance creation
o  new
(comment from inherited method)
return an instance of myself without indexed variables


Instance protocol:

accessing
o  addAction: block from: beginning to: end
When the Action is performed, the text is scanned for things that start with beginning
and stop with end. Whatever is between these two is then put into the block and what
gets returned is fed to the formatted document.

o  addMappingFrom: original to: replacement
A Mapping is when the text is scanned and all instances of original are mapped to
their replacements.

o  remove: key
Removes a formatter (action, mapping) from the TextFormatter.

initializing
o  initialize
(comment from inherited method)
just to ignore initialize to objects which do not need it

private
o  action: action value: value text: text

o  addFormatter: formatter at: position
Adds a formatter to the position in the formattingArray.

o  format: text actionValue: value onTo: stream
Apply all the formatting on text and put it onto stream.

processing
o  format: text
Apply all the formatting to the text and return it as a stream

o  format: text onTo: stream



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:29:40 GMT