Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Boost.Locale: Boundary Analysis

Boost , ,

Boundary Analysis

Classes

class  boost::locale::boundary::boundary_point< IteratorType >
 This class represents a boundary point in the text. More...
 
struct  boost::locale::boundary::break_info
 This structure is used for representing boundary point that follows the offset. More...
 
class  boost::locale::boundary::boundary_indexing< CharType >
 This facet generates an index for boundary analysis for a given text. More...
 
class  boost::locale::boundary::segment_index< BaseIterator >
 This class holds an index of segments in the text range and allows to iterate over them. More...
 
class  boost::locale::boundary::boundary_point_index< BaseIterator >
 This class holds an index of boundary points and allows iterating over them. More...
 
class  boost::locale::boundary::segment< IteratorType >
 a segment object that represents a pair of two iterators that define the range where this segment exits and a rule that defines it. More...
 

Typedefs

typedef std::vector< break_info > boost::locale::boundary::index_type
 
typedef BaseIterator boost::locale::boundary::segment_index< BaseIterator >::base_iterator
 
typedef unspecified_iterator_type boost::locale::boundary::segment_index< BaseIterator >::iterator
 
typedef unspecified_iterator_type boost::locale::boundary::segment_index< BaseIterator >::const_iterator
 
typedef segment< base_iterator > boost::locale::boundary::segment_index< BaseIterator >::value_type
 
typedef BaseIterator boost::locale::boundary::boundary_point_index< BaseIterator >::base_iterator
 
typedef unspecified_iterator_type boost::locale::boundary::boundary_point_index< BaseIterator >::iterator
 
typedef unspecified_iterator_type boost::locale::boundary::boundary_point_index< BaseIterator >::const_iterator
 
typedef boundary_point
< base_iterator > 
boost::locale::boundary::boundary_point_index< BaseIterator >::value_type
 
typedef segment_index
< std::string::const_iterator > 
boost::locale::boundary::ssegment_index
 convenience typedef
 
typedef segment_index
< std::wstring::const_iterator > 
boost::locale::boundary::wssegment_index
 convenience typedef
 
typedef segment_index
< std::u16string::const_iterator > 
boost::locale::boundary::u16ssegment_index
 convenience typedef
 
typedef segment_index
< std::u32string::const_iterator > 
boost::locale::boundary::u32ssegment_index
 convenience typedef
 
typedef segment_index< char
const * > 
boost::locale::boundary::csegment_index
 convenience typedef
 
typedef segment_index< wchar_t
const * > 
boost::locale::boundary::wcsegment_index
 convenience typedef
 
typedef segment_index
< char16_t const * > 
boost::locale::boundary::u16csegment_index
 convenience typedef
 
typedef segment_index
< char32_t const * > 
boost::locale::boundary::u32csegment_index
 convenience typedef
 
typedef boundary_point_index
< std::string::const_iterator > 
boost::locale::boundary::sboundary_point_index
 convenience typedef
 
typedef boundary_point_index
< std::wstring::const_iterator > 
boost::locale::boundary::wsboundary_point_index
 convenience typedef
 
typedef boundary_point_index
< std::u16string::const_iterator > 
boost::locale::boundary::u16sboundary_point_index
 convenience typedef
 
typedef boundary_point_index
< std::u32string::const_iterator > 
boost::locale::boundary::u32sboundary_point_index
 convenience typedef
 
typedef boundary_point_index
< char const * > 
boost::locale::boundary::cboundary_point_index
 convenience typedef
 
typedef boundary_point_index
< wchar_t const * > 
boost::locale::boundary::wcboundary_point_index
 convenience typedef
 
typedef boundary_point_index
< char16_t const * > 
boost::locale::boundary::u16cboundary_point_index
 convenience typedef
 
typedef boundary_point_index
< char32_t const * > 
boost::locale::boundary::u32cboundary_point_index
 convenience typedef
 
typedef segment
< std::string::const_iterator > 
boost::locale::boundary::ssegment
 convenience typedef
 
typedef segment
< std::wstring::const_iterator > 
boost::locale::boundary::wssegment
 convenience typedef
 
