Home
last modified time | relevance | path

Searched refs:BreakIterator (Results 1 – 25 of 262) sorted by relevance

1234567891011

/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
DBreakIteratorRegTest.java20 import com.ibm.icu.text.BreakIterator;
29 BreakIterator jwbi = BreakIterator.getWordInstance(Locale.JAPAN); in TestRegUnreg()
30 BreakIterator uwbi = BreakIterator.getWordInstance(Locale.US); in TestRegUnreg()
31 BreakIterator usbi = BreakIterator.getSentenceInstance(Locale.US); in TestRegUnreg()
32 BreakIterator twbi = BreakIterator.getWordInstance(thailand_locale); in TestRegUnreg()
33 BreakIterator rwbi = BreakIterator.getWordInstance(new Locale("", "", "")); in TestRegUnreg()
35 BreakIterator sbi = (BreakIterator)usbi.clone(); in TestRegUnreg()
40 assertTrue(!BreakIterator.unregister(""), "unregister before register"); // coverage in TestRegUnreg()
42 …Object key0 = BreakIterator.registerInstance((BreakIterator)twbi.clone(), foo_locale, BreakIterato… in TestRegUnreg()
43 Object key1 = BreakIterator.registerInstance(sbi, Locale.US, BreakIterator.KIND_WORD); in TestRegUnreg()
[all …]
DBreakIteratorTest.java19 import com.ibm.icu.text.BreakIterator;
37 private void doOtherInvariantTest(BreakIterator tb, String testChars) in doOtherInvariantTest()
48 for (int k = tb.first(); k != BreakIterator.DONE; k = tb.next()) in doOtherInvariantTest()
76 for (int k = tb.first(); k != BreakIterator.DONE; k = tb.next()) in doOtherInvariantTest()
116 BreakIterator iter = BreakIterator.getWordInstance(); in TestBug4153072()
151 BreakIterator e = BreakIterator.getSentenceInstance(); in TestSentenceInvariants()
158 Locale[] locList = BreakIterator.getAvailableLocales(); in TestGetAvailableLocales()
164 com.ibm.icu.util.ULocale[] ulocList = BreakIterator.getAvailableULocales(); in TestGetAvailableLocales()
180 BreakIterator wb = BreakIterator.getWordInstance(); in TestEndBehavior()
198 com.ibm.icu.util.ULocale[] ulocales = BreakIterator.getAvailableULocales(); in TestT5615()
[all …]
DRBBITest.java31 import com.ibm.icu.text.BreakIterator;
60 BreakIterator b = BreakIterator.getWordInstance(locale); in TestThaiDictionaryBreakIterator()
66 while ((position = b.next())!= BreakIterator.DONE) { in TestThaiDictionaryBreakIterator()
73 while ((position = b.previous())!= BreakIterator.DONE) { in TestThaiDictionaryBreakIterator()
91 BreakIterator brk = BreakIterator.getWordInstance(new ULocale("th")); in TestThaiDictionaryBreakIterator()
94 while ((position = brk.next()) != BreakIterator.DONE && position < text2.length) { in TestThaiDictionaryBreakIterator()
100 brk = BreakIterator.getLineInstance(new ULocale("th")); in TestThaiDictionaryBreakIterator()
103 while ((position = brk.next()) != BreakIterator.DONE && position < text2.length) { in TestThaiDictionaryBreakIterator()
157 BreakIterator brkIter; in TestTailoredBreaks()
159 … case BreakIterator.KIND_CHARACTER: brkIter = BreakIterator.getCharacterInstance(locale); break; in TestTailoredBreaks()
[all …]
DRBBIAPITest.java30 import com.ibm.icu.text.BreakIterator;
44 …RuleBasedBreakIterator bi1 = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.ge… in TestCloneEquals()
45 …RuleBasedBreakIterator biequal = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Local… in TestCloneEquals()
46 …RuleBasedBreakIterator bi3 = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.ge… in TestCloneEquals()
47 …RuleBasedBreakIterator bi2 = (RuleBasedBreakIterator) BreakIterator.getWordInstance(Locale.getDefa… in TestCloneEquals()
87 …RuleBasedBreakIterator bi1 = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.ge… in TestToString()
88 …RuleBasedBreakIterator bi2 = (RuleBasedBreakIterator) BreakIterator.getWordInstance(Locale.getDefa… in TestToString()
104 …RuleBasedBreakIterator bi1 = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.ge… in TestHashCode()
105 …RuleBasedBreakIterator bi3 = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.ge… in TestHashCode()
106 …RuleBasedBreakIterator bi2 = (RuleBasedBreakIterator) BreakIterator.getWordInstance(Locale.getDefa… in TestHashCode()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/rbbi/
DBreakIteratorRegTest.java21 import ohos.global.icu.text.BreakIterator;
32 BreakIterator jwbi = BreakIterator.getWordInstance(Locale.JAPAN); in TestRegUnreg()
33 BreakIterator uwbi = BreakIterator.getWordInstance(Locale.US); in TestRegUnreg()
34 BreakIterator usbi = BreakIterator.getSentenceInstance(Locale.US); in TestRegUnreg()
35 BreakIterator twbi = BreakIterator.getWordInstance(thailand_locale); in TestRegUnreg()
36 BreakIterator rwbi = BreakIterator.getWordInstance(new Locale("", "", "")); in TestRegUnreg()
38 BreakIterator sbi = (BreakIterator)usbi.clone(); in TestRegUnreg()
43 assertTrue(!BreakIterator.unregister(""), "unregister before register"); // coverage in TestRegUnreg()
45 …Object key0 = BreakIterator.registerInstance((BreakIterator)twbi.clone(), foo_locale, BreakIterato… in TestRegUnreg()
46 Object key1 = BreakIterator.registerInstance(sbi, Locale.US, BreakIterator.KIND_WORD); in TestRegUnreg()
[all …]
DBreakIteratorTest.java20 import ohos.global.icu.text.BreakIterator;
40 private void doOtherInvariantTest(BreakIterator tb, String testChars) in doOtherInvariantTest()
51 for (int k = tb.first(); k != BreakIterator.DONE; k = tb.next()) in doOtherInvariantTest()
79 for (int k = tb.first(); k != BreakIterator.DONE; k = tb.next()) in doOtherInvariantTest()
119 BreakIterator iter = BreakIterator.getWordInstance(); in TestBug4153072()
154 BreakIterator e = BreakIterator.getSentenceInstance(); in TestSentenceInvariants()
161 Locale[] locList = BreakIterator.getAvailableLocales(); in TestGetAvailableLocales()
167 ohos.global.icu.util.ULocale[] ulocList = BreakIterator.getAvailableULocales(); in TestGetAvailableLocales()
183 BreakIterator wb = BreakIterator.getWordInstance(); in TestEndBehavior()
201 ohos.global.icu.util.ULocale[] ulocales = BreakIterator.getAvailableULocales(); in TestT5615()
[all …]
DRBBITest.java31 import ohos.global.icu.text.BreakIterator;
57 BreakIterator b = BreakIterator.getWordInstance(locale); in TestThaiDictionaryBreakIterator()
63 while ((position = b.next())!= BreakIterator.DONE) { in TestThaiDictionaryBreakIterator()
70 while ((position = b.previous())!= BreakIterator.DONE) { in TestThaiDictionaryBreakIterator()
88 BreakIterator brk = BreakIterator.getWordInstance(new ULocale("th")); in TestThaiDictionaryBreakIterator()
91 while ((position = brk.next()) != BreakIterator.DONE && position < text2.length) { in TestThaiDictionaryBreakIterator()
97 brk = BreakIterator.getLineInstance(new ULocale("th")); in TestThaiDictionaryBreakIterator()
100 while ((position = brk.next()) != BreakIterator.DONE && position < text2.length) { in TestThaiDictionaryBreakIterator()
154 BreakIterator brkIter; in TestTailoredBreaks()
156 … case BreakIterator.KIND_CHARACTER: brkIter = BreakIterator.getCharacterInstance(locale); break; in TestTailoredBreaks()
[all …]
DRBBIAPITest.java31 import ohos.global.icu.text.BreakIterator;
47 …RuleBasedBreakIterator bi1 = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.ge… in TestCloneEquals()
48 …RuleBasedBreakIterator biequal = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Local… in TestCloneEquals()
49 …RuleBasedBreakIterator bi3 = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.ge… in TestCloneEquals()
50 …RuleBasedBreakIterator bi2 = (RuleBasedBreakIterator) BreakIterator.getWordInstance(Locale.getDefa… in TestCloneEquals()
90 …RuleBasedBreakIterator bi1 = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.ge… in TestToString()
91 …RuleBasedBreakIterator bi2 = (RuleBasedBreakIterator) BreakIterator.getWordInstance(Locale.getDefa… in TestToString()
107 …RuleBasedBreakIterator bi1 = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.ge… in TestHashCode()
108 …RuleBasedBreakIterator bi3 = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.ge… in TestHashCode()
109 …RuleBasedBreakIterator bi2 = (RuleBasedBreakIterator) BreakIterator.getWordInstance(Locale.getDefa… in TestHashCode()
[all …]
/third_party/node/deps/icu-small/source/common/
Dbrkiter.cpp56 BreakIterator*
57 BreakIterator::buildInstance(const Locale& loc, const char *type, UErrorCode &status) in buildInstance()
123 U_LOCALE_BASED(locBased, *(BreakIterator*)result); in buildInstance()
146 BreakIterator* U_EXPORT2
147 BreakIterator::createWordInstance(const Locale& key, UErrorCode& status) in createWordInstance()
155 BreakIterator* U_EXPORT2
156 BreakIterator::createLineInstance(const Locale& key, UErrorCode& status) in createLineInstance()
164 BreakIterator* U_EXPORT2
165 BreakIterator::createCharacterInstance(const Locale& key, UErrorCode& status) in createCharacterInstance()
173 BreakIterator* U_EXPORT2
[all …]
Dubrk.cpp43 BreakIterator *result = 0; in ubrk_open()
48 result = BreakIterator::createCharacterInstance(Locale(locale), *status); in ubrk_open()
52 result = BreakIterator::createWordInstance(Locale(locale), *status); in ubrk_open()
56 result = BreakIterator::createLineInstance(Locale(locale), *status); in ubrk_open()
60 result = BreakIterator::createSentenceInstance(Locale(locale), *status); in ubrk_open()
64 result = BreakIterator::createTitleInstance(Locale(locale), *status); in ubrk_open()
108 BreakIterator *result = 0; in ubrk_openRules()
168 BreakIterator *newBI = ((BreakIterator *)bi)->clone(); in ubrk_safeClone()
186 delete (BreakIterator *)bi; in ubrk_close()
197 ((BreakIterator*)bi)->setText(&ut, *status); in ubrk_setText()
[all …]
Dustr_titlecase_brkiter.cpp43 class WholeStringBreakIterator : public BreakIterator {
45 WholeStringBreakIterator() : BreakIterator(), length(0) {} in WholeStringBreakIterator()
47 bool operator==(const BreakIterator&) const override;
76 bool WholeStringBreakIterator::operator==(const BreakIterator&) const { return false; } in operator ==()
132 BreakIterator *ustrcase_getTitleBreakIterator( in ustrcase_getTitleBreakIterator()
133 const Locale *locale, const char *locID, uint32_t options, BreakIterator *iter, in ustrcase_getTitleBreakIterator()
134 LocalPointer<BreakIterator> &ownedIter, UErrorCode &errorCode) { in ustrcase_getTitleBreakIterator()
144 iter = BreakIterator::createWordInstance( in ustrcase_getTitleBreakIterator()
154 iter = BreakIterator::createSentenceInstance( in ustrcase_getTitleBreakIterator()
167 const char *locale, uint32_t options, BreakIterator *iter, in toTitle()
[all …]
/third_party/skia/third_party/externals/icu/source/common/
Dbrkiter.cpp55 BreakIterator*
56 BreakIterator::buildInstance(const Locale& loc, const char *type, UErrorCode &status) in buildInstance()
122 U_LOCALE_BASED(locBased, *(BreakIterator*)result); in buildInstance()
145 BreakIterator* U_EXPORT2
146 BreakIterator::createWordInstance(const Locale& key, UErrorCode& status) in createWordInstance()
154 BreakIterator* U_EXPORT2
155 BreakIterator::createLineInstance(const Locale& key, UErrorCode& status) in createLineInstance()
163 BreakIterator* U_EXPORT2
164 BreakIterator::createCharacterInstance(const Locale& key, UErrorCode& status) in createCharacterInstance()
172 BreakIterator* U_EXPORT2
[all …]
Dubrk.cpp43 BreakIterator *result = 0; in ubrk_open()
48 result = BreakIterator::createCharacterInstance(Locale(locale), *status); in ubrk_open()
52 result = BreakIterator::createWordInstance(Locale(locale), *status); in ubrk_open()
56 result = BreakIterator::createLineInstance(Locale(locale), *status); in ubrk_open()
60 result = BreakIterator::createSentenceInstance(Locale(locale), *status); in ubrk_open()
64 result = BreakIterator::createTitleInstance(Locale(locale), *status); in ubrk_open()
108 BreakIterator *result = 0; in ubrk_openRules()
168 BreakIterator *newBI = ((BreakIterator *)bi)->clone(); in ubrk_safeClone()
182 BreakIterator *newBI = ((BreakIterator *)bi)->clone(); in ubrk_clone()
194 delete (BreakIterator *)bi; in ubrk_close()
[all …]
/third_party/icu/icu4c/source/common/
Dbrkiter.cpp56 BreakIterator*
57 BreakIterator::buildInstance(const Locale& loc, const char *type, UErrorCode &status) in buildInstance()
123 U_LOCALE_BASED(locBased, *(BreakIterator*)result); in buildInstance()
146 BreakIterator* U_EXPORT2
147 BreakIterator::createWordInstance(const Locale& key, UErrorCode& status) in createWordInstance()
155 BreakIterator* U_EXPORT2
156 BreakIterator::createLineInstance(const Locale& key, UErrorCode& status) in createLineInstance()
164 BreakIterator* U_EXPORT2
165 BreakIterator::createCharacterInstance(const Locale& key, UErrorCode& status) in createCharacterInstance()
173 BreakIterator* U_EXPORT2
[all …]
Dubrk.cpp43 BreakIterator *result = 0; in ubrk_open()
48 result = BreakIterator::createCharacterInstance(Locale(locale), *status); in ubrk_open()
52 result = BreakIterator::createWordInstance(Locale(locale), *status); in ubrk_open()
56 result = BreakIterator::createLineInstance(Locale(locale), *status); in ubrk_open()
60 result = BreakIterator::createSentenceInstance(Locale(locale), *status); in ubrk_open()
64 result = BreakIterator::createTitleInstance(Locale(locale), *status); in ubrk_open()
108 BreakIterator *result = 0; in ubrk_openRules()
168 BreakIterator *newBI = ((BreakIterator *)bi)->clone(); in ubrk_safeClone()
186 delete (BreakIterator *)bi; in ubrk_close()
197 ((BreakIterator*)bi)->setText(&ut, *status); in ubrk_setText()
[all …]
Dustr_titlecase_brkiter.cpp43 class WholeStringBreakIterator : public BreakIterator {
45 WholeStringBreakIterator() : BreakIterator(), length(0) {} in WholeStringBreakIterator()
47 bool operator==(const BreakIterator&) const U_OVERRIDE;
76 bool WholeStringBreakIterator::operator==(const BreakIterator&) const { return false; } in operator ==()
132 BreakIterator *ustrcase_getTitleBreakIterator( in ustrcase_getTitleBreakIterator()
133 const Locale *locale, const char *locID, uint32_t options, BreakIterator *iter, in ustrcase_getTitleBreakIterator()
134 LocalPointer<BreakIterator> &ownedIter, UErrorCode &errorCode) { in ustrcase_getTitleBreakIterator()
144 iter = BreakIterator::createWordInstance( in ustrcase_getTitleBreakIterator()
154 iter = BreakIterator::createSentenceInstance( in ustrcase_getTitleBreakIterator()
167 const char *locale, uint32_t options, BreakIterator *iter, in toTitle()
[all …]
/third_party/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
DBreakIteratorTest.java11 import java.text.BreakIterator;
32 for (Locale loc : BreakIterator.getAvailableLocales()) { in TestGetInstance()
45 BreakIterator brkitr = null; in checkGetInstance()
49 brkitr = BreakIterator.getCharacterInstance(loc); in checkGetInstance()
53 brkitr = BreakIterator.getWordInstance(loc); in checkGetInstance()
57 brkitr = BreakIterator.getLineInstance(loc); in checkGetInstance()
61 brkitr = BreakIterator.getSentenceInstance(loc); in checkGetInstance()
79 BreakIterator brkitrIcu = null; in checkGetInstance()
83 brkitrIcu = BreakIterator.getCharacterInstance(iculoc); in checkGetInstance()
86 brkitrIcu = BreakIterator.getWordInstance(iculoc); in checkGetInstance()
[all …]
/third_party/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/
DBreakIteratorPerformanceTest.java18 com.ibm.icu.text.BreakIterator iSentenceIter;
19 com.ibm.icu.text.BreakIterator iWordIter;
20 com.ibm.icu.text.BreakIterator iLineIter;
21 com.ibm.icu.text.BreakIterator iCharacterIter;
22 java.text.BreakIterator jSentenceIter;
23 java.text.BreakIterator jWordIter;
24 java.text.BreakIterator jLineIter;
25 java.text.BreakIterator jCharacterIter;
56 iSentenceIter = com.ibm.icu.text.BreakIterator.getSentenceInstance(); in setup()
57 iWordIter = com.ibm.icu.text.BreakIterator.getWordInstance(); in setup()
[all …]
DRBBIPerf.java14 import java.text.BreakIterator;
29 BreakIterator jdkbi;
63 … bi = (RuleBasedBreakIterator)com.ibm.icu.text.BreakIterator.getCharacterInstance(); in setup()
65 bi = (RuleBasedBreakIterator)com.ibm.icu.text.BreakIterator.getWordInstance(); in setup()
67 bi = (RuleBasedBreakIterator)com.ibm.icu.text.BreakIterator.getLineInstance(); in setup()
69 jdkbi = BreakIterator.getLineInstance(); in setup()
90 for (; n != BreakIterator.DONE; n=bi.next()) { in testRBBINext()
94 for (; n != BreakIterator.DONE; n=jdkbi.next()) { in testRBBINext()
104 for (n=bi.first(); n != BreakIterator.DONE; n=bi.next()) { in testRBBINext()
108 for (n=jdkbi.first(); n != BreakIterator.DONE; n=jdkbi.next()) { in testRBBINext()
[all …]
/third_party/node/deps/icu-small/source/common/unicode/
Dbrkiter.h44 class BreakIterator; variable
106 class U_COMMON_API BreakIterator : public UObject {
112 virtual ~BreakIterator();
127 virtual bool operator==(const BreakIterator&) const = 0;
135 bool operator!=(const BreakIterator& rhs) const { return !operator==(rhs); }
142 virtual BreakIterator* clone() const = 0;
368 static BreakIterator* U_EXPORT2
392 static BreakIterator* U_EXPORT2
414 static BreakIterator* U_EXPORT2
435 static BreakIterator* U_EXPORT2
[all …]
/third_party/skia/third_party/externals/icu/source/common/unicode/
Dbrkiter.h44 class BreakIterator; variable
106 class U_COMMON_API BreakIterator : public UObject {
112 virtual ~BreakIterator();
127 virtual UBool operator==(const BreakIterator&) const = 0;
135 UBool operator!=(const BreakIterator& rhs) const { return !operator==(rhs); }
142 virtual BreakIterator* clone() const = 0;
368 static BreakIterator* U_EXPORT2
392 static BreakIterator* U_EXPORT2
414 static BreakIterator* U_EXPORT2
435 static BreakIterator* U_EXPORT2
[all …]
/third_party/icu/icu4c/source/common/unicode/
Dbrkiter.h44 class BreakIterator; variable
106 class U_COMMON_API BreakIterator : public UObject {
112 virtual ~BreakIterator();
127 virtual bool operator==(const BreakIterator&) const = 0;
135 bool operator!=(const BreakIterator& rhs) const { return !operator==(rhs); }
142 virtual BreakIterator* clone() const = 0;
368 static BreakIterator* U_EXPORT2
392 static BreakIterator* U_EXPORT2
414 static BreakIterator* U_EXPORT2
435 static BreakIterator* U_EXPORT2
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DBreakIterator.java213 public abstract class BreakIterator implements Cloneable class
223 protected BreakIterator() in BreakIterator() method in BreakIterator
600 public static BreakIterator getWordInstance() in getWordInstance()
613 public static BreakIterator getWordInstance(Locale where) in getWordInstance()
626 public static BreakIterator getWordInstance(ULocale where) in getWordInstance()
639 public static BreakIterator getLineInstance() in getLineInstance()
653 public static BreakIterator getLineInstance(Locale where) in getLineInstance()
667 public static BreakIterator getLineInstance(ULocale where) in getLineInstance()
680 public static BreakIterator getCharacterInstance() in getCharacterInstance()
694 public static BreakIterator getCharacterInstance(Locale where) in getCharacterInstance()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DBreakIterator.java213 public abstract class BreakIterator implements Cloneable class
222 protected BreakIterator() in BreakIterator() method in BreakIterator
565 public static BreakIterator getWordInstance() in getWordInstance()
577 public static BreakIterator getWordInstance(Locale where) in getWordInstance()
589 public static BreakIterator getWordInstance(ULocale where) in getWordInstance()
601 public static BreakIterator getLineInstance() in getLineInstance()
614 public static BreakIterator getLineInstance(Locale where) in getLineInstance()
627 public static BreakIterator getLineInstance(ULocale where) in getLineInstance()
639 public static BreakIterator getCharacterInstance() in getCharacterInstance()
652 public static BreakIterator getCharacterInstance(Locale where) in getCharacterInstance()
[all …]
/third_party/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/text/
DBreakIteratorProviderICU.java11 import java.text.BreakIterator;
21 public BreakIterator getCharacterInstance(Locale locale) { in getCharacterInstance()
22 … com.ibm.icu.text.BreakIterator icuBrkItr = com.ibm.icu.text.BreakIterator.getCharacterInstance( in getCharacterInstance()
28 public BreakIterator getLineInstance(Locale locale) { in getLineInstance()
29 com.ibm.icu.text.BreakIterator icuBrkItr = com.ibm.icu.text.BreakIterator.getLineInstance( in getLineInstance()
35 public BreakIterator getSentenceInstance(Locale locale) { in getSentenceInstance()
36 … com.ibm.icu.text.BreakIterator icuBrkItr = com.ibm.icu.text.BreakIterator.getSentenceInstance( in getSentenceInstance()
42 public BreakIterator getWordInstance(Locale locale) { in getWordInstance()
43 com.ibm.icu.text.BreakIterator icuBrkItr = com.ibm.icu.text.BreakIterator.getWordInstance( in getWordInstance()

1234567891011