Search the beginning of previous word in a string.
/**
Return index of previous word beginning before the specified position
@param str String where to search
@param start Index from where to search
@param locale Used locale
@return Word start position if found
@return Zero if no word start found till the string start
@return String::npos in case of invalid parameters
*/
size_t SearchWordStartBackward(const String &str, const size_t start, const std::locale &locale = std::locale());
Namespace: | nitisa |
Include: | Nitisa/Core/Strings.h |