String Manipulation
Instructions
Instruction |
Action |
Concatenation of two character strings. |
|
Return the ASCII code of the first character of a string. |
|
Retrieve, from an ASCII buffer, ASCII fields separated by a given character. |
|
Return the ASCII character of the code passed as an argument. |
|
Compare two character strings. |
|
Returns a string including an inserted formatted value. |
|
Convert all the characters of a string to lower case. |
|
Return the first N characters of a string. |
|
Return the length of a string. |
|
Return a copy of a string without any leading spaces. |
|
Return a sub-string of a character string. |
|
REPLACE |
Search for, and replace, a sub-string. |
Return the last N characters of the string. |
|
Return a copy of a string without any trailing spaces. |
|
Return a string composed of N spaces. |
|
Return a string composed of N instances of a character. |
|
Manipulate character strings. |
|
Convert all the characters of a string to upper case. |
String separator characters must be prefixed with a the backslash ("\") escape character so that they are interpreted correctly:
\\ for the backslash
\' for the simple quote
\" for the double quote
\t for the tab
\r for the carriage return
\n for the new line
For example to include a simple quote in a string:
"a quote needs to be escaped, if not, it doesn\'t work"