typedef segment
< std::u16string::const_iterator > 
boost::locale::boundary::u16ssegment
 convenience typedef
 
typedef segment
< std::u32string::const_iterator > 
boost::locale::boundary::u32ssegment
 convenience typedef
 
typedef segment< char const * > boost::locale::boundary::csegment
 convenience typedef
 
typedef segment< wchar_t const * > boost::locale::boundary::wcsegment
 convenience typedef
 
typedef segment< char16_t const * > boost::locale::boundary::u16csegment
 convenience typedef
 
typedef segment< char32_t const * > boost::locale::boundary::u32csegment
 convenience typedef
 
typedef uint32_t boost::locale::boundary::rule_type
 Flags used with word boundary analysis – the type of the word, line or sentence boundary found. More...
 

Enumerations

enum  boost::locale::boundary::boundary_type { boost::locale::boundary::character, boost::locale::boundary::word, boost::locale::boundary::sentence, boost::locale::boundary::line }
 

Functions

template<typename BaseIterator >
bool boost::locale::boundary::operator== (BaseIterator const &l, boundary_point< BaseIterator > const &r)
 
template<typename BaseIterator >
bool boost::locale::boundary::operator!= (BaseIterator const &l, boundary_point< BaseIterator > const &r)
 
 boost::locale::boundary::segment_index< BaseIterator >::segment_index ()
 
 boost::locale::boundary::segment_index< BaseIterator >::segment_index (boundary_type type, base_iterator begin, base_iterator end, rule_type mask, std::locale const &loc=std::locale())
 
 boost::locale::boundary::segment_index< BaseIterator >::segment_index (boundary_type type, base_iterator begin, base_iterator end, std::locale const &loc=std::locale())
 
 boost::locale::boundary::segment_index< BaseIterator >::segment_index (boundary_point_index< base_iterator > const &)
 
segment_index const & boost::locale::boundary::segment_index< BaseIterator >::operator= (boundary_point_index< base_iterator > const &)
 
void boost::locale::boundary::segment_index< BaseIterator >::map (boundary_type type, base_iterator begin, base_iterator end, std::locale const &loc=std::locale())
 
iterator boost::locale::boundary::segment_index< BaseIterator >::begin () const
 
iterator boost::locale::boundary::segment_index< BaseIterator >::end () const
 
iterator boost::locale::boundary::segment_index< BaseIterator >::find (base_iterator p) const
 
rule_type boost::locale::boundary::segment_index< BaseIterator >::rule () const
 
void boost::locale::boundary::segment_index< BaseIterator >::rule (rule_type v)
 
bool boost::locale::boundary::segment_index< BaseIterator >::full_select () const
 
void boost::locale::boundary::segment_index< BaseIterator >::full_select (bool v)
 
 boost::locale::boundary::boundary_point_index< BaseIterator >::boundary_point_index ()
 
 boost::locale::boundary::boundary_point_index< BaseIterator >::boundary_point_index (boundary_type type, base_iterator begin, base_iterator end, rule_type mask, std::locale const &loc=std::locale())
 
 boost::locale::boundary::boundary_point_index< BaseIterator >::boundary_point_index (boundary_type type, base_iterator begin, base_iterator end, std::locale const &loc=std::locale())
 
 boost::locale::boundary::boundary_point_index< BaseIterator >::boundary_point_index (segment_index< base_iterator > const &other)
 
boundary_point_index const & boost::locale::boundary::boundary_point_index< BaseIterator >::operator= (segment_index< base_iterator > const &other)
 
void boost::locale::boundary::boundary_point_index< BaseIterator >::map (boundary_type type, base_iterator begin, base_iterator end, std::locale const &loc=std::locale())
 
iterator boost::locale::boundary::boundary_point_index< BaseIterator >::begin () const
 
iterator boost::locale::boundary::boundary_point_index< BaseIterator >::end () const
 
iterator boost::locale::boundary::boundary_point_index< BaseIterator >::find (base_iterator p) const
 
rule_type boost::locale::boundary::boundary_point_index< BaseIterator >::rule () const
 
void boost::locale::boundary::boundary_point_index< BaseIterator >::rule (rule_type v)
 
