Boost.Locale
|
This class represents a boundary point in the text. More...
#include <boost/locale/boundary/boundary_point.hpp>
Public Types | |
typedef IteratorType | iterator_type |
Public Member Functions | |
boundary_point () | |
boundary_point (iterator_type p, rule_type r) | |
void | iterator (iterator_type i) |
void | rule (rule_type r) |
iterator_type | iterator () const |
rule_type | rule () const |
bool | operator== (boundary_point const &other) const |
bool | operator!= (boundary_point const &other) const |
bool | operator== (iterator_type const &other) const |
bool | operator!= (iterator_type const &other) const |
operator iterator_type () const | |
This class represents a boundary point in the text.
It represents a pair - an iterator and a rule that defines this point.
This type of object is dereference by the iterators of boundary_point_index. Using a rule() member function you can get the reason why this specific boundary point was selected.
For example, When you use a sentence boundary analysis, the (rule() & sentence_term) != 0 means that this boundary point was selected because a sentence terminator (like .?!) was spotted and the (rule() & sentence_sep)!=0 means that a separator like line feed or carriage return was observed.
typedef IteratorType boost::locale::boundary::boundary_point< IteratorType >::iterator_type |
The type of the base iterator that iterates the original text
|
inline |
Empty default constructor
|
inline |
Create a new boundary_point using iterator and
a rule r
|
inline |
Set an new iterator value i
|
inline |
Fetch an iterator
|
inline |
Automatic cast to the iterator it represents
|
inline |
Check if two boundary points are different
|
inline |
Check if the boundary point points to different location from an iterator other
|
inline |
Check if two boundary points are the same
|
inline |
Check if the boundary point points to same location as an iterator other
|
inline |
Set an new rule value r
|
inline |
Fetch a rule