gracefully handle when icu is built without BreakIterator support: -DUCONFIG_NO_BREAK_ITERATION=1
This commit is contained in:
parent
b6df3848c4
commit
750b4e144b
1 changed files with 3 additions and 0 deletions
|
@ -63,10 +63,13 @@ void text_node::apply(char_properties const& p, feature_impl const& feature, pro
|
|||
{
|
||||
text_str = text_str.toLower();
|
||||
}
|
||||
#if !UCONFIG_NO_BREAK_ITERATION
|
||||
else if (p.text_transform == CAPITALIZE)
|
||||
{
|
||||
// note: requires BreakIterator support in ICU which is optional
|
||||
text_str = text_str.toTitle(NULL);
|
||||
}
|
||||
#endif
|
||||
if (text_str.length() > 0) {
|
||||
output.push_back(p, text_str);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue