#include "unicode_grapheme_cluster_break.hpp"
#include "unicode_break_opportunity.hpp"
#include "../cast.hpp"
#include <algorithm>
#include <vector>
Go to the source code of this file.
|
| enum class | unicode_word_break_property : uint8_t {
Other
, CR
, LF
, Newline
,
Extend
, ZWJ
, Regional_Indicator
, Format
,
Katakana
, Hebrew_Letter
, ALetter
, Single_Quote
,
Double_Quote
, MidNumLet
, MidLetter
, MidNum
,
Numeric
, ExtendNumLet
, WSegSpace
} |
| |
◆ unicode_word_break()
template<typename It , typename ItEnd , typename DescriptionFunc >
| unicode_break_vector v1::unicode_word_break |
( |
It | first, |
|
|
ItEnd | last, |
|
|
DescriptionFunc const & | description_func ) |
|
inline |
The unicode word break algorithm UAX#29.
- Parameters
-
| first | An iterator to the first character. |
| last | An iterator to the last character. |
| description_func | A function to get a reference to unicode_description from a character. |
- Returns
- A list of unicode_break_opportunity.