Currently builds with GCC 4.8 & Clang 3.2 using the -std=c11 flag.
- Finish a TON more code.
- Document it.
- Tons of other magic.
- ????
- PROFIT!
int rh_str_chrpos(const char*, char);Returns the position of the character you are searching for as an integer.
bool rh_str_haschr(const char* str, char chr);Returns a boolean value indicating whether or not the character you're searching for is in the provided string.
char *rh_str_new(const char* src);Returns a mutable copy of the string passed to it on the heap memory. (The char* returned from this function MUST be freed by the programmer at a later point.)
char *rh_str_triml(const char* src);Returns a new string allocated on the heap which has had any whitespace on the left trimmed.
char *rh_str_trimr(const char* src);Returns a new string allocated on the heap which has had any whitespace on the right trimmed.
char *rh_str_trim(const char* src);Returns a new string allocated on the heap which has had all outside whitespace trimmed.