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:
Jonathan Kew
2016-04-26 10:32:17 +01:00
parent 849e8dff02
commit dcf383ae88
2 changed files with 12 additions and 0 deletions

View File

@@ -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)
{