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


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

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.1.0.0; WebServer 1.663 at exept.de:8081; Sat, 21 Jul 2018 07:27:35 GMT