Util/ Text.js

General Output text functions

Copyright

2004-2006 Rob Rohan (robr.nosp@m.ohan@gmai.nosp@m.l.com) All rights reserved

Summary
General Output text functions
General Output text functions
the default new line character to add to strings made by this class (default [\n])
Escapes the basic bad xml characters from a string
does the reverse of XmlFormat.
looks at a string and guesses if its a true or false value works with items like “TRUE”,etc
Takes an error object and gives a bit more description.
the current version

Text

General Output text functions

Namespace

Sortie.Util

Summary
the default new line character to add to strings made by this class (default [\n])
Escapes the basic bad xml characters from a string
does the reverse of XmlFormat.
looks at a string and guesses if its a true or false value works with items like “TRUE”,etc
Takes an error object and gives a bit more description.
the current version

Variables

Text. NEWLINE

the default new line character to add to strings made by this class (default [\n])

Functions

Text. XmlFormat

Escapes the basic bad xml characters from a string

Parameters

strpossible dirty string

Returns

xml friendly string

Text. UnXmlFormat

does the reverse of XmlFormat. unescapes xml characters

Parameters

strthe string to process

Returns

text with amp and lt replced with & and < etc.”

Text. ParseBoolean

looks at a string and guesses if its a true or false value works with items like “TRUE”,etc

Parameters

strboolean string

Returns

boolean true or false value

Text. Reflect

shows information about an objectlists functions and variables in a displayable form

Parameters

objthe object

Returns

a string representation of the object

Text. ExpandError

Takes an error object and gives a bit more description.  Some browers show more info then others...

Parameters

ethe error object to expand

Returns

the expanded object in a printable string

Variables

Sortie. Util. Text. VERSION

the current version