|
The string handling functions are used when you need to manipulate strings in a program. A number of functions exists, and they are each explained individually on the following pages.
|
•Base64 |
Functions for encoding and decoding a base64 string.
|
|
•Convert |
Functions for converting between different data types and strings.
|
|
•String Templates |
The string template functions are helpful when handling large strings that are used multiple times but must be slightly different every time, such as strings that contain sensor data to send to an external device.
|
Basic string functions:
|
•strConcat |
Concatenate two strings.
|
|
•strFormat |
Formats a string.
|
|
•strMemoryUsage |
Get information about memory usage of dynamic strings.
|
|
•strLen |
Finds the length (number of characters) of a string.
|
Comparison functions:
|
•strCompare |
Compare two strings.
|
|
•strFind |
Checks if a string is contained within another string.
|
|
•strLookup |
Find a string in a list of strings.
|
Extraction functions:
|
•strMid |
Extracts part of a string.
|
|
•strLeft |
Extracts the left part of a string.
|
|
•strGetValues |
Extracts numerical values from a string.
|
|
•strGetStrings |
Extracts string values from a string.
|
|
•strRemoveSpaces |
Removes leading/trailing spaces in a string.
|
|
•strRight |
Extracts the right part of a string.
|
|
•strToken |
Extracts a string from a delimited string.
|
|