template<typename IteratorL , typename IteratorR >
bool boost::locale::boundary::operator== (segment< IteratorL > const &l, segment< IteratorR > const &r)
 Compare two segments.
 
template<typename IteratorL , typename IteratorR >
bool boost::locale::boundary::operator!= (segment< IteratorL > const &l, segment< IteratorR > const &r)
 Compare two segments.
 
template<typename IteratorL , typename IteratorR >
bool boost::locale::boundary::operator< (segment< IteratorL > const &l, segment< IteratorR > const &r)
 Compare two segments.
 
template<typename IteratorL , typename IteratorR >
bool boost::locale::boundary::operator<= (segment< IteratorL > const &l, segment< IteratorR > const &r)
 Compare two segments.
 
template<typename IteratorL , typename IteratorR >
bool boost::locale::boundary::operator> (segment< IteratorL > const &l, segment< IteratorR > const &r)
 Compare two segments.
 
template<typename IteratorL , typename IteratorR >
bool boost::locale::boundary::operator>= (segment< IteratorL > const &l, segment< IteratorR > const &r)
 Compare two segments.
 
template<typename CharType , typename Traits , typename Alloc , typename IteratorR >
bool boost::locale::boundary::operator== (std::basic_string< CharType, Traits, Alloc > const &l, segment< IteratorR > const &r)
 Compare string and segment.
 
template<typename CharType , typename Traits , typename Alloc , typename IteratorR >
bool boost::locale::boundary::operator!= (std::basic_string< CharType, Traits, Alloc > const &l, segment< IteratorR > const &r)
 Compare string and segment.
 
template<typename CharType , typename Traits , typename Alloc , typename IteratorR >
bool boost::locale::boundary::operator< (std::basic_string< CharType, Traits, Alloc > const &l, segment< IteratorR > const &r)
 Compare string and segment.
 
template<typename CharType , typename Traits , typename Alloc , typename IteratorR >
bool boost::locale::boundary::operator<= (std::basic_string< CharType, Traits, Alloc > const &l, segment< IteratorR > const &r)
 Compare string and segment.
 
template<typename CharType , typename Traits , typename Alloc , typename IteratorR >
bool boost::locale::boundary::operator> (std::basic_string< CharType, Traits, Alloc > const &l, segment< IteratorR > const &r)
 Compare string and segment.
 
template<typename CharType , typename Traits , typename Alloc , typename IteratorR >
bool boost::locale::boundary::operator>= (std::basic_string< CharType, Traits, Alloc > const &l, segment< IteratorR > const &r)
 Compare string and segment.
 
template<typename Iterator , typename CharType , typename Traits , typename Alloc >
bool boost::locale::boundary::operator== (segment< Iterator > const &l, std::basic_string< CharType, Traits, Alloc > const &r)
 Compare string and segment.
 
template<typename Iterator , typename CharType , typename Traits , typename Alloc >
bool boost::locale::boundary::operator!= (segment< Iterator > const &l, std::basic_string< CharType, Traits, Alloc > const &r)
 Compare string and segment.
 
template<typename Iterator , typename CharType , typename Traits , typename Alloc >
bool boost::locale::boundary::operator< (segment< Iterator > const &l, std::basic_string< CharType, Traits, Alloc > const &r)
 Compare string and segment.
 
template<typename Iterator , typename CharType , typename Traits , typename Alloc >
bool boost::locale::boundary::operator<= (segment< Iterator > const &l, std::basic_string< CharType, Traits, Alloc > const &r)
 Compare string and segment.
 
template<typename Iterator , typename CharType , typename Traits , typename Alloc >
bool boost::locale::boundary::operator> (segment< Iterator > const &l, std::basic_string< CharType, Traits, Alloc > const &r)
 Compare string and segment.
 
template<typename Iterator , typename CharType , typename Traits , typename Alloc >
bool boost::locale::boundary::operator>= (segment< Iterator > const &l, std::basic_string< CharType, Traits, Alloc > const &r)
 Compare string and segment.
 
