Finds the first occurrence of a character in a string.
int FindCharInString(const char str, char c, bool reverse)
Character to search for.
False (default) to search forward, true to search backward.
The index of the first occurrence of the character in the string, or -1 if the character was not found.