2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
24#ifndef GIMBAL_STRING_H
25#define GIMBAL_STRING_H
27#include "../core/gimbal_decls.h"
32
33
34
42
43
44
int gblStrCaseCmp(const char *pStr1, const char *pStr2)
Compares the two NULL-terminaed C strings without case-sensitivity.
char * gblStrnReverse(char *pString, size_t length)
Reverses up to length bytes within the given character array.
int gblAsciiHexDigitValue(char c)
Returns the numeric value of the given hexadecimal ASCII digit.
char * gblStrndup(const char *pString, size_t length)
Duplicates up to length bytes of the given string on the heap.
char * gblStrdup(const char *pString)
Duplicates the given string, returning a new one allocatedon the heap.
int gblAsciiDigitValue(char c)
Returns the numeric value of the given base-10 ASCII digit.
int gblStrnCaseCmp(const char *pStr1, const char *pStr2, size_t length)
Compares up to length bytes of the two C strings without case-sensitivity.
size_t gblStrnlen(const char *pStr1, size_t length)
Returns the length of the given NULL-terminated C string or len, if it's less than it's length.
char * gblStrCaseStr(const char *pStr, const char *pSub)
Searches for the beginning of the pSub substring within pStr.