Get lexicographical string length. More...
#include <strutils.h>
Public Member Functions | |
| std::size_t | operator() (std::string const &text, std::locale const &loc=std::locale("")) const |
| Get length. | |
Get lexicographical string length.
The chars_count functor class is used to calculate the string length in characters (not bytes) according specified locale.
| std::size_t dbp::char_length::operator() | ( | std::string const & | text, | |
| std::locale const & | loc = std::locale("") | |||
| ) | const |
Get length.
| text | the source string | |
| loc | the string locale (default: current locale) |