7 #ifndef BOOST_LOCALE_BOUNDARY_FACETS_HPP_INCLUDED 8 #define BOOST_LOCALE_BOUNDARY_FACETS_HPP_INCLUDED 10 #include <boost/locale/boundary/types.hpp> 15 # pragma warning(push) 16 # pragma warning(disable : 4275 4251 4231 4660) 19 namespace boost {
namespace locale {
52 template<
typename CharType>
55 #ifdef BOOST_LOCALE_DOXYGEN 56 template<
typename Char>
74 static std::locale::id
id;
85 static std::locale::id id;
89 class BOOST_LOCALE_DECL boundary_indexing<wchar_t> :
public std::locale::facet {
91 boundary_indexing(
size_t refs = 0) : std::locale::facet(refs) {}
95 static std::locale::id id;
98 # ifdef BOOST_LOCALE_ENABLE_CHAR16_T 100 class BOOST_LOCALE_DECL boundary_indexing<char16_t> :
public std::locale::facet {
102 boundary_indexing(
size_t refs = 0) : std::locale::facet(refs) {}
103 ~boundary_indexing();
105 static std::locale::id id;
109 # ifdef BOOST_LOCALE_ENABLE_CHAR32_T 111 class BOOST_LOCALE_DECL boundary_indexing<char32_t> :
public std::locale::facet {
113 boundary_indexing(
size_t refs = 0) : std::locale::facet(refs) {}
114 ~boundary_indexing();
116 static std::locale::id id;
128 # pragma warning(pop) This facet generates an index for boundary analysis for a given text.
Definition: facets.hpp:53
boundary_type
This type describes a possible boundary analysis alternatives.
Definition: types.hpp:30
break_info()
Create empty break point at beginning.
Definition: facets.hpp:31
break_info(size_t v)
Definition: facets.hpp:35
This structure is used for representing boundary points that follow the offset.
Definition: facets.hpp:29
uint32_t rule_type
Flags used with word boundary analysis – the type of the word, line or sentence boundary found.
Definition: types.hpp:40
bool operator<(const break_info &other) const
Definition: facets.hpp:45
rule_type rule
Definition: facets.hpp:41
boundary_indexing(size_t refs=0)
Default constructor typical for facets.
Definition: facets.hpp:64
static std::locale::id id
Identification of this facet.
Definition: facets.hpp:74
size_t offset
Offset from the beginning of the text where a break occurs.
Definition: facets.hpp:38
Generate boundary analysis facet.
std::vector< break_info > index_type
Definition: facets.hpp:50