template<typename CharType , typename IteratorR >
bool boost::locale::boundary::operator== (CharType const *l, segment< IteratorR > const &r)
 Compare C string and segment.
 
template<typename CharType , typename IteratorR >
bool boost::locale::boundary::operator!= (CharType const *l, segment< IteratorR > const &r)
 Compare C string and segment.
 
template<typename CharType , typename IteratorR >
bool boost::locale::boundary::operator< (CharType const *l, segment< IteratorR > const &r)
 Compare C string and segment.
 
template<typename CharType , typename IteratorR >
bool boost::locale::boundary::operator<= (CharType const *l, segment< IteratorR > const &r)
 Compare C string and segment.
 
template<typename CharType , typename IteratorR >
bool boost::locale::boundary::operator> (CharType const *l, segment< IteratorR > const &r)
 Compare C string and segment.
 
template<typename CharType , typename IteratorR >
bool boost::locale::boundary::operator>= (CharType const *l, segment< IteratorR > const &r)
 Compare C string and segment.
 
template<typename Iterator , typename CharType >
bool boost::locale::boundary::operator== (segment< Iterator > const &l, CharType const *r)
 Compare C string and segment.
 
template<typename Iterator , typename CharType >
bool boost::locale::boundary::operator!= (segment< Iterator > const &l, CharType const *r)
 Compare C string and segment.
 
template<typename Iterator , typename CharType >
bool boost::locale::boundary::operator< (segment< Iterator > const &l, CharType const *r)
 Compare C string and segment.
 
template<typename Iterator , typename CharType >
bool boost::locale::boundary::operator<= (segment< Iterator > const &l, CharType const *r)
 Compare C string and segment.
 
template<typename Iterator , typename CharType >
bool boost::locale::boundary::operator> (segment< Iterator > const &l, CharType const *r)
 Compare C string and segment.
 
template<typename Iterator , typename CharType >
bool boost::locale::boundary::operator>= (segment< Iterator > const &l, CharType const *r)
 Compare C string and segment.
 
template<typename CharType , typename TraitsType , typename Iterator >
std::basic_ostream< CharType,
TraitsType > & 
boost::locale::boundary::operator<< (std::basic_ostream< CharType, TraitsType > &out, segment< Iterator > const &tok)
 
rule_type boost::locale::boundary::boundary_rule (boundary_type t)
 

Friends

class boost::locale::boundary::segment_index< BaseIterator >::boundary_point_index< base_iterator >
 
class boost::locale::boundary::boundary_point_index< BaseIterator >::segment_index< base_iterator >
 

Flags that describe a type of word selected

static const rule_type boost::locale::boundary::word_none = 0x0000F
 Not a word, like white space or punctuation mark.
 
static const rule_type boost::locale::boundary::word_number = 0x000F0
 Word that appear to be a number.
 
static const rule_type boost::locale::boundary::word_letter = 0x00F00
 Word that contains letters, excluding kana and ideographic characters.
 
static const rule_type boost::locale::boundary::word_kana = 0x0F000
 Word that contains kana characters.
 
static const rule_type boost::locale::boundary::word_ideo = 0xF0000
 Word that contains ideographic characters.
 
static const rule_type boost::locale::boundary::word_any = 0xFFFF0
 Any word including numbers, 0 is special flag, equivalent to 15.
 
static const rule_type boost::locale::boundary::word_letters = 0xFFF00
 Any word, excluding numbers but including letters, kana and ideograms.
 
static const rule_type boost::locale::boundary::word_kana_ideo = 0xFF000
 Word that includes kana or ideographic characters.
 
static const rule_type boost::locale::boundary::word_mask = 0xFFFFF
 

Flags that describe a type of line break

static const rule_type boost::locale::boundary::line_soft = 0x0F
 Soft line break: optional but not required.
 
static const rule_type boost::locale::boundary::line_hard = 0xF0
 Hard line break: like break is required (as per CR/LF)
 
static const rule_type boost::locale::boundary::line_any = 0xFF
 Soft or Hard line break.
 
static const rule_type boost::locale::boundary::line_mask = 0xFF
 Select all types of line breaks.
 

Flags that describe a type of sentence break

