Boost.Locale
|
This facet generates an index for boundary analysis of a given text. More...
#include <boost/locale/boundary/facets.hpp>
Public Member Functions | |
boundary_indexing (size_t refs=0) | |
Default constructor typical for facets. | |
virtual index_type | map (boundary_type t, const Char *begin, const Char *end) const =0 |
This facet generates an index for boundary analysis of a given text.
It is implemented for supported character types, at least char
, wchar_t
|
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.