#include "LgiInc.h"
#include "LgiDefs.h"
Go to the source code of this file.
Functions | |
LgiFunc char * | strnchr (char *s, char c, int Len) |
Returns a pointer to the char 'c' if found in the first 'Len' bytes of the string 's'. | |
LgiFunc char * | strnstr (char *a, char *b, int n) |
Search for a substring in another string. | |
LgiFunc char * | strnistr (char *a, char *b, int n) |
Search for a case insensitive sub-string in another string. | |
LgiFunc char * | stristr (char *a, char *b) |
Case insensitive sub-string search. | |
LgiFunc char * | strsafecpy (char *dst, char *src, int len) |
Safe string copy. | |
LgiFunc char * | strsafecat (char *dst, char *src, int len) |
Safe string append. | |
LgiFunc int | htoi (char *a) |
Converts a hex string into a integer. | |
LgiFunc int64 | htoi64 (char *a) |
Converts a hex string into a 64bit integer. | |
LgiFunc char * | TrimStr (char *s, char *Delim=" \r\n\t") |
LgiFunc bool | ValidStr (char *s) |
Returns true if the string points to something with one or more non-whitespace characters. | |
LgiFunc char * | NewStr (char *s, int Len=-1) |
Makes a heap allocated copy of a string. | |
LgiFunc bool | MatchStr (char *Template, char *Data) |
Does a wildcard match. | |
LgiFunc char16 * | StrchrW (char16 *s, char16 c) |
Find a character in a wide string. | |
LgiFunc char16 * | StrrchrW (char16 *s, char16 c) |
Find the last instance of a character in a wide string. | |
LgiFunc char16 * | StrnchrW (char16 *s, char16 c, int Len) |
Find a character in the first 'n' characters of a wide string. | |
LgiFunc char16 * | StrstrW (char16 *a, char16 *b) |
Find a sub-string in a wide string (case sensitive). | |
LgiFunc char16 * | StristrW (char16 *a, char16 *b) |
Find a sub-string in a wide string (case insensitive). | |
LgiFunc char16 * | StrnstrW (char16 *a, char16 *b, int n) |
Find a sub-string in the first 'n' characters of a wide string (case sensitive). | |
LgiFunc char16 * | StrnistrW (char16 *a, char16 *b, int n) |
Find a sub-string in the first 'n' characters of a wide string (case insensitive). | |
LgiFunc int | StrcmpW (char16 *a, char16 *b) |
Compare wide strings (case sensitive). | |
LgiFunc int | StricmpW (char16 *a, char16 *b) |
Compare wide strings (case insensitive). | |
LgiFunc int | StrncmpW (char16 *a, char16 *b, int n) |
Compare 'n' characters of 2 wide strings (case sensitive). | |
LgiFunc int | StrnicmpW (char16 *a, char16 *b, int n) |
Compare 'n' characters of 2 wide strings (case insensitive). | |
LgiFunc char16 * | StrcpyW (char16 *a, char16 *b) |
String copy one wide string to another. | |
LgiFunc char16 * | StrncpyW (char16 *a, char16 *b, int n) |
String copy a maximum of 'n' characters of one wide string to another. | |
LgiFunc int | StrlenW (char16 *a) |
Count the number of char16's in a wide string. | |
LgiFunc void | StrcatW (char16 *a, char16 *b) |
Append a wide string to another. | |
LgiFunc int | HtoiW (char16 *a) |
Convert a wide hex string to an integer. | |
LgiFunc int64 | HtoiW64 (char16 *a) |
Convert a wide hex string to an 64bit integer. | |
LgiFunc char16 * | NewStrW (char16 *s, int Len=-1) |
Makes a heap allocated copy of a wide string. | |
LgiFunc char16 * | TrimStrW (char16 *s, char16 *Delim=0) |
Trim delimiters from a wide string. Returns a heap allocated string. | |
LgiFunc bool | ValidStrW (char16 *s) |
Returns true if 's' points to a wide string with at least 1 non-whitespace character. | |
LgiFunc bool | MatchStrW (char16 *Template, char16 *Data) |
Does a widecard match between wide strings. |
|
Converts a hex string into a integer. Stops scanning when it hits a NULL or a non-hex character. Accepts input characters in the ranges 0-9, a-f and A-F.
|
|
Converts a hex string into a 64bit integer. Stops scanning when it hits a NULL or a non-hex character. Accepts input characters in the ranges 0-9, a-f and A-F.
|
|
Does a wildcard match.
|
|
Makes a heap allocated copy of a string.
|
|
Makes a heap allocated copy of a wide string.
|
|
Case insensitive sub-string search. The search is not case sensitive.
|
|
Returns a pointer to the char 'c' if found in the first 'Len' bytes of the string 's'.
|
|
Search for a case insensitive sub-string in another string. The search is not case sensitive.
|
|
Search for a substring in another string. The search is case sensitive.
|
|
Safe string append. This function should be used anytime the size of the destination buffer is known when using strcat. It will truncate the resultant string to fit in the output buffer, properly NULL terminating it.
|
|
Safe string copy. This function should be used anytime the size of the destination buffer is known when using strcpy. It will truncate the resultant string to fit in the output buffer, properly NULL terminating it.
|
|
Trims delimiter characters off a string.
|