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) 85 template<
typename CharType>
88 #ifdef BOOST_LOCALE_DOXYGEN 89 template<
typename Char>
115 static std::locale::id
id;
117 #if defined (__SUNPRO_CC) && defined (_RWSTD_VER) 118 std::locale::id& __get_id (
void)
const {
return id; }
125 class BOOST_LOCALE_DECL boundary_indexing<char> :
public std::locale::facet {
127 boundary_indexing(
size_t refs=0) : std::locale::facet(refs)
130 ~boundary_indexing();
132 static std::locale::id id;
133 #if defined (__SUNPRO_CC) && defined (_RWSTD_VER) 134 std::locale::id& __get_id (
void)
const {
return id; }
139 class BOOST_LOCALE_DECL boundary_indexing<wchar_t> :
public std::locale::facet {
141 boundary_indexing(
size_t refs=0) : std::locale::facet(refs)
144 ~boundary_indexing();
147 static std::locale::id id;
148 #if defined (__SUNPRO_CC) && defined (_RWSTD_VER) 149 std::locale::id& __get_id (
void)
const {
return id; }
153 #ifdef BOOST_LOCALE_ENABLE_CHAR16_T 155 class BOOST_LOCALE_DECL boundary_indexing<char16_t> :
public std::locale::facet {
157 boundary_indexing(
size_t refs=0) : std::locale::facet(refs)
160 ~boundary_indexing();
162 static std::locale::id id;
163 #if defined (__SUNPRO_CC) && defined (_RWSTD_VER) 164 std::locale::id& __get_id (
void)
const {
return id; }
169 #ifdef BOOST_LOCALE_ENABLE_CHAR32_T 171 class BOOST_LOCALE_DECL boundary_indexing<char32_t> :
public std::locale::facet {
173 boundary_indexing(
size_t refs=0) : std::locale::facet(refs)
176 ~boundary_indexing();
178 static std::locale::id id;
179 #if defined (__SUNPRO_CC) && defined (_RWSTD_VER) 180 std::locale::id& __get_id (
void)
const {
return id; }
This facet generates an index for boundary analysis for a given text.
Definition: facets.hpp:86
boundary_type
Definition: types.hpp:38
break_info()
Definition: facets.hpp:43
break_info(size_t v)
Definition: facets.hpp:52
This structure is used for representing boundary point that follows the offset.
Definition: facets.hpp:38
uint32_t rule_type
Flags used with word boundary analysis – the type of the word, line or sentence boundary found.
Definition: types.hpp:50
rule_type rule
Definition: facets.hpp:66
boundary_indexing(size_t refs=0)
Definition: facets.hpp:101
static std::locale::id id
Definition: facets.hpp:115
size_t offset
Definition: facets.hpp:61
bool operator<(break_info const &other) const
Definition: facets.hpp:72
std::vector< break_info > index_type
Definition: facets.hpp:82