String routines |
Top Previous Next |
|
copy(<source>: string, <index>: integer, <count>: integer): string returns substring containig <count> chars of <source> starting from <index> char. <source> - string expression <index>, <count> - integer expressions
pos(<source>: string, <substr>: string): integer returns index of first occurance of <substr> in <source> <source>, <substr> - string expressions
posex(<source>: string, <substr>: string, <index>: integer): integer returns index of first occurance of <substr> in <source> starting search at <index> char <source>, <substr> - string expressions <index> - integer expression
uppercase(<source>: string): string returns string of uppercase characters of <source> string <source> - string expression
lowercase(<source>: string): string returns string of lowercase characters of <source> string <source> - string expression
len(<array>): integer returns length of array or string <array> - array or string expression
setlen(<array>, <new_length>: integer) sets length of dynamic array or string <array> - dynamic array or string expression <new_length> - integer expression
chr(<char>: integer): string returns character of <char> ascii index <char> - index of character in ascii table
ord(<char>: string): integer returns ascii index of <char> character <char> - string expression. first character is used
float_num(<number_str>: string): float returns float number presented by <number_str> <number_str> - numerical string expression
integer_num(<number_str>: string): integer returns integer number presented by <number_str> <number_str> - numerical string expression
function isnum(s: string): boolean - return true if first char of s string represents number function isalpha(s: string): boolean - return true if first char of s string represents letter function trim(s: string): string - returns s string without leading and trailing white spaces
function tostring(<number>): string - return string representation of <number> function tostring(format: string, <number>): string return formatted string representation of <number>
|