Home
last modified time | relevance | path

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

12345678

/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;
56 BreakIterator b = BreakIterator.getWordInstance(locale); in TestThaiDictionaryBreakIterator()
62 while ((position = b.next())!= BreakIterator.DONE) { in TestThaiDictionaryBreakIterator()
69 while ((position = b.previous())!= BreakIterator.DONE) { in TestThaiDictionaryBreakIterator()
87 BreakIterator brk = BreakIterator.getWordInstance(new ULocale("th")); in TestThaiDictionaryBreakIterator()
90 while ((position = brk.next()) != BreakIterator.DONE && position < text2.length) { in TestThaiDictionaryBreakIterator()
96 brk = BreakIterator.getLineInstance(new ULocale("th")); in TestThaiDictionaryBreakIterator()
99 while ((position = brk.next()) != BreakIterator.DONE && position < text2.length) { in TestThaiDictionaryBreakIterator()
153 BreakIterator brkIter; in TestTailoredBreaks()
155 … 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;
59 BreakIterator b = BreakIterator.getWordInstance(locale); in TestThaiDictionaryBreakIterator()
65 while ((position = b.next())!= BreakIterator.DONE) { in TestThaiDictionaryBreakIterator()
72 while ((position = b.previous())!= BreakIterator.DONE) { in TestThaiDictionaryBreakIterator()
90 BreakIterator brk = BreakIterator.getWordInstance(new ULocale("th")); in TestThaiDictionaryBreakIterator()
93 while ((position = brk.next()) != BreakIterator.DONE && position < text2.length) { in TestThaiDictionaryBreakIterator()
99 brk = BreakIterator.getLineInstance(new ULocale("th")); in TestThaiDictionaryBreakIterator()
102 while ((position = brk.next()) != BreakIterator.DONE && position < text2.length) { in TestThaiDictionaryBreakIterator()
156 BreakIterator brkIter; in TestTailoredBreaks()
158 … 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.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 …]
Dustr_titlecase_brkiter.cpp43 class WholeStringBreakIterator : public BreakIterator {
45 WholeStringBreakIterator() : BreakIterator(), length(0) {} in WholeStringBreakIterator()
47 UBool operator==(const BreakIterator&) const U_OVERRIDE;
76 UBool 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 …]
/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/libicu/cts_headers/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 …]
/external/icu/icu4c/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 …]
/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.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 …]
/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
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 …]
/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
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 …]
/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/libchrome/base/i18n/
Dbreak_iterator_unittest.cc22 BreakIterator iter(empty, BreakIterator::BREAK_WORD); in TEST()
33 BreakIterator iter(str, BreakIterator::BREAK_WORD); in TEST()
78 BreakIterator iter(str, BreakIterator::BREAK_WORD); in TEST()
102 BreakIterator iter(str, BreakIterator::BREAK_WORD); in TEST()
126 BreakIterator iter(str, BreakIterator::BREAK_WORD); in TEST()
154 BreakIterator iter(str, BreakIterator::BREAK_WORD); in TEST()
175 BreakIterator iter(str, BreakIterator::BREAK_WORD); in TEST()
199 BreakIterator iter(str, BreakIterator::BREAK_WORD); in TEST()
242 BreakIterator iter(empty, BreakIterator::BREAK_SPACE); in TEST()
252 BreakIterator iter(str, BreakIterator::BREAK_SPACE); in TEST()
[all …]
Dbreak_iterator.cc19 BreakIterator::BreakIterator(const StringPiece16& str, BreakType break_type) in BreakIterator() function in base::i18n::BreakIterator
26 BreakIterator::BreakIterator(const StringPiece16& str, const string16& rules) in BreakIterator() function in base::i18n::BreakIterator
34 BreakIterator::~BreakIterator() { in ~BreakIterator()
39 bool BreakIterator::Init() { in Init()
88 bool BreakIterator::Advance() { in Advance()
123 bool BreakIterator::SetText(const base::char16* text, const size_t length) { in SetText()
137 bool BreakIterator::IsWord() const { in IsWord()
141 BreakIterator::WordBreakStatus BreakIterator::GetWordBreakStatus() const { in GetWordBreakStatus()
152 bool BreakIterator::IsEndOfWord(size_t position) const { in IsEndOfWord()
162 bool BreakIterator::IsStartOfWord(size_t position) const { in IsStartOfWord()
[all …]
/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/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;

12345678