Home
last modified time | relevance | path

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

1234567

/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.java23 import android.icu.text.BreakIterator;
33 private BreakIterator characterBreak;
34 private BreakIterator wordBreak;
35 private BreakIterator lineBreak;
36 private BreakIterator sentenceBreak;
37 private BreakIterator titleBreak;
46 characterBreak = BreakIterator.getCharacterInstance(); in init()
47 wordBreak = BreakIterator.getWordInstance(); in init()
48 lineBreak = BreakIterator.getLineInstance(); in init()
50 sentenceBreak = BreakIterator.getSentenceInstance(); in init()
[all …]
DRBBITest.java29 import android.icu.text.BreakIterator;
55 BreakIterator b = BreakIterator.getWordInstance(locale); in TestThaiDictionaryBreakIterator()
61 while ((position = b.next())!= BreakIterator.DONE) { in TestThaiDictionaryBreakIterator()
68 while ((position = b.previous())!= BreakIterator.DONE) { in TestThaiDictionaryBreakIterator()
86 BreakIterator brk = BreakIterator.getWordInstance(new ULocale("th")); in TestThaiDictionaryBreakIterator()
89 while ((position = brk.next()) != BreakIterator.DONE && position < text2.length) { in TestThaiDictionaryBreakIterator()
95 brk = BreakIterator.getLineInstance(new ULocale("th")); in TestThaiDictionaryBreakIterator()
98 while ((position = brk.next()) != BreakIterator.DONE && position < text2.length) { in TestThaiDictionaryBreakIterator()
152 BreakIterator brkIter; in TestTailoredBreaks()
154 … 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/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.java22 import com.ibm.icu.text.BreakIterator;
30 private BreakIterator characterBreak;
31 private BreakIterator wordBreak;
32 private BreakIterator lineBreak;
33 private BreakIterator sentenceBreak;
34 private BreakIterator titleBreak;
43 characterBreak = BreakIterator.getCharacterInstance(); in init()
44 wordBreak = BreakIterator.getWordInstance(); in init()
45 lineBreak = BreakIterator.getLineInstance(); in init()
47 sentenceBreak = BreakIterator.getSentenceInstance(); in init()
[all …]
DRBBITest.java28 import com.ibm.icu.text.BreakIterator;
52 BreakIterator b = BreakIterator.getWordInstance(locale); in TestThaiDictionaryBreakIterator()
58 while ((position = b.next())!= BreakIterator.DONE) { in TestThaiDictionaryBreakIterator()
65 while ((position = b.previous())!= BreakIterator.DONE) { in TestThaiDictionaryBreakIterator()
83 BreakIterator brk = BreakIterator.getWordInstance(new ULocale("th")); in TestThaiDictionaryBreakIterator()
86 while ((position = brk.next()) != BreakIterator.DONE && position < text2.length) { in TestThaiDictionaryBreakIterator()
92 brk = BreakIterator.getLineInstance(new ULocale("th")); in TestThaiDictionaryBreakIterator()
95 while ((position = brk.next()) != BreakIterator.DONE && position < text2.length) { in TestThaiDictionaryBreakIterator()
149 BreakIterator brkIter; in TestTailoredBreaks()
151 … 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/icu4c/source/common/
Dbrkiter.cpp54 BreakIterator*
55 BreakIterator::buildInstance(const Locale& loc, const char *type, int32_t kind, UErrorCode &status) in buildInstance()
121 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 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;
365 static BreakIterator* U_EXPORT2
389 static BreakIterator* U_EXPORT2
411 static BreakIterator* U_EXPORT2
432 static BreakIterator* U_EXPORT2
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DBreakIterator.java216 public abstract class BreakIterator implements Cloneable class
225 protected BreakIterator() in BreakIterator() method in BreakIterator
551 public static BreakIterator getWordInstance() in getWordInstance()
563 public static BreakIterator getWordInstance(Locale where) in getWordInstance()
575 public static BreakIterator getWordInstance(ULocale where) in getWordInstance()
587 public static BreakIterator getLineInstance() in getLineInstance()
600 public static BreakIterator getLineInstance(Locale where) in getLineInstance()
613 public static BreakIterator getLineInstance(ULocale where) in getLineInstance()
625 public static BreakIterator getCharacterInstance() in getCharacterInstance()
638 public static BreakIterator getCharacterInstance(Locale where) in getCharacterInstance()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DBreakIterator.java216 public abstract class BreakIterator implements Cloneable class
226 protected BreakIterator() in BreakIterator() method in BreakIterator
586 public static BreakIterator getWordInstance() in getWordInstance()
599 public static BreakIterator getWordInstance(Locale where) in getWordInstance()
612 public static BreakIterator getWordInstance(ULocale where) in getWordInstance()
625 public static BreakIterator getLineInstance() in getLineInstance()
639 public static BreakIterator getLineInstance(Locale where) in getLineInstance()
653 public static BreakIterator getLineInstance(ULocale where) in getLineInstance()
666 public static BreakIterator getCharacterInstance() in getCharacterInstance()
680 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/icu/icu4c/source/samples/break/
Dbreak.cpp31 void printTextRange( BreakIterator& iterator, in printTextRange()
50 void printEachForward( BreakIterator& boundary) in printEachForward()
54 end != BreakIterator::DONE; in printEachForward()
62 void printEachBackward( BreakIterator& boundary) in printEachBackward()
66 start != BreakIterator::DONE; in printEachBackward()
74 void printFirst(BreakIterator& boundary) in printFirst()
82 void printLast(BreakIterator& boundary) in printLast()
90 void printAt(BreakIterator &boundary, int32_t pos ) in printAt()
102 BreakIterator* boundary; in main()
110 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;
/external/icu/icu4c/source/test/thaitest/
Dthaitest.cpp62 BreakIterator *fBreakIter;
224 BreakIterator *breakIter = BreakIterator::createWordInstance(thai, status); in compareWordBreaks()
237 if (nextSpaceBreak == BreakIterator::DONE || nextBreak == BreakIterator::DONE) { in compareWordBreaks()
238 if (nextBreak != BreakIterator::DONE) { in compareWordBreaks()
240 } else if (nextSpaceBreak != BreakIterator::DONE) { in compareWordBreaks()
248 nextSpaceBreak != BreakIterator::DONE && nextBreak != BreakIterator::DONE) { in compareWordBreaks()
405 BreakIterator *breakIter = BreakIterator::createWordInstance(root, status); in generateFile()
415 if (nextbreak == BreakIterator::DONE) { in generateFile()
506 fBreakIter = BreakIterator::createWordInstance(root, status); in SpaceBreakIterator()
529 return BreakIterator::DONE; in next()
[all …]

1234567