Content


NTL
Core
SearchWordEndBackward

SearchWordEndBackward


Search the ending of previous word in a string.

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