Boost.Locale
|
This class holds an index of segments in the text range and allows to iterate over them. More...
#include <boost/locale/boundary/index.hpp>
Public Types | |
typedef BaseIterator | base_iterator |
The type of the iterator used to iterate over the original text. | |
typedef unspecified_iterator_type | iterator |
typedef unspecified_iterator_type | const_iterator |
typedef segment< base_iterator > | value_type |
Public Member Functions | |
segment_index () | |
segment_index (boundary_type type, base_iterator begin, base_iterator end, rule_type mask, const std::locale &loc=std::locale()) | |
segment_index (boundary_type type, base_iterator begin, base_iterator end, const std::locale &loc=std::locale()) | |
segment_index (const boundary_point_index< base_iterator > &) | |
segment_index & | operator= (const boundary_point_index< base_iterator > &) |
void | map (boundary_type type, base_iterator begin, base_iterator end, const std::locale &loc=std::locale()) |
iterator | begin () const |
iterator | end () const |
iterator | find (base_iterator p) const |
rule_type | rule () const |
Get the mask of rules that are used. | |
void | rule (rule_type v) |
Set the mask of rules that are used. | |
bool | full_select () const |
void | full_select (bool v) |
Friends | |
class | boundary_point_index< base_iterator > |
This class holds an index of segments in the text range and allows to iterate over them.
This class is provides begin() and end() member functions that return bidirectional iterators to the segment objects.
It provides two options on way of selecting segments:
This class allows to find a segment according to the given iterator in range using find() member function.