Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: source/common/dictbe.cpp

Issue 1637683002: ICU 56 step 5: Apply the remaining local patches (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@56post56
Patch Set: drop uconv.patch Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « patches/wpo.patch ('k') | source/common/locmap.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /** 1 /**
2 ******************************************************************************* 2 *******************************************************************************
3 * Copyright (C) 2006-2015, International Business Machines Corporation 3 * Copyright (C) 2006-2015, International Business Machines Corporation
4 * and others. All Rights Reserved. 4 * and others. All Rights Reserved.
5 ******************************************************************************* 5 *******************************************************************************
6 */ 6 */
7 7
8 #include "unicode/utypes.h" 8 #include "unicode/utypes.h"
9 9
10 #if !UCONFIG_NO_BREAK_ITERATION 10 #if !UCONFIG_NO_BREAK_ITERATION
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 825
826 /* 826 /*
827 ****************************************************************** 827 ******************************************************************
828 * KhmerBreakEngine 828 * KhmerBreakEngine
829 */ 829 */
830 830
831 // How many words in a row are "good enough"? 831 // How many words in a row are "good enough"?
832 static const int32_t KHMER_LOOKAHEAD = 3; 832 static const int32_t KHMER_LOOKAHEAD = 3;
833 833
834 // Will not combine a non-word with a preceding dictionary word longer than this 834 // Will not combine a non-word with a preceding dictionary word longer than this
835 static const int32_t KHMER_ROOT_COMBINE_THRESHOLD = 3; 835 static const int32_t KHMER_ROOT_COMBINE_THRESHOLD = 10;
836 836
837 // Will not combine a non-word that shares at least this much prefix with a 837 // Will not combine a non-word that shares at least this much prefix with a
838 // dictionary word, with a preceding word 838 // dictionary word, with a preceding word
839 static const int32_t KHMER_PREFIX_COMBINE_THRESHOLD = 3; 839 static const int32_t KHMER_PREFIX_COMBINE_THRESHOLD = 5;
840 840
841 // Minimum word size 841 // Minimum word size
842 static const int32_t KHMER_MIN_WORD = 2; 842 static const int32_t KHMER_MIN_WORD = 2;
843 843
844 // Minimum number of characters for two words 844 // Minimum number of characters for two words
845 static const int32_t KHMER_MIN_WORD_SPAN = KHMER_MIN_WORD * 2; 845 static const int32_t KHMER_MIN_WORD_SPAN = KHMER_MIN_WORD * 2;
846 846
847 KhmerBreakEngine::KhmerBreakEngine(DictionaryMatcher *adoptDictionary, UErrorCod e &status) 847 KhmerBreakEngine::KhmerBreakEngine(DictionaryMatcher *adoptDictionary, UErrorCod e &status)
848 : DictionaryBreakEngine((1 << UBRK_WORD) | (1 << UBRK_LINE)), 848 : DictionaryBreakEngine((1 << UBRK_WORD) | (1 << UBRK_LINE)),
849 fDictionary(adoptDictionary) 849 fDictionary(adoptDictionary)
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
1394 // inString goes out of scope 1394 // inString goes out of scope
1395 // inputMap goes out of scope 1395 // inputMap goes out of scope
1396 return numBreaks; 1396 return numBreaks;
1397 } 1397 }
1398 #endif 1398 #endif
1399 1399
1400 U_NAMESPACE_END 1400 U_NAMESPACE_END
1401 1401
1402 #endif /* #if !UCONFIG_NO_BREAK_ITERATION */ 1402 #endif /* #if !UCONFIG_NO_BREAK_ITERATION */
1403 1403
OLDNEW
« no previous file with comments | « patches/wpo.patch ('k') | source/common/locmap.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698