Показаны различия между двумя версиями страницы.
— |
ob:visual:strings:en [2022/10/02 20:36] (текущий) iadenisov создано |
||
---|---|---|---|
Строка 1: | Строка 1: | ||
+ | Module for working with strings. | ||
+ | PROCEDURE Length (str: ARRAY OF CHAR): INTEGER; | ||
+ | |||
+ | Returns the number of characters in s up to and excluding the first 0X. | ||
+ | |||
+ | PROCEDURE Insert (source: ARRAY OF CHAR; pos: INTEGER; VAR dest: ARRAY OF CHAR); | ||
+ | |||
+ | Inserts the string ' | ||
+ | ' | ||
+ | If the size of ' | ||
+ | the result is truncated so that ' | ||
+ | |||
+ | PROCEDURE Append (str2: ARRAY OF CHAR; VAR str1: ARRAY OF CHAR); | ||
+ | |||
+ | Has the same effect as Insert(s, Length(dst), | ||
+ | |||
+ | PROCEDURE Delete (VAR s: ARRAY OF CHAR; pos, n: INTEGER); | ||
+ | |||
+ | Deletes ' | ||
+ | (0 <= pos Length(s)). If n > Length(s) - pos, the new length of ' | ||
+ | |||
+ | PROCEDURE Replace (source: ARRAY OF CHAR; pos: INTEGER; VAR dest: ARRAY OF CHAR); | ||
+ | |||
+ | Has the same effect as Delete(dst, pos, Length(src)) followed by an Insert(src, pos, dst). | ||
+ | |||
+ | PROCEDURE Extract (source: ARRAY OF CHAR; pos, n: INTEGER; VAR dest: ARRAY OF CHAR); | ||
+ | |||
+ | Extracts a substring ' | ||
+ | (0 <=pos Length(src)) in ' | ||
+ | the part of ' | ||
+ | If the size of ' | ||
+ | the result is truncated so that ' | ||
+ | |||
+ | PROCEDURE Pos (pattern, s: ARRAY OF CHAR; pos: INTEGER): INTEGER; | ||
+ | |||
+ | Returns the position of the first occurrence of ' | ||
+ | Searching starts at position ' | ||
+ | |||
+ | (* conversion functions *) | ||
+ | |||
+ | PROCEDURE IntToString (arg: INTEGER; VAR res: ARRAY OF CHAR); | ||
+ | |||
+ | Represents the integer ' | ||
+ | |||
+ | PROCEDURE RealToString (arg: REAL; VAR res: ARRAY OF CHAR); | ||
+ | |||
+ | Represents the real number ' | ||
+ | |||
+ | PROCEDURE RealToStringFixed (arg: REAL; VAR res: ARRAY OF CHAR; fixed: INTEGER); | ||
+ | |||
+ | Represents the real number ' | ||
+ | |||
+ | PROCEDURE StringToInt (arg: ARRAY OF CHAR; VAR out: INTEGER): BOOLEAN; | ||
+ | |||
+ | Converts a string to an integer. | ||
+ | |||
+ | PROCEDURE StringToReal (arg: ARRAY OF CHAR; VAR out: REAL): BOOLEAN; | ||
+ | |||
+ | Converts a string to a real number. |