7#ifndef BOOST_LOCALE_BOUNDARY_FACETS_HPP_INCLUDED
8#define BOOST_LOCALE_BOUNDARY_FACETS_HPP_INCLUDED
10#include <boost/locale/boundary/types.hpp>
11#include <boost/locale/detail/facet_id.hpp>
12#include <boost/locale/detail/is_supported_char.hpp>
18# pragma warning(disable : 4275 4251 4231 4660)
21namespace boost {
namespace locale {
57 template<
typename Char>
59 public boost::locale::detail::facet_id<boundary_indexing<Char>> {
60 BOOST_LOCALE_ASSERT_IS_SUPPORTED(Char);
This facet generates an index for boundary analysis of a given text.
Definition: facets.hpp:59
boundary_indexing(size_t refs=0)
Default constructor typical for facets.
Definition: facets.hpp:64
virtual index_type map(boundary_type t, const Char *begin, const Char *end) const =0
boundary_type
This type describes a possible boundary analysis alternatives.
Definition: types.hpp:30
uint32_t rule_type
Flags used with word boundary analysis – the type of the word, line or sentence boundary found.
Definition: types.hpp:40
std::vector< break_info > index_type
Definition: facets.hpp:52
@ boundary
Generate boundary analysis facet.
This structure is used for representing boundary points that follow the offset.
Definition: facets.hpp:31
bool operator<(const break_info &other) const
Definition: facets.hpp:47
rule_type rule
Definition: facets.hpp:43
break_info()
Create empty break point at beginning.
Definition: facets.hpp:33
size_t offset
Offset from the beginning of the text where a break occurs.
Definition: facets.hpp:40
break_info(size_t v)
Definition: facets.hpp:37