int string_equals_no_case(const char *a, const char *b) { while (char_to_lower(*a) == char_to_lower(*b)) { if (!*a) return (1); a++; b++; } return (0); }
void SearchEng::str_to_lower(std::string& word){ for(unsigned int i = 0; i < word.size(); i++){ if(isalpha(word[i])){ word[i] = char_to_lower(word[i]); } } }
/// /// Converts the type character @a c to lowercase, returning the result /// @param c the character to convert to lowercase /// VALKNUT_FORCE_INLINE tchar tchar_to_lower(tchar c){ return (tchar) char_to_lower(c); }