static const rule_type boost::locale::boundary::sentence_term = 0x0F
 The sentence was terminated with a sentence terminator like ".", "!" possible followed by hard separator like CR, LF, PS.
 
static const rule_type boost::locale::boundary::sentence_sep = 0xF0
 The sentence does not contain terminator like ".", "!" but ended with hard separator like CR, LF, PS or end of input.
 
static const rule_type boost::locale::boundary::sentence_any = 0xFF
 Either first or second sentence break type;.
 
static const rule_type boost::locale::boundary::sentence_mask = 0xFF
 Select all sentence breaking points.
 

Flags that describe a type of character break.

В этой точке итератор не различает различные типы символов, поэтому он используется для согласованности.

static const rule_type boost::locale::boundary::character_any = 0xF
 Not in use, just for consistency.
 
static const rule_type boost::locale::boundary::character_mask = 0xF
 Select all character breaking points.
 

Detailed Description

Этот модуль содержит все операции, необходимые для анализа границ текста: символы, слова, лайки и границы предложений.

Этот модуль содержит все операции, необходимые для анализа границ текста: символы, слова, лайки и границы предложений.

Typedef Documentation

template<typename BaseIterator>
typedef BaseIterator boost::locale::boundary::segment_index< BaseIterator >::base_iterator

Тип итератора, используемого для итерации по оригинальному тексту

template<typename BaseIterator >
typedef BaseIterator boost::locale::boundary::boundary_point_index< BaseIterator >::base_iterator

Тип итератора, используемого для итерации по оригинальному тексту

template<typename BaseIterator>
typedef unspecified_iterator_type boost::locale::boundary::segment_index< BaseIterator >::const_iterator

Двунаправленный итератор, итерирующий объектыvalue_type.

  • Итераторы могут быть признаны недействительными при использовании любой функции, не являющейся составной частью, включая, но не ограничиваясьправилом (rule_type)иfull_select (bool).
  • Возвращенное значение_тип объекта является действительным до тех пор, пока итератор указывает на него. Таким образом, следующий код неверен, поскольку t используется после обновления p:
    segment_index::iterator p=index.begin();
    segment&t = *p;
    ++p;
    cout<< t.str()<< endl;
    [ORIG_END] -->
template<typename BaseIterator >
typedef unspecified_iterator_type boost::locale::boundary::boundary_point_index< BaseIterator >::const_iterator

Двунаправленный итератор, итерирующий объектыvalue_type.

  • Итераторы могут быть признаны недействительными при использовании любой функции, не являющейся составной частью, включая, но не ограничиваясь этим,правило (правило_тип).
  • Возвращенное значение_тип объекта является действительным до тех пор, пока итератор указывает на него. Таким образом, следующий код неверен, поскольку t используется после обновления p:
    border_point_index::iterator p=index.begin();
    border_point&t = *p;
    ++p;
    rule_typer = t->rule();
    [ORIG_END] -->
typedef std::vector<break_info> boost::locale::boundary::index_type

Этот тип проводит анализ текста - все его точки разрыва с отметками

template<typename BaseIterator>
typedef unspecified_iterator_type boost::locale::boundary::segment_index< BaseIterator >::iterator

Двунаправленный итератор, итерирующий объектыvalue_type.

  • Итераторы могут быть признаны недействительными при использовании любой функции, не являющейся составной частью, включая, но не ограничиваясьправилом (rule_type)иfull_select (bool).
  • Возвращенное значение_тип объекта является действительным до тех пор, пока итератор указывает на него. Таким образом, следующий код неверен, поскольку t используется после обновления p:
    segment_index::iterator p=index.begin();
    segment&t = *p;
    ++p;
    cout<< t.str()<< endl;
    [ORIG_END] -->
template<typename BaseIterator >
typedef unspecified_iterator_type boost::locale::boundary::boundary_point_index< BaseIterator >::iterator

Двунаправленный итератор, итерирующий объектыvalue_type.

  • Итераторы могут быть признаны недействительными при использовании любой функции, не являющейся составной частью, включая, но не ограничиваясь этим,правило (правило_тип).
  • Возвращенное значение_тип объекта является действительным до тех пор, пока итератор указывает на него. Таким образом, следующий код неверен, поскольку t используется после обновления p:
    border_point_index::iterator p=index.begin();
    border_point&t = *p;
    ++p;
    rule_typer = t->rule();
    [ORIG_END] -->

