Strings
Copy(S:string; Index, Count: number): string; |
Function COPY returns a substring containing COUNT characters starting at S[INDEX]. If INDEX is larger than the length of S, then COPY returns an empty string or array. |
StrToIntDef(S: string; Default: number): number; |
Function STRTOINTDEF converts the string S (which represents a number in either decimal or hexadecimal notation) into a number. See also STRTOFLOATDEF and INTTOSTR functions. |
StrToFloatDef(S: string; Default: number): number; |
Function STRTOFLOATDEF converts the string S (representing a decimal number) to a floating-point number. See also STRTOINTDEF and INTTOSTR functions. |
Delete(var S: string; Index, Count:number); |
Procedure DELETE removes a substring, COUNT characters long, from string S starting with S[INDEX]. |
Pos(Substr: string; S: string): number; |
Function POS searches for a substring SUBSTR within a string S. POS is case-sensitive. |
Trim(const S: string): string; |
Function TRIM removes whitespace – leading and trailing – from the string expression specified by S. |
LowerCase(const S: string): string; |
Function LOWERCASE returns string S converted to lower-case. See also UPPERCASE function, below. |
UpperCase(const S: string): string; |
Function UPPERCASE returns string S converted to upper-case. See also LOWERCASE function, above. |
Char(N:number):string; |
Function CHAR constructs a string consisting of a single wide character See also ORD function, below. |
Ord(const S: string): number; |
Function ORD returns the ordinal value of the first wide character of the string specified by S. The result will be in the range 0..$ffff See also CHAR function, above. |
Split(Source,Separator:string;var LX:list); |
Procedure SPLIT procedure splits the SOURCE string into a number of elements delimited by the SEPARATOR string. The elements are returned in the list specified by the LX parameter. The previous contents of the list are lost. split('alpha/beta/gamma','/',LX); See also READCSV procedure. |