Content


NTL
Core
SearchPrevWord

SearchPrevWord


Search previous word in the string starting from specified position.

You can find more information in comments below.

/**
Return index of starting word characted prev to start position 
@param str String where to search 
@param start Index from where start to search 
@param with_punch If true, punctuation characters are interpreted as words as well 
@param locale Used locale 
@return Word start position or 0 
*/
size_t SearchPrevWord(const String &str, const size_t start, const bool with_punct = false, const std::locale &locale = std::locale());
Namespace: nitisa
Include: Nitisa/Core/Strings.h