Флаги, используемые с анализом границ слова – тип найденной границы слова, строки или предложения.

Это бит-маска, которая представляет различные комбинации правил, используемых для выбора этой конкретной границы.

template<typename BaseIterator>
typedef segment<base_iterator> boost::locale::boundary::segment_index< BaseIterator >::value_type

Тип итератораиconst_iterator. Это объект, представляющий выбранный сегмент.

template<typename BaseIterator >
typedef boundary_point<base_iterator> boost::locale::boundary::boundary_point_index< BaseIterator >::value_type

В качестве примера можно привестиитераториconst_iterator. Это объект, представляющий выбраннуюпограничную точку.

Enumeration Type Documentation

Этот тип описывает возможные альтернативы анализа границ.

Enumerator
character 

Проанализируйте текст для границ символов.

word 

Проанализируйте текст для границ слов.

sentence 

Проанализируйте текст, чтобы найти границы предложений.

line 

Анализ текста для позиций, подходящих для разрывов линий.

Function Documentation

template<typename BaseIterator>
iterator boost::locale::boundary::segment_index< BaseIterator >::begin ( ) конст
inline

итераторв начале диапазона сегментов.

Предпосылки:segment_indexдолжен иметь отображение

Note

Возвращенный итератор недействителен при доступе к любым неконст-членным функциям этого объекта.

template<typename BaseIterator >
iterator boost::locale::boundary::boundary_point_index< BaseIterator >::begin ( ) конст
inline

итераторв начале диапазона пограничных точек.

Предпосылки: этотborder_point_indexдолжен иметь отображение

Note

Возвращенный итератор недействителен при доступе к любым неконст-членным функциям этого объекта.

template<typename BaseIterator >
boost::locale::boundary::boundary_point_index< BaseIterator >::boundary_point_index ( )
inline

Конструктор по умолчанию.

Note

Когда этот объект построен по умолчанию, он не включает в себя действительный индекс, таким образом, вызываяначало (),конец () [41) илинайти ().Функции членов приводят к неопределенному поведению

template<typename BaseIterator >
boost::locale::boundary::boundary_point_index< BaseIterator >::boundary_point_index ( boundary_type  type,
base_iterator  begin,
base_iterator  end,
rule_type  mask,
std::locale const &  loc = std::locale() 
)
inline

Создатьсегмент_индексдля анализа граництиптекста в диапазоне [начало, конец], используя правиломаскудля локализациилока.

template<typename BaseIterator >
boost::locale::boundary::boundary_point_index< BaseIterator >::boundary_point_index ( boundary_type  type,
base_iterator  begin,
base_iterator  end,
std::locale const &  loc = std::locale() 
)
inline

Создатьсегмент_индексдля анализа граництиптекста в диапазоне [начало, конец], выбрав все возможные граничные точки (полная маска) для локализациилок.

template<typename BaseIterator >
boost::locale::boundary::boundary_point_index< BaseIterator >::boundary_point_index ( segment_index< base_iterator > const &  other)

Создайтепограничный_точка_индексизсегмента_индекс. Он копирует всю информацию об индексации и использует правило по умолчанию (все возможные граничные точки).

Эта операция очень дешевая, поэтому, если вы используетеborder_point_indexиsegment_indexв одном текстовом диапазоне, гораздо лучше создать один из другого, а затем индексировать один и тот же диапазон дважды.

Note
rule() flags are not copied
rule_type boost::locale::boundary::boundary_rule ( boundary_type  t)
inline

Эта функция возвращает маску, которая покрывает все варианты для конкретного пограничного типа.

template<typename BaseIterator>
iterator boost::locale::boundary::segment_index< BaseIterator >::end ( ) конст
inline

итераторна конце диапазона сегментов.

Предпосылки:segment_indexдолжен иметь отображение

Возвращенный итератор недействителен при доступе к любым неконст-членным функциям этого объекта.

