Home
last modified time | relevance | path

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

1234567

/external/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.java30 import com.ibm.icu.text.BreakIterator;
54 BreakIterator b = BreakIterator.getWordInstance(locale); in TestThaiDictionaryBreakIterator()
60 while ((position = b.next())!= BreakIterator.DONE) { in TestThaiDictionaryBreakIterator()
67 while ((position = b.previous())!= BreakIterator.DONE) { in TestThaiDictionaryBreakIterator()
85 BreakIterator brk = BreakIterator.getWordInstance(new ULocale("th")); in TestThaiDictionaryBreakIterator()
88 while ((position = brk.next()) != BreakIterator.DONE && position < text2.length) { in TestThaiDictionaryBreakIterator()
94 brk = BreakIterator.getLineInstance(new ULocale("th")); in TestThaiDictionaryBreakIterator()
97 while ((position = brk.next()) != BreakIterator.DONE && position < text2.length) { in TestThaiDictionaryBreakIterator()
151 BreakIterator brkIter; in TestTailoredBreaks()
153 … 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 …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/
DBreakIteratorRegTest.java21 import android.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 android.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 android.icu.util.ULocale[] ulocList = BreakIterator.getAvailableULocales(); in TestGetAvailableLocales()
183 BreakIterator wb = BreakIterator.getWordInstance(); in TestEndBehavior()
201 android.icu.util.ULocale[] ulocales = BreakIterator.getAvailableULocales(); in TestT5615()
[all …]
DRBBITest.java31 import android.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 android.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 …]
/external/icu/icu4c/source/common/
Dbrkiter.cpp54 BreakIterator*
55 BreakIterator::buildInstance(const Locale& loc, const char *type, UErrorCode &status) in buildInstance()
121 U_LOCALE_BASED(locBased, *(BreakIterator*)result); in buildInstance()
144 BreakIterator* U_EXPORT2
145 BreakIterator::createWordInstance(const Locale& key, UErrorCode& status) in createWordInstance()
153 BreakIterator* U_EXPORT2
154 BreakIterator::createLineInstance(const Locale& key, UErrorCode& status) in createLineInstance()
162 BreakIterator* U_EXPORT2
163 BreakIterator::createCharacterInstance(const Locale& key, UErrorCode& status) in createCharacterInstance()
171 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 delete (BreakIterator *)bi; in ubrk_close()
193 ((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 UBool operator==(const BreakIterator&) const U_OVERRIDE;
48 BreakIterator *clone() const U_OVERRIDE;
65 BreakIterator *createBufferClone(void *stackBuffer, int32_t &BufferSize,
67 BreakIterator &refreshInputText(UText *input, UErrorCode &errorCode) U_OVERRIDE;
76 UBool WholeStringBreakIterator::operator==(const BreakIterator&) const { return FALSE; } in operator ==()
77 BreakIterator *WholeStringBreakIterator::clone() const { return nullptr; } in clone()
124 BreakIterator *WholeStringBreakIterator::createBufferClone( in createBufferClone()
131 BreakIterator &WholeStringBreakIterator::refreshInputText( in refreshInputText()
[all …]
/external/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 …]
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
DBreakIterator.java205 public abstract class BreakIterator implements Cloneable class
213 protected BreakIterator() in BreakIterator() method in BreakIterator
446 public static BreakIterator getWordInstance() in getWordInstance()
458 public static BreakIterator getWordInstance(Locale where) in getWordInstance()
470 public static BreakIterator getWordInstance(ULocale where) in getWordInstance()
483 public static BreakIterator getLineInstance() in getLineInstance()
496 public static BreakIterator getLineInstance(Locale where) in getLineInstance()
509 public static BreakIterator getLineInstance(ULocale where) in getLineInstance()
522 public static BreakIterator getCharacterInstance() in getCharacterInstance()
535 public static BreakIterator getCharacterInstance(Locale where) in getCharacterInstance()
[all …]
/external/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.java15 import java.text.BreakIterator;
27 BreakIterator jdkbi;
61 … bi = (RuleBasedBreakIterator)com.ibm.icu.text.BreakIterator.getCharacterInstance(); in setup()
63 bi = (RuleBasedBreakIterator)com.ibm.icu.text.BreakIterator.getWordInstance(); in setup()
65 bi = (RuleBasedBreakIterator)com.ibm.icu.text.BreakIterator.getLineInstance(); in setup()
67 jdkbi = BreakIterator.getLineInstance(); in setup()
88 for (; n != BreakIterator.DONE; n=bi.next()) { in testRBBINext()
92 for (; n != BreakIterator.DONE; n=jdkbi.next()) { in testRBBINext()
102 for (n=bi.first(); n != BreakIterator.DONE; n=bi.next()) { in testRBBINext()
106 for (n=jdkbi.first(); n != BreakIterator.DONE; n=jdkbi.next()) { in testRBBINext()
[all …]
/external/icu/icu4c/source/common/unicode/
Dbrkiter.h40 class BreakIterator; variable
102 class U_COMMON_API BreakIterator : public UObject {
108 virtual ~BreakIterator();
123 virtual UBool operator==(const BreakIterator&) const = 0;
131 UBool operator!=(const BreakIterator& rhs) const { return !operator==(rhs); }
138 virtual BreakIterator* clone(void) const = 0;
364 static BreakIterator* U_EXPORT2
388 static BreakIterator* U_EXPORT2
410 static BreakIterator* U_EXPORT2
431 static BreakIterator* U_EXPORT2
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DBreakIterator.java213 public abstract class BreakIterator implements Cloneable class
222 protected BreakIterator() in BreakIterator() method in BreakIterator
563 public static BreakIterator getWordInstance() in getWordInstance()
575 public static BreakIterator getWordInstance(Locale where) in getWordInstance()
587 public static BreakIterator getWordInstance(ULocale where) in getWordInstance()
599 public static BreakIterator getLineInstance() in getLineInstance()
612 public static BreakIterator getLineInstance(Locale where) in getLineInstance()
625 public static BreakIterator getLineInstance(ULocale where) in getLineInstance()
637 public static BreakIterator getCharacterInstance() in getCharacterInstance()
650 public static BreakIterator getCharacterInstance(Locale where) in getCharacterInstance()
[all …]
/external/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
597 public static BreakIterator getWordInstance() in getWordInstance()
610 public static BreakIterator getWordInstance(Locale where) in getWordInstance()
623 public static BreakIterator getWordInstance(ULocale where) in getWordInstance()
636 public static BreakIterator getLineInstance() in getLineInstance()
650 public static BreakIterator getLineInstance(Locale where) in getLineInstance()
664 public static BreakIterator getLineInstance(ULocale where) in getLineInstance()
677 public static BreakIterator getCharacterInstance() in getCharacterInstance()
691 public static BreakIterator getCharacterInstance(Locale where) in getCharacterInstance()
[all …]
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DBreakIteratorTest.java16 import com.ibm.icu.text.BreakIterator;
26 private static BreakIterator cbr;
27 private static BreakIterator wbr;
28 private static BreakIterator lbr;
29 private static BreakIterator sbr;
32 cbr = BreakIterator.getCharacterInstance();
34 wbr = BreakIterator.getWordInstance();
36 lbr = BreakIterator.getLineInstance();
38 sbr = BreakIterator.getSentenceInstance();
61 BreakIterator br = BreakIterator.getWordInstance(); in testHashCode()
[all …]
/external/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()
/external/cldr/tools/java/org/unicode/cldr/util/
DRangeAbbreviator.java3 import com.ibm.icu.text.BreakIterator;
7 private BreakIterator breaker1;
8 private BreakIterator breaker2;
12 public RangeAbbreviator(BreakIterator breaker, String separator) { in RangeAbbreviator()
13 this.breaker1 = (BreakIterator) breaker.clone(); in RangeAbbreviator()
14 this.breaker2 = (BreakIterator) breaker.clone(); in RangeAbbreviator()
19 this(BreakIterator.getWordInstance(breaker), separator); in RangeAbbreviator()
37 if (current1 == BreakIterator.DONE) { in abbreviate()
42 if (current2 == BreakIterator.DONE) { in abbreviate()
57 if (current1 == BreakIterator.DONE) { in abbreviate()
[all …]
/external/icu/icu4c/source/samples/break/
Dbreak.cpp32 void printTextRange( BreakIterator& iterator, in printTextRange()
51 void printEachForward( BreakIterator& boundary) in printEachForward()
55 end != BreakIterator::DONE; in printEachForward()
63 void printEachBackward( BreakIterator& boundary) in printEachBackward()
67 start != BreakIterator::DONE; in printEachBackward()
75 void printFirst(BreakIterator& boundary) in printFirst()
83 void printLast(BreakIterator& boundary) in printLast()
91 void printAt(BreakIterator &boundary, int32_t pos ) in printAt()
103 BreakIterator* boundary; in main()
111 boundary = BreakIterator::createSentenceInstance( in main()
[all …]
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DBreakIteratorICU.java13 import com.ibm.icu.text.BreakIterator;
19 public class BreakIteratorICU extends java.text.BreakIterator {
21 private BreakIterator fIcuBrkItr;
23 private BreakIteratorICU(BreakIterator icuBrkItr) { in BreakIteratorICU()
27 public static java.text.BreakIterator wrap(BreakIterator icuBrkItr) { in wrap()
31 public BreakIterator unwrap() { in unwrap()
38 other.fIcuBrkItr = (BreakIterator)fIcuBrkItr.clone(); in clone()
/external/icu/icu4c/source/test/intltest/
Drbbiapts.cpp85 …RuleBasedBreakIterator *bix = (RuleBasedBreakIterator *)BreakIterator::createLineInstance(Locale::… in TestCloneEquals()
156 BreakIterator* a = BreakIterator::createWordInstance(Locale("hi"), status); in TestBoilerPlate()
157 BreakIterator* b = BreakIterator::createWordInstance(Locale("hi_IN"),status); in TestBoilerPlate()
167 BreakIterator* c = BreakIterator::createCharacterInstance(Locale("ja"),status); in TestBoilerPlate()
168 BreakIterator* d = BreakIterator::createCharacterInstance(Locale("root"),status); in TestBoilerPlate()
310 TEST_ASSERT(rb->following(11) == BreakIterator::DONE); in TestGetSetAdoptText()
450 if (i != BreakIterator::DONE) { in TestIteration()
465 if (i != BreakIterator::DONE) { in TestIteration()
514 if (i != BreakIterator::DONE) { in TestIteration()
538 if (i != BreakIterator::DONE) { in TestIteration()
[all …]
/external/icu/icu4c/source/i18n/
Dsharedbreakiterator.h21 class BreakIterator; variable
33 SharedBreakIterator(BreakIterator *biToAdopt);
36 BreakIterator *get() const { return ptr; } in get()
37 BreakIterator *operator->() const { return ptr; }
38 BreakIterator &operator*() const { return *ptr; }
40 BreakIterator *ptr;

1234567