![]() |
ACDC Senior Project v1.0.0
Senior Project for Textron Aviation
|
Header file containing String functions. More...
Go to the source code of this file.
Functions | |
| char * | StringCopy (char *dest, const char *source) |
| Copies the string pointed by source (including the null character) to the destination dest. | |
| int32_t | StringCompare (const char *str1, const char *str2) |
| Compares two strings character by character. Returns 0 if the strings are equal, >0 if the first non-matching character in str1 is greater than str2, and <0 if the first non-matching character in str1 is less than str2. | |
| int32_t | StringLength (const char *str) |
| Calculates the length of the string str. | |
| char * | StringConcat (char *dest, const char *source) |
| Appends the content of the string source to the end of the string dest. | |
| int32_t | StringIndexOf (const char *str, char c) |
| Finds and returns the index of first occurance the character c in the string str. | |
| char * | StringSubstring (char *str, int32_t index) |
| Returns a substring of the input string str starting from the specified index. | |
| bool | StringStartsWith (char *str, const char *compareWith) |
| Checks if the given string str starts with the specified substring compareWith. | |
| bool | StringEndsWith (const char *str, const char *compareWith) |
| Checks if the given string str ends with the specified substring compareWith. | |
| char * | StringToUpper (char *str) |
| Converts all lowercase characters a-z in the string str to uppercase. | |
| char * | StringToLower (char *str) |
| Converts all uppercase characters A-Z in the string str to lowercase. | |
| bool | StringIsUpper (const char *str) |
| Checks if all characters in the input string are uppercase characters (can only contain characters) | |
| bool | StringIsLower (const char *str) |
| Checks if all characters in the input string are lowercase characters (can only contain characters) | |
| bool | StringIsNumeric (const char *str) |
| Checks if all characters in the input string are numeric. | |
| bool | StringIsAlphabetic (const char *str) |
| Checks if all characters in the input string are alphabetic. | |
| bool | StringIsAlphanumeric (const char *str) |
| Checks if all characters in the input string are alphanumeric. | |
| char * | StringConvert (int32_t num) |
| Converts an int32_t into a string. | |
Header file containing String functions.
| int32_t StringCompare | ( | const char * | str1, |
| const char * | str2 ) |
Compares two strings character by character. Returns 0 if the strings are equal, >0 if the first non-matching character in str1 is greater than str2, and <0 if the first non-matching character in str1 is less than str2.
| str1 | First string to compare with |
| str2 | Second string to compare with |
| char * StringConcat | ( | char * | dest, |
| const char * | source ) |
Appends the content of the string source to the end of the string dest.
| dest | Destination string to which the source string will be appended |
| source | Source string to be appended to the destination |
| char * StringConvert | ( | int32_t | num | ) |
Converts an int32_t into a string.
| num | Integer to convert into a string |
| char * StringCopy | ( | char * | dest, |
| const char * | source ) |
Copies the string pointed by source (including the null character) to the destination dest.
| destination | Destination buffer to copy the source string to |
| source | String to be copied |
| bool StringEndsWith | ( | const char * | str, |
| const char * | compareWith ) |
Checks if the given string str ends with the specified substring compareWith.
| str | Input string |
| compareWith | Substring to check for at the end of the string str |
| int32_t StringIndexOf | ( | const char * | str, |
| char | c ) |
Finds and returns the index of first occurance the character c in the string str.
| str | String to search |
| c | Character to search for |
| bool StringIsAlphabetic | ( | const char * | str | ) |
Checks if all characters in the input string are alphabetic.
| str | Input string to check |
| bool StringIsAlphanumeric | ( | const char * | str | ) |
Checks if all characters in the input string are alphanumeric.
| str | Input string to check |
| bool StringIsLower | ( | const char * | str | ) |
Checks if all characters in the input string are lowercase characters (can only contain characters)
| str | Input string to convert |
| bool StringIsNumeric | ( | const char * | str | ) |
Checks if all characters in the input string are numeric.
| str | Input string to check |
| bool StringIsUpper | ( | const char * | str | ) |
Checks if all characters in the input string are uppercase characters (can only contain characters)
| str | Input string to convert |
| int32_t StringLength | ( | const char * | str | ) |
Calculates the length of the string str.
| str | String to find the length of |
| bool StringStartsWith | ( | char * | str, |
| const char * | compareWith ) |
Checks if the given string str starts with the specified substring compareWith.
| str | Input string |
| compareWith | Substring to check for at the beginning of str |
| char * StringSubstring | ( | char * | str, |
| int32_t | index ) |
Returns a substring of the input string str starting from the specified index.
| str | Input string |
| index | Starting index of the substring |
| char * StringToLower | ( | char * | str | ) |
Converts all uppercase characters A-Z in the string str to lowercase.
| str | Input string to convert |
| char * StringToUpper | ( | char * | str | ) |
Converts all lowercase characters a-z in the string str to uppercase.
| str | Input string to convert |