|
Abbreviate a text string to the specified length. The abbreviation is performed by removing vowels and other characters until the target length is hit. Legibility of the result depends on the severity of the abbreviation.
Abbreviated text.
<cfx_kmString F=Abbreviate V=variable SHOW
STRING=text-string
LENGTH=number >
| Attribute | Description | Required? |
| STRING | Any text string. | YES |
| LENGTH | Maximum abbreviated length (default=74) | no |
| Examples | |
|
<cfx_kmString F=Abbreviate LENGTH=15
STRING="Department of Strange Words"> |
|
| Result: | Dprt of Str Wrd |
The original string with text deleted.
<cfx_kmString F=DeleteBetweenChars V=variable SHOW
STRING=text-string
CHAR1=character
CHAR2=character
INCLUSIVE >
| Attribute | Description | Required? |
| STRING | Any text string. | YES |
| CHAR1 | First character to search for. | YES |
| CHAR2 | Second character to search for. | YES |
| INCLUSIVE | If the attribute is present, the enclosing characters are deleted along with the text. | no |
Ellipsiated text.
<cfx_kmString F=Ellipsiate V=variable SHOW
STRING=text-string
LENGTH=number >
| Attribute | Description | Required? |
| STRING | Any text string. | YES |
| LENGTH | Maximum abbreviated length (default=74) | no |
| Examples | |
|
<cfx_kmString F=Ellipsiate LENGTH=15
STRING="Department of Strange Words"> |
|
| Result: | Departme...e Words |
The text found between the characters.
<cfx_kmString F=ExtractBetweenChars V=variable SHOW
STRING=text-string
CHAR1=character
CHAR2=character
INCLUSIVE >
| Attribute | Description | Required? |
| STRING | Any text string. | YES |
| CHAR1 | First character to search for. | YES |
| CHAR2 | Second character to search for. | YES |
| INCLUSIVE | If the attribute is present, return the enclosing characters with the text. | no |
Text with CR/LF line endings.
<cfx_kmString F=ForceCRLF V=variable SHOW
STRING=text-string >
| Attribute | Description | Required? |
| STRING | Any text string. | YES |
Incremented string.
<cfx_kmString F=IncString V=variable SHOW
STRING=text-string >
| Attribute | Description | Required? |
| STRING | An alpha-numeric string | YES |
| Examples | |
|
<cfx_kmString F=IncString STRING="CZ999">
<cfx_kmString F=IncString STRING="199zZz"> <cfx_kmString F=IncString STRING="199ZzZ"> |
|
| Result: |
DA000 200aAa 200AaA |
Sorted text.
<cfx_kmString F=SortChars V=variable SHOW
STRING=text-string >
| Attribute | Description | Required? |
| STRING | Any text string. | YES |
| Examples | |
|
<cfx_kmString F=SortChars STRING="Mary had a little lamb.">
|
|
| Result: | .Maaaabdehilllmrtty |
Squozen text.
<cfx_kmString F=SqueezeAllBlanks V=variable SHOW
STRING=text-string >
| Attribute | Description | Required? |
| STRING | Any text string. | YES |
| Examples | |
|
<cfx_kmString F=SqueezeAllBlanks STRING="Mary had a little lamb.">
|
|
| Result: | Maryhadalittlelamb. |
Squozen text.
<cfx_kmString F=SqueezeCharacters V=variable SHOW
STRING=text-string
CHARS=text-string >
| Attribute | Description | Required? |
| STRING | Any text string. | YES |
| CHARS | String containing characters to squeeze. | YES |
| Examples | |
|
<cfx_kmString F=SqueezeCharacters CHARS="Mmt"
STRING="Mary had a little lamb."> |
|
| Result: | ary had a lile lab. |
Squozen text.
<cfx_kmString F=SqueezeExtraBlanks V=variable SHOW
STRING=text-string >
| Attribute | Description | Required? |
| STRING | Any text string. | YES |
| Examples | |
|
<cfx_kmString F=SqueezeExtraBlanks
STRING="Mary had a little lamb."> |
|
| Result: | Mary had a little lamb. |
Processed text.
<cfx_kmString F=StripCRLF V=variable SHOW
STRING=text-string
PRESERVE_DOUBLE >
| Attribute | Description | Required? |
| STRING | Any text string. | YES |
| PRESERVE_DOUBLE | Double pairs of CR/LF characters are often used to indicate paragraph breaks. If the PRESERVE_DOUBLE attribute is present, the double pairs (and thus the paragraph breaks) will be preserved. | no |
Text with tabs.
<cfx_kmString F=TabsIn V=variable SHOW
STRING=text-string
TABSIZE=number >
| Attribute | Description | Required? |
| STRING | Any text string. | YES |
| TABSIZE | Tab length, default=6. | YES |
Text without tabs.
<cfx_kmString F=TabsOut V=variable SHOW
STRING=text-string
TABSIZE=number >
| Attribute | Description | Required? |
| STRING | Any text string. | YES |
| TABSIZE | Tab length, default=6. | YES |
Numeric word count.
<cfx_kmString F=WordCount V=variable SHOW
STRING=text-string
DELIMITERS=text-string
QUOTERS=text-string >
| Attribute | Description | Required? |
| STRING | Any text string. | YES |
| DELIMITERS | String containing the desired word delimiter characters (default=spaces, punctuation, parentheses, etc.) | no |
| QUOTERS | String containing the desired word quoting characters (default=single and double quotes) | no |
| Examples | |
|
<cfx_kmString F=WordCount STRING="Mary had a little lamb.">
|
|
| Result: | 5 |
Single word. If the numbered word doesn't exist, the return value is empty.
<cfx_kmString F=WordGetNumbered V=variable SHOW
STRING=text-string
WORDNUM=word-number
DELIMITERS=text-string
QUOTERS=text-string >
| Attribute | Description | Required? |
| STRING | Any text string. | YES |
| WORDNUM | Desired word number. The first word is number 1. | YES |
| DELIMITERS | String containing the desired word delimiter characters (default=spaces, punctuation, parentheses, etc.) | no |
| QUOTERS | String containing the desired word quoting characters (default=single and double quotes) | no |
| Examples | |
|
<cfx_kmString F=WordGetNumbered WORDNUM=4
STRING="Mary had a little lamb."> |
|
| Result: | little |
Numeric position. If the numbered word doesn't exist, the return value is zero.
<cfx_kmString F=WordPosOfNumbered V=variable SHOW
STRING=text-string
WORDNUM=word-number
DELIMITERS=text-string
QUOTERS=text-string >
| Attribute | Description | Required? |
| STRING | Any text string. | YES |
| WORDNUM | Desired word number. The first word is number 1. | YES |
| DELIMITERS | String containing the desired word delimiter characters (default=spaces, punctuation, parentheses, etc.) | no |
| QUOTERS | String containing the desired word quoting characters (default=single and double quotes) | no |
| Examples | |
|
<cfx_kmString F=WordPosOfNumbered WORDNUM=4
STRING="Mary had a little lamb."> |
|
| Result: | 12 |
Text with the new word.
<cfx_kmString F=WordReplace V=variable SHOW
STRING=text-string
WORD=text-string
NEWWORD=text-string
SENSITIVE="Yes" or "No"
DELIMITERS=text-string
QUOTERS=text-string >
| Attribute | Description | Required? |
| STRING | Any text string. | YES |
| WORD | Word to find and replace. | YES |
| NEWWORD | Any text string. | YES |
| SENSITIVE | YES=Word search is case sensitive (default=NO). | no |
| DELIMITERS | String containing the desired word delimiter characters (default=spaces, punctuation, parentheses, etc.) | no |
| QUOTERS | String containing the desired word quoting characters (default=single and double quotes) | no |
| Examples | |
|
<cfx_kmString F=WordReplace WORD="little" NEWWORD="vicious"
STRING="Mary had a little lamb."> <cfx_kmString F=WordReplace WORD="mary" NEWWORD="Edgar" SENSITIVE=YES STRING="Mary had a little lamb named mary."> |
|
| Result: |
Mary had a vicious lamb. Mary had a little lamb named Edgar |
Text with the new word.
<cfx_kmString F=WordReplaceNumbered V=variable SHOW
STRING=text-string
WORDNUM=word-number
NEWWORD=text-string
DELIMITERS=text-string
QUOTERS=text-string >
| Attribute | Description | Required? |
| STRING | Any text string. | YES |
| WORDNUM | Word number. | YES |
| NEWWORD | Any text string. | YES |
| DELIMITERS | String containing the desired word delimiter characters (default=spaces, punctuation, parentheses, etc.) | no |
| QUOTERS | String containing the desired word quoting characters (default=single and double quotes) | no |
| Examples | |
|
<cfx_kmString F=WordReplaceNumbered WORDNUM=4 NEWWORD="vicious"
STRING="Mary had a little lamb."> |
|
| Result: | Mary had a vicious lamb. |
String containing the requested range of words.
<cfx_kmString F=WordSlice V=variable SHOW
STRING=text-string
START=word-number
END==word-number
DELIMITERS=text-string
QUOTERS=text-string >
| Attribute | Description | Required? |
| STRING | Any text string. | YES |
| DELIMITERS | String containing the desired word delimiter characters (default=spaces, punctuation, parentheses, etc.) | no |
| QUOTERS | String containing the desired word quoting characters (default=single and double quotes) | no |
Wrapped text.
<cfx_kmString F=WrapText V=variable SHOW
STRING=text-string
WIDTH=number >
| Attribute | Description | Required? |
| STRING | Any text string. | YES |
| WIDTH | Wrap column width. | YES |