Added
Link Here
|
1 |
https://hg.mozilla.org/try/rev/d5f3b0c4f08a426ce00a153c04e177eecb6820e2 |
2 |
|
3 |
diff --git intl/lwbrk/LineBreaker.cpp intl/lwbrk/LineBreaker.cpp |
4 |
--- intl/lwbrk/LineBreaker.cpp |
5 |
+++ intl/lwbrk/LineBreaker.cpp |
6 |
@@ -443,17 +443,23 @@ static int8_t GetClass(uint32_t u, LineB |
7 |
/* JT = 34, [JT] */ CLASS_CHARACTER, |
8 |
/* JV = 35, [JV] */ CLASS_CHARACTER, |
9 |
/* CLOSE_PARENTHESIS = 36, [CP] */ CLASS_CLOSE_LIKE_CHARACTER, |
10 |
/* CONDITIONAL_JAPANESE_STARTER = 37, [CJ] */ CLASS_CLOSE, |
11 |
/* HEBREW_LETTER = 38, [HL] */ CLASS_CHARACTER, |
12 |
/* REGIONAL_INDICATOR = 39, [RI] */ CLASS_CHARACTER, |
13 |
/* E_BASE = 40, [EB] */ CLASS_BREAKABLE, |
14 |
/* E_MODIFIER = 41, [EM] */ CLASS_CHARACTER, |
15 |
- /* ZWJ = 42, [ZWJ]*/ CLASS_CHARACTER}; |
16 |
+ /* ZWJ = 42, [ZWJ]*/ CLASS_CHARACTER, |
17 |
+ /* AKSARA = 43, [AK] */ CLASS_CHARACTER, |
18 |
+ /* AKSARA_PREBASE = 44, [AP] */ CLASS_CHARACTER, |
19 |
+ /* AKSARA_START = 45, [AS] */ CLASS_CHARACTER, |
20 |
+ /* VIRAMA_FINAL = 46, [VF] */ CLASS_CHARACTER, |
21 |
+ /* VIRAMA = 47, [VI] */ CLASS_CHARACTER, |
22 |
+ }; |
23 |
|
24 |
static_assert(U_LB_COUNT == mozilla::ArrayLength(sUnicodeLineBreakToClass), |
25 |
"Gecko vs ICU LineBreak class mismatch"); |
26 |
|
27 |
auto cls = GetLineBreakClass(u); |
28 |
MOZ_ASSERT(cls < mozilla::ArrayLength(sUnicodeLineBreakToClass)); |
29 |
|
30 |
// Overrides based on rules for the different line-break values given in |
31 |
|