File 'base/string.tcl' (part of 'Pool_Base')
Home | Packages | Files | Procedures | Classes | Namespaces | Keywords | External packages
::pool::string::blank (n)
|
|
Argument: n
|
length of the string to generate.
|
Returns: A string consisting out of n spaces.
|
::pool::string::cap (string)
|
|
Argument: string
|
string to manipulate.
|
Returns: The string with its first character capitalized.
|
::pool::string::chop (string)
|
|
Argument: string
|
The string to manipulate.
|
Returns: The string without its last character.
|
::pool::string::fillPrefixes (arrayVar)
|
|
Argument: arrayVar
|
The name of the array containing the keys whose prefixes shall be computed here.
|
::pool::string::hangingIndent (text prefix)
|
|
Notes: This procedure is not checked by the testsuite.
|
Argument: text
|
The paragraph to indent.
|
Argument: prefix
|
The string to use as prefix for each line of text with.
|
Returns: Basically text, but indented a certain amount.
|
::pool::string::indent (text prefix)
|
|
Notes: This procedure is not checked by the testsuite.
|
Argument: text
|
The paragraph to indent.
|
Argument: prefix
|
The string to use as prefix for each line of text with.
|
Returns: Basically text, but indented a certain amount.
|
::pool::string::multipleReplaceInFile (file replacements)
|
|
Notes: There are no guarantees about the order of replacements. The file read completely into memory before processing it. The file must be readable and writable. This procedure is not checked by the testsuite.
|
Argument: file
|
name of the file to modify..
|
Argument: replacements
|
name of an array variable containing strings and their corresponding substitutions.
|
::pool::string::oneLine (text)
|
|
Argument: text
|
The string to compress.
|
Returns: The compressed string
|
::pool::string::prefixMap (arrayVar)
|
|
Argument: arrayVar
|
The name of the array containing the keys whose prefixes shall be computed here.
|
::pool::string::removeComments (text)
|
|
Notes: This procedure is not checked by the testsuite.
|
Argument: text
|
the string to compress.
|
Returns: The compressed string
|
::pool::string::removeContinuations (text)
|
|
Notes: This procedure is not checked by the testsuite.
|
Argument: text
|
The string to compress.
|
Returns: The compressed string
|
::pool::string::removeSpaces (text)
|
|
Notes: This procedure is not checked by the testsuite.
|
Argument: text
|
The string to compress.
|
Returns: The compressed string
|
::pool::string::removeWhitespace (text)
|
|
Notes: This procedure is not checked by the testsuite.
|
Argument: text
|
The string to compress.
|
Returns: The compressed string
|
::pool::string::rep (n text)
|
|
Notes: This algorithm proved to be rather fast, even in the small range of n in {60..90}. An alternative definition using regsub and format with O(n) complexity, thus doing most things at C-level is beaten regularly for n > 74!
|
Argument: n
|
Number of replications. A value < 0 is handled as 0
|
Argument: text
|
string to replicate.
|
Returns: The text, replicated n times.
|
::pool::string::replace (string from to new)
|
|
Argument: string
|
The string to manipulate.
|
Argument: from
|
The index of the first character to cut out of string.
|
Argument: to
|
The index behind the last character to cut of string. The special value 'new' denotes replacement to the end of the string.
|
Argument: new (= {})
|
The string replacing the information cut out of string.
|
Returns: The changed string.
|
::pool::string::replaceInFile (file before after)
|
|
Notes: The file is read completely into memory before processing it. The file must be readable and writable. This procedure is not checked by the testsuite.
|
Argument: file
|
name of the file to modify..
|
Argument: before
|
string to search for (and to replace by after).
|
Argument: after
|
string to insert in place of before.
|
::pool::string::rhc (text)
|
|
Argument: text
|
The code block to manipulate.
|
Returns: Basically text, but without heading comments.
|
::pool::string::rhel (text)
|
|
Argument: text
|
The text block to manipulate.
|
Returns: The text, but without heading empty lines.
|
::pool::string::stripPrefix (text prefix)
|
|
Argument: text
|
The string to check for prefix.
|
Argument: prefix
|
The string to remove from text.
|
Returns: The text, but without prefix.
|
::pool::string::tail (string)
|
|
Argument: string
|
string to manipulate.
|
Returns: The string without its first character.
|
::pool::string::uncap (string)
|
|
Argument: string
|
string to manipulate.
|
Returns: The string with its first character uncapitalized.
|
::pool::string::wrap (text len)
|
by Jeffrey Hobbs
|
|
Notes: This procedure is not checked by the testsuite.
|
Argument: text
|
The string to operate on.
|
Argument: len
|
The maximum allowed length of a single line.
|
Returns: Basically text, but with changed newlines to restrict the length of individual lines to at most len characters.
|
Home | Packages | Files | Procedures | Classes | Namespaces | Keywords | External packages
Generated by AutoDoc 2.4 at 09/14/2000, invoked by Andreas Kupries