Group String Functions
AddASCII()
Adds a numeric value to the ASCII code of a specified character in a string.
AddASCII( <cString>, <nValue>, [<nPosition>] ; // Default: Len(cString) ) --> cString
AfterAtNum()
Substring right to the last occurrance of a search string found in a string.
AfterAtNum( <cSearchString>, <cString>, [<nCount>], [<nIgnoreCharsFromLeft>] ; // Default: 0 ) --> cResultString
ASCIISum()
Sums the ASCII codes of all characters in a string.
ASCIISum( <cString> ) --> nASCIISum
AscPos()
Determines the ASCII code of a specified character in a string.
AscPos( <cString>, [<nPosition>] ; // Default: Len(cString) ) --> nASCIICode
AtAdjust()
Justifies a substring within a string.
AtAdjust( <cSearchString>, ; // Type: C <cString>, ; // Type: C <nPosition>, ; // Type: N [<nCount>], ; // Type: N [<nIgnoreCharsFromLeft>], ; // Type: N Default: 0 [<nCharacter|cCharacter>] ; // Type: NC Default: 32 ) --> cJustifiedString
AtNum()
Determines the position of a substring within a string (multiple occurrances)
AtNum( <cSearchString>, <cString>, [<nCount>], [<nIgnoreCharsFromLeft>] ; // Default: 0 ) --> nPosition
AtRepl()
Searches a substring within a string and replaces it with another substring
AtRepl( <cSearchString>, <cString>, <cReplaceString>, [<nCount>], [<lReplaceOneOnly>] ; // Default: .F. ) --> cResultString
AtToken()
Determines the position of the n-th token in a string.
AtToken( <cString>, [<cDelimiter>], [<nWhichToken>] ) --> nPosition
BeforAtNum()
Substring left to the last occurrance of a search string found in a string.
BeforAtNum( <cSearchString>, <cString>, [<nCount>], [<nIgnoreCharsFromLeft>] ; // Default: 0 ) --> cResultString
Center()
Centers a string.
Center( <cString>, [<nLength>], ; // Default: MaxCol()+1 [<cFillCharacter>], ; // Default: Chr(32) [<lFillLeftAndRight>] ; // Default: .F. ) --> cCenteredString
CharAdd()
Adds the ASCII codes of corresponding characters in two strings.
CharAdd( <cString1>, <cString2> ) --> cResultString
CharAND()
Binary ANDs the ASCII codes of corresponding characters in two strings.
CharAND( <cString1>, <cString2> ) --> cResultString
CharEven()
Retrieves all characters at even positions in a string.
CharEven( <cString> ) --> cResultString
CharList()
Removes duplicate characters from a string.
CharList( <cString> ) --> cResultString
CharMirr()
Reverses the order of characters in a string.
CharMirr( <cString>, [<lIgnoreTrailingSpaces>] ; // Default: .F. ) --> cString
CharMix()
Mixes characters of two strings.
CharMix( <cString1>, <cString2> ) --> cResultString
CharNoList()
Creates a string containing missing characters.
CharNoList( [<cString>] ; // Default: "" ) --> cNotInString
CharNOT()
Binary complements the ASCII codes of all characters in a string.
CharNOT( <cString> ) --> cResultString
CharOdd()
Retrieves all characters at odd positions in a string.
CharOdd( <cString> ) --> cResultString
CharOne()
Removes the specified duplicate characters from a string.
CharOne( [<cDeleteChars>], ; // Default: "" <cString> ) --> cResultString
CharOnly()
Removes all but the specified characters from a string
CharOnly( <cCharsToRemain>, <cString> ) --> cResultString
CharOR()
Binary ORs the ASCII codes of corresponding characters in two strings.
CharOR( <cString1>, <cString2> ) --> cResultString
CharPack()
Packs a string.
CharPack( <cString>, [<nMethod>] ; // Default: 0 ) --> cPackedString
CharRela()
Determines whether two substrings in two strings have the same position.
CharRela( <cSearchString1>, <cString1>, <cSearchString2>, <cString2> ) --> nPosition
CharRelRep()
Replaces characters if 2 substrings are found in 2 strings at the same position.
CharRelRep( <cSearchString1>, <cString1>, <cSearchString2>, <cString2>, <cReplaceString> ) --> cResultString
CharRem()
Removes specified characters from a string.
CharRem( <cDeleteChars>, <cString> ) --> cResultString
CharRepl()
Defines characters to replace specified characters in a string.
CharRepl( <cSearchChars>, <cString>, <cReplaceChars>, [<lSingleSearch>] ; // Default: .F. ) --> cResultString
CharSort()
Sorts characters or substrings within a string.
CharSort( <cString>, [<nSubstrLen>], ; // Default: 1 [<nCompareLen>], ; // Default: 1 [<nIgnoreCharsFromLeft>], ; // Default: 0 [<nSubstringOffset>], ; // Default: 0 [<nSortLen>], ; // Default: Len(cString) [<lDescending>] ; // Default: .F. ) --> cResultString
CharSpread()
Formats a string for block paragraphs.
CharSpread( <cString>, ; // Type: C <nLength>, ; // Type: N [<cCharacter|nASCIICode>] ; // Type: CN Default: Chr(32) ) --> cResultString
CharSwap()
Exchanges adjacent characters in a string.
CharSwap( <cString> ) --> cResultString
CharUnpack()
Unpacks a string which was packed with CharPack().
CharUnpack( <cPackedString> ) --> cUnpackedString
CharXOR()
Binary XORs the ASCII codes of corresponding characters in two strings.
CharXOR( <cString1>, <cString2> ) --> cResultString
CheckSum()
Calculates a checksum for strings.
CheckSum( <cString> ) --> nCheckSum
CountLeft()
Counts a specified character at the beginning of a string.
CountLeft( <cString>, ; // Type: C [<cCharacter|nASCIICode>] ; // Type: CN Default: Chr(32) ) --> nCount
CountRight()
Counts a specified character at the end of a string.
CountRight( <cString>, ; // Type: C [<cCharacter|nASCIICode>] ; // Type: CN Default: Chr(32) ) --> nCount
Crypt()
Encrypts/Decrypts a string.
Crypt( <cString>, <cPassWord>, [<lEnhancedSecurity>] ; // default: .F. ) --> cResultString
CSetAtMuPa()
Sets Multiple Pass mode for At???() functions.
CSetAtMuPa( [<lNewSetting>] ; // Default: NIL ) --> lOldSetting
CSetRef()
Sets or retrieves the Pass by Reference setting for string functions.
CSetRef( [<lNewSetting>] ) --> lOldSetting
Expand()
Inserts characters between adjacent characters in a string.
Expand( <cString>, ; // Type: C [<nCount>], ; // Type: N Default: 1 [<cCharacter|nASCIICode>] ; // Type: CN Default: Chr(32) ) --> cResultString
JustLeft()
Moves characters from the beginning to the end of a string.
JustLeft( <cString>, ; // Type: C [<cCharacter|nASCIICode>] ; // Type: CN Default: Chr(32) ) --> cResultString
JustRight()
Moves characters from the end to the beginning of a string.
JustRight( <cString>, ; // Type: C [<cCharacter|nASCIICode>] ; // Type: CN Default: Chr(32) ) --> cResultString
Like()
Compares strings allowing *? wild cards.
Like( <cWildCardString>, <cCompareString> ) --> lEqual
LtoC()
Changes a logical value to a character.
LtoC( [<lValue>] ; // Default: .F. ) --> cCharacter
MaxLine()
Determines the longest line in a (formatted) string.
MaxLine( <cString> ) --> nLineLength
NumAt()
Counts a substring in a string.
NumAt( <cSearchString>, <cString>, [<nIgnoreCharsFromLeft>] ; // Default: 0 ) --> nCount
NumLine()
Determines the number of lines needed to output a string.
NumLine( <cString>, [<nLineLength>] ; // Default: 80 ) --> nLineCount
NumToken()
Counts tokens in a string.
NumToken( <cString>, [<cDelimiter>], [<nSkipStep>] ; // Default: 0 ) --> nCount
PadLeft()
Fills a string on the left side.
PadLeft( <cString>, ; // Type: C <nLength>, ; // Type: N [<cCharacter|nASCIICode>] ; // Type: CN Default: Chr(32) ) --> cPaddedString
PadRight()
Fills a string on the right side.
PadRight( <cString>, ; // Type: C <nLength>, ; // Type: N [<cCharacter|nASCIICode>] ; // Type: CN Default: Chr(32) ) --> cString
PosAlpha()
Retrieves the position of the first letter in a string.
PosAlpha( <cString>, [<lNoLetter>], ; // Default: .F. [<nIgnoreCharsFromLeft>] ; // Default: 0 ) --> nPosition
PosChar()
Replaces a single character at a specified position in a string.
PosChar( <cString>, ; // Type: C <cCharacter|nASCIICode>, ; // Type: CN [<nPosition>] ; // Type: N Default: Len(<cString>) ) --> cResultString
PosDel()
Removes characters at a specified position in a string.
PosDel( <cString>, [<nStartPos>], ; // Default: Len( <cString> ) <nDeleteLen> ) --> cResultString
PosDiff()
Determines the first position where two strings are different.
PosDiff( <cString1>, <cString2>, [<nIgnoreCharsFromLeft>] ; // Default: 0 ) --> nPosition
PosEqual()
Determines the first position where two strings are equal.
PosEqual( <cString1>, <cString2>, [<nCompareChars>], [<nIgnoreCharsFromLeft>] ; // Default: 0 ) --> nPosition
PosIns()
Inserts a character string into a string at a specified position.
PosIns( <cString>, <cInsertString>, [<nPosition>] ; // Default: Len(<cString>)+1 ) --> cResultString
PosLower()
Retrieves the position of the first lower case letter in a string.
PosLower( <cString>, [<lNoLetter>], ; // Default: .F. [<nIgnoreCharsFromLeft>] ; // Default: 0 ) --> nPosition
PosRange()
Retrieves the position of the first character out of a range found in a string.
PosRange( <cRangeStartCharacter>, <cRangeEndCharacter>, <cString>, [<lNotInRange>], ; // Default: .F. [<nIgnoreCharsFromLeft>] ; // Default: 0 ) --> nPosition
PosRepl()
Replaces characters in a string at a specified position.
PosRepl( <cString>, <cReplace>, [<nStartPos>] ) --> cResultString
PosUpper()
Retrieves the position of the first upper case letter in a string.
PosUpper( <cString>, [<lNoLetter>], ; // Default: .F. [<nIgnoreCharsFromLeft>] ; // Default: 0 ) --> nPosition
RangeRem()
Deletes all characters in a string out of a range of specified characters.
RangeRem( <cRangeStartChar>, <cRangeEndChar>, <cString> ) --> cResultString
RangeRepl()
Replaces a range of characters with a specified character.
RangeRepl( <cRangeStartChar>, <cRangeEndChar>, <cString>, <cReplaceCharacter> ) --> cResultString
RemAll()
Removes a specified character from the left and the right side of a string.
RemAll( <cString>, ; // Type: C [<cCharacter|nASCIICode>] ; // Type: CN Default: Chr(32) ) --> cResultString
RemLeft()
Removes a specified character from the left side of a string.
RemLeft( <cString>, ; // Type: C [<cCharacter|nASCIICode>] ; // Type: CN Default: Chr(32) ) --> cResultString
RemRight()
Removes a specified character from the right side of a string.
RemRight( <cString>, ; // Type: C [<cCharacter|nASCIICode>] ; // Type: CN Default: Chr(32) ) --> cResultString
ReplAll()
Replaces specified characters at the left and the right side of a string.
ReplAll( <cString>, ; // Type: C <cReplaceChar|nReplaceChar>, ; // Type: CN [<cSearchChar|nSearchChar>] ; // Type: CN Default: Chr(32) ) --> cResultString
ReplLeft()
Replaces specified characters at the left side of a string.
ReplLeft( <cString>, ; // Type: C <cReplaceChar|nReplaceChar>, ; // Type: CN [<cSearchChar|nSearchChar>] ; // Type: CN Default: Chr(32) ) --> cResultString
ReplRight()
Replaces specified characters at the right side of a string.
ReplRight( <cString>, ; // Type: C <cReplaceChar|nReplaceChar>, ; // Type: CN [<cSearchChar|nSearchChar>] ; // Type: CN Default: Chr(32) ) --> cResultString
RestToken()
Restores the environment of the incremental tokenizer.
RestToken( <cTokenEnvironment> ) --> cNullString
SaveToken()
Saves the environment of the tokenizer.
SaveToken() --> cTokenEnvironment
SetAtLike()
Sets the search mode for At???() functions
SetAtLike( [<nNewMode>], ; // Default: 0 [<cWildCard>] ; // Default: "?" ) --> nOldMode
StrDiff()
Calculates the similarity of two strings (Levenshtein distance)
StrDiff( <cString1>, <cString2>, [<nReplaceWeight>], ; // Default: 3 [<nDeleteWeight>], ; // Default: 6 [<nInsertWeight>] ; // Default: 1 ) --> nSimilarity
StrSwap()
Exchanges characters between two strings.
StrSwap( <cString1>, <cString2> ) --> ""
TabExpand()
Replaces a tab with a specified number of another character.
TabExpand( <cString>, ; // Type: C [<nTabWidth>], ; // Type: N Default: 8 [<cFillChar|nASCIICode>] ; // Type: CN Default: Chr(32) ) --> cResultString
TabPack()
Replaces multiple occurrances of a character with a tab (= Chr(9)).
TabPack( <cString>, ; // Type: C [<nTabWidth>], ; // Type: N Default: 8 [<cFillChar|nASCIICode>] ; // Type: CN Default: Chr(32) ) --> cResultString
Token()
Retrieves the n-th token from a string.
Token( <cString>, [<cDelimiter>], [<nWhichToken>], [<nSkipStep>] ; // Default: 0 ) --> cToken
TokenAt()
Retrieves the position of the token found with TokenNext().
TokenAt( <lNextDelimiter> ; // Default: .F. ) --> nPosition
TokenEnd()
Checks whether tokens still can be found with TokenNext().
TokenEnd() --> lTokenEnd
TokenInit()
Prepares a string for the incremental tokenizer.
TokenInit( [<@cString>], [<cDelimiter>], [<nSkipStep>] ; // Default: 0 ) --> lSuccess
TokenLower()
Changes the first character of tokens to lower case.
TokenLower( <cString>, [<cDelimiter>], [<nCount>] ) --> cResultString
TokenNext()
Retrieves the next token from a string.
TokenNext( @<cTokenInitString> ) --> cToken
TokenSep()
Retrieves the delimiter of a token.
TokenSep( [<lRightDelimiter>] ; // Default: .F. ) --> cDelimiter
TokenUpper()
Changes the first character of tokens to upper case.
TokenUpper( <cString>, [<cDelimiter>], [<nCount>] ) --> cResultString
ValPos()
Retrieves the numeric value of a character at a specified position in a string.
ValPos( <cString>, [<nPosition>] ) --> nDigit
WordOne()
Removes multiple words (2 byte sequences) in a string.
WordOne( [<cWord>], <cString> ) --> cResultString
WordOnly()
Removes all words (2 byte sequence) from a string not defined in a word list.
WordOnly( <cWordString>, <cString> ) --> cResultString
WordRepl()
Replaces words (2 byte sequences) in a string with a specified word.
WordRepl( <cSearchWords>, <cString>, <cReplaceWords>, [<lSkipTwoBytes>] ; // Default: .F. ) --> cResultString
WordSwap()
Swaps adjacent words (2 byte sequences) in a string.
WordSwap( <cString>, [<lSwapBytes>] ; // Default: .F. ) --> cResultString
WordToChar()
Replaces words (2 byte sequence) with characters (1 byte)
WordToChar( <cWordList>, <cString>, <cCharacterList> ) --> cResultString