diff options
Diffstat (limited to 'JavaScriptCore/wtf/unicode')
| -rw-r--r-- | JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h | 5 | ||||
| -rw-r--r-- | JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h b/JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h index 608aea6..de5e082 100644 --- a/JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h +++ b/JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h @@ -179,6 +179,11 @@ inline bool isPunct(UChar32 c) return !!u_ispunct(c); } +inline bool hasLineBreakingPropertyComplexContext(UChar32 c) +{ + return u_getIntPropertyValue(c, UCHAR_LINE_BREAK) == U_LB_COMPLEX_CONTEXT; +} + inline UChar32 mirroredChar(UChar32 c) { return u_charMirror(c); diff --git a/JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h b/JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h index d7d78ce..f65e292 100644 --- a/JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h +++ b/JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h @@ -352,6 +352,12 @@ inline bool isLower(UChar32 c) return QChar::category(c) == QChar::Letter_Lowercase; } +inline bool hasLineBreakingPropertyComplexContext(UChar32) +{ + // FIXME: Implement this to return whether the character has line breaking property SA (Complex Context). + return false; +} + inline UChar32 mirroredChar(UChar32 c) { return QChar::mirroredChar(c); |
