4.1.6 Character string operations

The API functions below allow the application to carry out character string processing including partial character string processing, cut processing and conversion to the ASCII code.

API function nameDescription
AIT_GetSubStrReturns a character string with the specified length from the character string.
AIT_FindSubStrFinds a character sting, and returns the position of the first matching character string.
AIT_StrLengthAcquires the length of the character string.
AIT_IsEmptyChecks whether the character string is empty.
AIT_StrLTrimTruncates the character string from the left.
AIT_StrRTrimTruncates the character string from the right.
AIT_StrTrimRemoves characters from a character string.
AIT_StrUpperConverts the characters in the character string to uppercase.
AIT_StrLowerConverts the characters in the character string to lowercase.
AIT_StrLeftAcquires the specified number of characters on the left in the character string.
AIT_StrRightAcquires the specified number of characters on the right in the character string.
AIT_CharToASCIIReturns the ASCII code of the character.
AIT_ASCIIToCharConverts an ASCII code into the corresponding character.