xref: /aosp_15_r20/external/cronet/third_party/icu/patches/khmer-dictbe.patch (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1*6777b538SAndroid Build Coastguard Workerdiff --git a/source/common/dictbe.cpp b/source/common/dictbe.cpp
2*6777b538SAndroid Build Coastguard Workerindex 3d672c03..9c3e3e36 100644
3*6777b538SAndroid Build Coastguard Worker--- a/source/common/dictbe.cpp
4*6777b538SAndroid Build Coastguard Worker+++ b/source/common/dictbe.cpp
5*6777b538SAndroid Build Coastguard Worker@@ -818,11 +818,11 @@ foundBest:
6*6777b538SAndroid Build Coastguard Worker static const int32_t KHMER_LOOKAHEAD = 3;
7*6777b538SAndroid Build Coastguard Worker
8*6777b538SAndroid Build Coastguard Worker // Will not combine a non-word with a preceding dictionary word longer than this
9*6777b538SAndroid Build Coastguard Worker-static const int32_t KHMER_ROOT_COMBINE_THRESHOLD = 3;
10*6777b538SAndroid Build Coastguard Worker+static const int32_t KHMER_ROOT_COMBINE_THRESHOLD = 10;
11*6777b538SAndroid Build Coastguard Worker
12*6777b538SAndroid Build Coastguard Worker // Will not combine a non-word that shares at least this much prefix with a
13*6777b538SAndroid Build Coastguard Worker // dictionary word, with a preceding word
14*6777b538SAndroid Build Coastguard Worker-static const int32_t KHMER_PREFIX_COMBINE_THRESHOLD = 3;
15*6777b538SAndroid Build Coastguard Worker+static const int32_t KHMER_PREFIX_COMBINE_THRESHOLD = 5;
16*6777b538SAndroid Build Coastguard Worker
17*6777b538SAndroid Build Coastguard Worker // Minimum word size
18*6777b538SAndroid Build Coastguard Worker static const int32_t KHMER_MIN_WORD = 2;
19