Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

textutil_split(3tcl) [debian man page]

textutil::split(3tcl)				    Text and string utilities, macro processing 			     textutil::split(3tcl)

__________________________________________________________________________________________________________________________________________________

NAME
textutil::split - Procedures to split texts SYNOPSIS
package require Tcl 8.2 package require textutil::split ?0.7? ::textutil::split::splitn string ?len? ::textutil::split::splitx string ?regexp? _________________________________________________________________ DESCRIPTION
The package textutil::split provides commands that split strings by size and arbitrary regular expressions. The complete set of procedures is described below. ::textutil::split::splitn string ?len? This command splits the given string into chunks of len characters and returns a list containing these chunks. The argument len defaults to 1 if none is specified. A negative length is not allowed and will cause the command to throw an error. Providing an empty string as input is allowed, the command will then return an empty list. If the length of the string is not an entire multiple of the chunk length, then the last chunk in the generated list will be shorter than len. ::textutil::split::splitx string ?regexp? This command splits the string and return a list. The string is split according to the regular expression regexp instead of a simple list of chars. Note that if you parentheses are added into the regexp, the parentheses part of separator will be added into the result list as additional element. If the string is empty the result is the empty list, like for split. If regexp is empty the string is split at every character, like split does. The regular expression regexp defaults to "[\t \r\n]+". BUGS, IDEAS, FEEDBACK This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category textutil of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation. SEE ALSO
regexp(3tcl), split(3tcl), string(3tcl) KEYWORDS
regular expression, split, string CATEGORY
Text processing textutil 0.7 textutil::split(3tcl)

Check Out this Related Man Page

textutil::string(3tcl)				    Text and string utilities, macro processing 			    textutil::string(3tcl)

__________________________________________________________________________________________________________________________________________________

NAME
textutil::string - Procedures to manipulate texts and strings. SYNOPSIS
package require Tcl 8.2 package require textutil::string ?0.7? ::textutil::string::chop string ::textutil::string::tail string ::textutil::string::cap string ::textutil::string::uncap string ::textutil::string::longestCommonPrefixList list ::textutil::string::longestCommonPrefix ?string...? _________________________________________________________________ DESCRIPTION
The package textutil::string provides miscellaneous string manipulation commands. The complete set of procedures is described below. ::textutil::string::chop string A convenience command. Removes the last character of string and returns the shortened string. ::textutil::string::tail string A convenience command. Removes the first character of string and returns the shortened string. ::textutil::string::cap string Capitalizes the first character of string and returns the modified string. ::textutil::string::uncap string The complementary operation to ::textutil::string::cap. Forces the first character of string to lower case and returns the modified string. ::textutil::string::longestCommonPrefixList list ::textutil::string::longestCommonPrefix ?string...? Computes the longest common prefix for either the strings given to the command, or the strings specified in the single list, and returns it as the result of the command. If no strings were specified the result is the empty string. If only one string was specified, the string itself is returned, as it is its own longest common prefix. BUGS, IDEAS, FEEDBACK This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category textutil of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation. SEE ALSO
regexp(3tcl), split(3tcl), string(3tcl) KEYWORDS
capitalize, chop, common prefix, formatting, prefix, string, uncapitalize CATEGORY
Text processing textutil 0.7 textutil::string(3tcl)
Man Page