template<typename BaseIterator >
iterator boost::locale::boundary::boundary_point_index< BaseIterator >::end ( ) конст
inline

итераторна конце диапазона граничных точек.

Предпосылки: этотborder_point_indexдолжен иметь отображение

Note

Возвращенный итератор недействителен при доступе к любым неконст-членным функциям этого объекта.

template<typename BaseIterator>
iterator boost::locale::boundary::segment_index< BaseIterator >::find ( base_iterator  p) конст
inline

Найдите первый действительный сегмент после позицииp.

Еслиpнаходится внутри действительного сегмента, этот сегмент выбирается:

Например: длясловаанализа границы сслова_anyправило():

  • "быть" или "быть", указывает на "быть",
  • "t |o be or", указывает на "to",
  • «Быть» или «второй», указывает на конец.

Предпосылки:segment_indexдолжен иметь отображение иpдолжен быть действительным итератором текста в картированном диапазоне.

Возвращенный итератор недействителен при доступе к любым неконст-членным функциям этого объекта.

template<typename BaseIterator >
iterator boost::locale::boundary::boundary_point_index< BaseIterator >::find ( base_iterator  p) конст
inline

Найдите первую действительную пограничную точку на позицииpили после нее.

Например: длясловапограничный анализ текста "быть или"

  • "Однажды быть", возвращает пограничную точку в "Однако быть".
  • "t |o be" означает "to | be"

Предпосылки:border_point_indexдолжен иметь отображение иpдолжен быть действительным итератором к тексту в картированном диапазоне.

Возвращенный итератор недействителен при доступе к любым неконст-членным функциям этого объекта.

template<typename BaseIterator>
bool boost::locale::boundary::segment_index< BaseIterator >::full_select ( ) конст
inline

Получить значение свойства full_select - следует сегментировать в пределах значений диапазона, которые не относятся к конкретномуправилу()или нет.

Значение по умолчанию ложное.

Например, дляпредложенияграницы с правиломпредложения_терминсегменты текста "Привет! «Привет!», «Вы?», когдаfull_select()является ложным, потому что «How\n» выбирается как предложение правилом, выплевывает текст по строке. Еслиfull_select()соответствует действительности, возвращенные сегменты: «Привет!», «Как вы?», где «Как?» соединены со следующей частью «Вы?»

template<typename BaseIterator>
void boost::locale::boundary::segment_index< BaseIterator >::full_select ( bool  v)
inline

Установить значение свойств full_select - следует сегментировать в пределах значений диапазона, которые не относятся к конкретномуправилу()или нет.

Значение по умолчанию ложное.

Например, дляпредложенияграницы с правиломпредложения_терминсегменты текста "Привет! «Привет!», «Вы?», когдаfull_select()является ложным, потому что «How\n» выбирается как предложение правилом, выплевывает текст по строке. Еслиfull_select()соответствует действительности, возвращенные сегменты: «Привет!», «Как вы?», где «Как?» соединены со следующей частью «Вы?»

template<typename BaseIterator>
void boost::locale::boundary::segment_index< BaseIterator >::map ( boundary_type  type,
base_iterator  begin,
base_iterator  end,
std::locale const &  loc = std::locale() 
)
inline

Создать новый индекс для граничного анализатипатекста в диапазоне [начало, конец] для локализациилок.

Note
rule() and full_select() remain unchanged.
Examples:
boundary.cpp, and wboundary.cpp.
template<typename BaseIterator >
void boost::locale::boundary::boundary_point_index< BaseIterator >::map ( boundary_type  type,
base_iterator  begin,
base_iterator  end,
std::locale const &  loc = std::locale() 
)
inline

Создать новый индекс для граничного анализатипатекста в диапазоне [начало, конец] для локализациилок.

Note
rule() remains unchanged.
template<typename BaseIterator >
bool boost::locale::boundary::operator!= ( BaseIterator const &  l,
boundary_point< BaseIterator > const &  r 
)

Проверьте, указывает ли пограничная точкаrна другое местоположение от итератораl

