| OLD | NEW |
| 1 /* | 1 /* |
| 2 *******************************************************************************
***** | 2 *******************************************************************************
***** |
| 3 * Copyright (C) 2006-2013, International Business Machines Corporation | 3 * Copyright (C) 2006-2014, 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 |
| 11 | 11 |
| 12 #include "brkeng.h" | 12 #include "brkeng.h" |
| 13 #include "dictbe.h" | 13 #include "dictbe.h" |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 DictionaryMatcher *m = loadDictionaryMatcherFor(code, breakType); | 225 DictionaryMatcher *m = loadDictionaryMatcherFor(code, breakType); |
| 226 if (m != NULL) { | 226 if (m != NULL) { |
| 227 const LanguageBreakEngine *engine = NULL; | 227 const LanguageBreakEngine *engine = NULL; |
| 228 switch(code) { | 228 switch(code) { |
| 229 case USCRIPT_THAI: | 229 case USCRIPT_THAI: |
| 230 engine = new ThaiBreakEngine(m, status); | 230 engine = new ThaiBreakEngine(m, status); |
| 231 break; | 231 break; |
| 232 case USCRIPT_LAO: | 232 case USCRIPT_LAO: |
| 233 engine = new LaoBreakEngine(m, status); | 233 engine = new LaoBreakEngine(m, status); |
| 234 break; | 234 break; |
| 235 case USCRIPT_MYANMAR: |
| 236 engine = new BurmeseBreakEngine(m, status); |
| 237 break; |
| 235 case USCRIPT_KHMER: | 238 case USCRIPT_KHMER: |
| 236 engine = new KhmerBreakEngine(m, status); | 239 engine = new KhmerBreakEngine(m, status); |
| 237 break; | 240 break; |
| 238 | 241 |
| 239 #if !UCONFIG_NO_NORMALIZATION | 242 #if !UCONFIG_NO_NORMALIZATION |
| 240 // CJK not available w/o normalization | 243 // CJK not available w/o normalization |
| 241 case USCRIPT_HANGUL: | 244 case USCRIPT_HANGUL: |
| 242 engine = new CjkBreakEngine(m, kKorean, status); | 245 engine = new CjkBreakEngine(m, kKorean, status); |
| 243 break; | 246 break; |
| 244 | 247 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 // returning NULL here will cause us to fail to find a dictionary break
engine, as expected | 334 // returning NULL here will cause us to fail to find a dictionary break
engine, as expected |
| 332 status = U_ZERO_ERROR; | 335 status = U_ZERO_ERROR; |
| 333 return NULL; | 336 return NULL; |
| 334 } | 337 } |
| 335 return NULL; | 338 return NULL; |
| 336 } | 339 } |
| 337 | 340 |
| 338 U_NAMESPACE_END | 341 U_NAMESPACE_END |
| 339 | 342 |
| 340 #endif /* #if !UCONFIG_NO_BREAK_ITERATION */ | 343 #endif /* #if !UCONFIG_NO_BREAK_ITERATION */ |
| OLD | NEW |