Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This facet generates an index for boundary analysis for a given text. More...
#include <boost/locale/boundary/facets.hpp>
Public Member Functions | |
| boundary_indexing (size_t refs=0) | |
| virtual index_type | map (boundary_type t, Char const *begin, Char const *end) const =0 |
Static Public Attributes | |
| static std::locale::id | id |
This facet generates an index for boundary analysis for a given text.
It is specialized for 4 types of characters char_t, wchar_t, char16_t and char32_t
| boost::locale::boundary::boundary_indexing< Char >::boundary_indexing | ( | size_t | refs = 0 |
) | [inline] |
Default constructor typical for facets
| virtual index_type boost::locale::boundary::boundary_indexing< Char >::map | ( | boundary_type | t, | |
| Char const * | begin, | |||
| Char const * | end | |||
| ) | const [pure virtual] |
Create index for boundary type t for text in range [begin,end)
The returned value is an index of type index_type. Note that this index is never empty, even if the range [begin,end) is empty it consists of at least one boundary point with the offset 0.
std::locale::id boost::locale::boundary::boundary_indexing< Char >::id [static] |
Identification of this facet