String library functions

Function Name Description
ST_ContainsOnly Checks if a given string contains only any one of the given set of characters If Yes, it returns T else nil
ST_CountChar Count the number of characters in a string
ST_FindPattern Returns the start of a given text pattern in a test string.
ST_FormatStr Format an integer or real number as a string and return the string. If the value passed 'val' is a string, it is returned as such without any processing.
ST_fsrch Search for the first location of a character in a string
ST_IsAlphabet Checks if a given character is an alphabet (a-z or A-Z)
ST_KeepOnly Keeps only the specifid characters in a string and strips off the remaining characters.
ST_LJ Pad a String with spaces in the right(Left justified)
ST_LLimit Limits the length of a string truncating characters from the left side if necessary.
ST_lsrch Search for the last occurence of a character in a string
ST_LTrim Trims white spaces from the left until the first non-white character is encountered.
ST_PadLeft Pad a String with a character in the left
ST_PadRight Pad a String with a character in the right
ST_PatternTokens Tokenize a string based on a pattern delimiter string
ST_RepChar Replace one character in a string with another
ST_ReplPattern Replace a given pattern in a string with another pattern
ST_RJ Pad a String with spaces in the left(Right justified)
ST_RLimit Limits the length of a string truncating characters from the right side if necessary.
ST_RTrim To trim the right hand spaces of a string
ST_SearchRepl Perform a complete search and replace operation on a string
ST_str2lst Convert String to List
ST_Strip Strip (remove) a Charcter from a string
ST_StripRep Strip (remove) a Charcter from a string and optionally replace it with another character
ST_StrTok Splits up a string into a list of tokens delimited by a list of delimiters and returns all white spaces in between the dlimiters
ST_StrTokNoWhite Splits up a string into a list of tokens delimited by a list of delimiters and does not return any white spaces between delimiters
ST_StrZ Converts an integer into string with leading 0
ST_Trim To trim the both side of a string for spaces