7 #ifndef BOOST_LOCALE_BOUNDARY_BOUNDARY_POINT_HPP_INCLUDED 8 #define BOOST_LOCALE_BOUNDARY_BOUNDARY_POINT_HPP_INCLUDED 10 #include <boost/locale/boundary/types.hpp> 13 namespace boost {
namespace locale {
namespace boundary {
43 template<
typename IteratorType>
68 return iterator_ == other.iterator_ && rule_ = other.rule_;
87 template<
typename BaseIterator>
93 template<
typename BaseIterator>
103 #ifdef BOOST_LOCALE_ENABLE_CHAR16_T 106 #ifdef BOOST_LOCALE_ENABLE_CHAR32_T 112 #ifdef BOOST_LOCALE_ENABLE_CHAR16_T 115 #ifdef BOOST_LOCALE_ENABLE_CHAR32_T boundary_point< const wchar_t * > wcboundary_point
convenience typedef
Definition: boundary_point.hpp:111
bool operator!=(const boundary_point &other) const
Check if two boundary points are different.
Definition: boundary_point.hpp:71
boundary_point(iterator_type p, rule_type r)
Create a new boundary_point using iterator and a rule r.
Definition: boundary_point.hpp:53
void rule(rule_type r)
Set an new rule value r.
Definition: boundary_point.hpp:61
bool operator==(const boundary_point &other) const
Check if two boundary points are the same.
Definition: boundary_point.hpp:66
iterator_type iterator() const
Fetch an iterator.
Definition: boundary_point.hpp:58
rule_type rule() const
Fetch a rule.
Definition: boundary_point.hpp:63
bool operator==(const BaseIterator &l, const boundary_point< BaseIterator > &r)
Check if the boundary point r points to same location as an iterator l.
Definition: boundary_point.hpp:88
uint32_t rule_type
Flags used with word boundary analysis – the type of the word, line or sentence boundary found.
Definition: types.hpp:40
boundary_point< std::string::const_iterator > sboundary_point
convenience typedef
Definition: boundary_point.hpp:101
boundary_point< const char32_t * > u32cboundary_point
convenience typedef
Definition: boundary_point.hpp:116
bool operator==(const iterator_type &other) const
Check if the boundary point points to same location as an iterator other.
Definition: boundary_point.hpp:74
bool operator!=(const BaseIterator &l, const boundary_point< BaseIterator > &r)
Check if the boundary point r points to different location from an iterator l.
Definition: boundary_point.hpp:94
boundary_point< std::u32string::const_iterator > u32sboundary_point
convenience typedef
Definition: boundary_point.hpp:107
boundary_point< std::wstring::const_iterator > wsboundary_point
convenience typedef
Definition: boundary_point.hpp:102
boundary_point< const char16_t * > u16cboundary_point
convenience typedef
Definition: boundary_point.hpp:113
boundary_point< const char * > cboundary_point
convenience typedef
Definition: boundary_point.hpp:110
boundary_point()
Empty default constructor.
Definition: boundary_point.hpp:50
This class represents a boundary point in the text.
Definition: boundary_point.hpp:44
void iterator(iterator_type i)
Set an new iterator value i.
Definition: boundary_point.hpp:56
IteratorType iterator_type
The type of the base iterator that iterates the original text.
Definition: boundary_point.hpp:47
Generate boundary analysis facet.
bool operator!=(const iterator_type &other) const
Check if the boundary point points to different location from an iterator other.
Definition: boundary_point.hpp:76
boundary_point< std::u16string::const_iterator > u16sboundary_point
convenience typedef
Definition: boundary_point.hpp:104