Bug 1265631 - patch 2 - Implement GetLineBreakClass() accessor to get Unicode line-break class from ICU or nsUnicodeProperties data. r=masayuki
This commit is contained in:
@@ -230,6 +230,16 @@ GetCombiningClass(uint32_t aCh)
|
||||
#endif
|
||||
}
|
||||
|
||||
uint8_t
|
||||
GetLineBreakClass(uint32_t aCh)
|
||||
{
|
||||
#if ENABLE_INTL_API
|
||||
return u_getIntPropertyValue(aCh, UCHAR_LINE_BREAK);
|
||||
#else
|
||||
return GetCharProps2(aCh).mLineBreak;
|
||||
#endif
|
||||
}
|
||||
|
||||
Script
|
||||
GetScriptCode(uint32_t aCh)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user