|
Class: TextFormatter (in Comanche)
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
formatting
-
crToCrlf: aCrDelimitedString
-
-
crlfToCr: aCrlfDelimitedString
-
-
decodeFromHttp: aHttpString
-
-
decodeFromXmlCr
-
-
decodeFromXmlCr: xml
-
-
decodeFromXmlCrlf
-
-
decodeFromXmlCrlf: xml
-
-
encodeToHttp: aString
-
-
encodeToStrictXmlCr
-
-
encodeToStrictXmlCr: aString
-
-
encodeToStrictXmlCrlf
-
-
encodeToStrictXmlCrlf: aString
-
-
encodeToXmlCr
-
-
encodeToXmlCr: aString
-
-
encodeToXmlCrlf
-
-
encodeToXmlCrlf: aString
-
initialize-release
-
initialize
-
Carriage Return Conversions
usage example(s):
instance creation
-
new
-
accessing
-
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.
-
addMappingFrom: original to: replacement
-
A Mapping is when the text is scanned and all instances of original are mapped to
their replacements.
-
remove: key
-
Removes a formatter (action, mapping) from the TextFormatter.
initializing
-
initialize
-
private
-
action: action value: value text: text
-
-
addFormatter: formatter at: position
-
Adds a formatter to the position in the formattingArray.
-
format: text actionValue: value onTo: stream
-
Apply all the formatting on text and put it onto stream.
processing
-
format: text
-
Apply all the formatting to the text and return it as a stream
-
format: text onTo: stream
-
|