template<typename CharType , typename TraitsType , typename Iterator >
std::basic_ostream<CharType,TraitsType>& boost::locale::boundary::operator<< ( std::basic_ostream< CharType, TraitsType > &  out,
segment< Iterator > const &  tok 
)

Напишите сегмент на поток символ за персонажем

template<typename BaseIterator>
segment_index const& boost::locale::boundary::segment_index< BaseIterator >::operator= ( boundary_point_index< base_iterator > const &  )

Скопируйте индекс изborder_point_index. Он копирует всю информацию об индексации и использует правило по умолчанию (все возможные сегменты).

Эта операция очень дешевая, поэтому, если вы используетеborder_point_indexиsegment_indexв одном текстовом диапазоне, гораздо лучше создать один из другого, а затем индексировать один и тот же диапазон дважды.

Note
rule() flags are not copied
template<typename BaseIterator >
boundary_point_index const& boost::locale::boundary::boundary_point_index< BaseIterator >::operator= ( segment_index< base_iterator > const &  other)

Копироватьborder_point_indexизsegment_index. Он копирует всю информацию об индексации и сохраняет текущее правило 140.без изменений

Эта операция очень дешевая, поэтому, если вы используетеborder_point_indexиsegment_indexв одном текстовом диапазоне, гораздо лучше создать один из другого, а затем индексировать один и тот же диапазон дважды.

Note
rule() flags are not copied
template<typename BaseIterator >
bool boost::locale::boundary::operator== ( BaseIterator const &  l,
boundary_point< BaseIterator > const &  r 
)

Проверьте, указывает ли пограничная точкаrна то же место, что и итераторl.

template<typename BaseIterator>
rule_type boost::locale::boundary::segment_index< BaseIterator >::rule ( ) конст
inline

Найдите маску правил, которые используются

template<typename BaseIterator>
void boost::locale::boundary::segment_index< BaseIterator >::rule ( rule_type  v)
inline

Установите маску правил, которые используются

template<typename BaseIterator >
rule_type boost::locale::boundary::boundary_point_index< BaseIterator >::rule ( ) конст
inline

Найдите маску правил, которые используются

template<typename BaseIterator >
void boost::locale::boundary::boundary_point_index< BaseIterator >::rule ( rule_type  v)
inline

Установите маску правил, которые используются

template<typename BaseIterator>
boost::locale::boundary::segment_index< BaseIterator >::segment_index ( )
inline

Конструктор по умолчанию.

Note

Когда этот объект построен по умолчанию, он не включает в себя действительный индекс, таким образом, вызываяначало(),конец()илинайти().Функции членов приводят к неопределенному поведению

template<typename BaseIterator>
boost::locale::boundary::segment_index< BaseIterator >::segment_index ( boundary_type  type,
base_iterator  begin,
base_iterator  end,
rule_type  mask,
std::locale const &  loc = std::locale() 
)
inline

Создатьсегмент_индексдля анализа граництиптекста в диапазоне [начало, конец], используя правиломаскудля локализациилока.

template<typename BaseIterator>
boost::locale::boundary::segment_index< BaseIterator >::segment_index ( boundary_type  type,
base_iterator  begin,
base_iterator  end,
std::locale const &  loc = std::locale() 
)
inline

Создатьsegment_indexдля анализа граництипатекста в диапазоне [начало, конец], выбрав все возможные сегменты (полная маска) для локализацииloc.

template<typename BaseIterator>
boost::locale::boundary::segment_index< BaseIterator >::segment_index ( boundary_point_index< base_iterator > const &  )

Создайтесегмент_индексизграницы_точки_индекс. Он копирует всю информацию об индексации и использует правило по умолчанию (все возможные сегменты).

Эта операция очень дешевая, поэтому, если вы используетеborder_point_indexиsegment_indexв одном текстовом диапазоне, гораздо лучше создать один из другого, а затем индексировать один и тот же диапазон дважды.

Note
rule() flags are not copied

Variable Documentation

const rule_type boost::locale::boundary::word_mask = 0xFFFFF
static

Полная маска - выберите все возможные варианты

Статья Boost.Locale: Boundary Analysis раздела может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 06:11:02/0.013346910476685/0