dbp::char_length Class Reference

Get lexicographical string length. More...

#include <strutils.h>

List of all members.

Public Member Functions

std::size_t operator() (std::string const &text, std::locale const &loc=std::locale("")) const
 Get length.

Detailed Description

Get lexicographical string length.

The chars_count functor class is used to calculate the string length in characters (not bytes) according specified locale.


Member Function Documentation

std::size_t dbp::char_length::operator() ( std::string const &  text,
std::locale const &  loc = std::locale("") 
) const

Get length.

Parameters:
text the source string
loc the string locale (default: current locale)
Returns:
the count of characters in the source string

The documentation for this class was generated from the following file:

 
Support This Project
SourceForge.net Logo