8 #ifndef BOOST_LOCALE_BOUNDARY_FACETS_HPP_INCLUDED
9 #define BOOST_LOCALE_BOUNDARY_FACETS_HPP_INCLUDED
11 #include <boost/locale/config.hpp>
12 #include <boost/locale/boundary/types.hpp>
14 # pragma warning(push)
15 # pragma warning(disable : 4275 4251 4231 4660)
89 template<
typename CharType>
92 #ifdef BOOST_LOCALE_DOXYGEN
93 template<
typename Char>
119 static std::locale::id
id;
121 #if defined (__SUNPRO_CC) && defined (_RWSTD_VER)
122 std::locale::id& __get_id (
void)
const {
return id; }
129 class BOOST_LOCALE_DECL boundary_indexing<char> :
public std::locale::facet {
131 boundary_indexing(
size_t refs=0) : std::locale::facet(refs)
135 static std::locale::id id;
136 #if defined (__SUNPRO_CC) && defined (_RWSTD_VER)
137 std::locale::id& __get_id (
void)
const {
return id; }
142 class BOOST_LOCALE_DECL boundary_indexing<wchar_t> :
public std::locale::facet {
144 boundary_indexing(
size_t refs=0) : std::locale::facet(refs)
149 static std::locale::id id;
150 #if defined (__SUNPRO_CC) && defined (_RWSTD_VER)
151 std::locale::id& __get_id (
void)
const {
return id; }
155 #ifdef BOOST_LOCALE_ENABLE_CHAR16_T
157 class BOOST_LOCALE_DECL boundary_indexing<char16_t> :
public std::locale::facet {
159 boundary_indexing(
size_t refs=0) : std::locale::facet(refs)
163 static std::locale::id id;
164 #if defined (__SUNPRO_CC) && defined (_RWSTD_VER)
165 std::locale::id& __get_id (
void)
const {
return id; }
170 #ifdef BOOST_LOCALE_ENABLE_CHAR32_T
172 class BOOST_LOCALE_DECL boundary_indexing<char32_t> :
public std::locale::facet {
174 boundary_indexing(
size_t refs=0) : std::locale::facet(refs)
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:90
boundary_type
Definition: types.hpp:39
break_info()
Definition: facets.hpp:47
break_info(size_t v)
Definition: facets.hpp:56
static std::locale::id id
Definition: facets.hpp:119
This structure is used for representing boundary point that follows the offset.
Definition: facets.hpp:42
uint32_t rule_type
Flags used with word boundary analysis – the type of the word, line or sentence boundary found...
Definition: types.hpp:51
bool operator<(break_info const &other) const
Definition: facets.hpp:76
rule_type rule
Definition: facets.hpp:70
size_t offset
Definition: facets.hpp:65
boundary_indexing(size_t refs=0)
Definition: facets.hpp:105
std::vector< break_info > index_type
Definition: facets.hpp:86