/external/icu/android_icu4j/src/main/java/android/icu/text/ |
FilteredBreakIteratorBuilder.java | 18 * The BreakIteratorFilter is used to modify the behavior of a BreakIterator 19 * by constructing a new BreakIterator which suppresses certain segment boundaries. 92 * Note that the wrappedBreakIterator is adopted by the new BreakIterator 96 * @return the new BreakIterator 98 public abstract BreakIterator wrapIteratorWithFilter(BreakIterator wrappedBreakIterator);
|
BreakIteratorFactory.java | 35 final class BreakIteratorFactory extends BreakIterator.BreakIteratorServiceShim { 38 public Object registerInstance(BreakIterator iter, ULocale locale, int kind) { 70 public BreakIterator createBreakIterator(ULocale locale, int kind) { 76 BreakIterator iter = (BreakIterator)service.get(locale, kind, actualLoc); 83 super("BreakIterator"); 97 * createBreakInstance() returns an appropriate BreakIterator for any locale. 122 private static BreakIterator createBreakInstance(ULocale locale, int kind) { 134 if (kind == BreakIterator.KIND_LINE) { 167 if (kind == BreakIterator.KIND_SENTENCE) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
FilteredBreakIteratorBuilder.java | 17 * The BreakIteratorFilter is used to modify the behavior of a BreakIterator 18 * by constructing a new BreakIterator which suppresses certain segment boundaries. 96 * Note that the wrappedBreakIterator is adopted by the new BreakIterator 100 * @return the new BreakIterator 103 public abstract BreakIterator wrapIteratorWithFilter(BreakIterator wrappedBreakIterator);
|
BreakIteratorFactory.java | 34 final class BreakIteratorFactory extends BreakIterator.BreakIteratorServiceShim { 37 public Object registerInstance(BreakIterator iter, ULocale locale, int kind) { 69 public BreakIterator createBreakIterator(ULocale locale, int kind) { 75 BreakIterator iter = (BreakIterator)service.get(locale, kind, actualLoc); 82 super("BreakIterator"); 96 * createBreakInstance() returns an appropriate BreakIterator for any locale. 121 private static BreakIterator createBreakInstance(ULocale locale, int kind) { 133 if (kind == BreakIterator.KIND_LINE) { 166 if (kind == BreakIterator.KIND_SENTENCE) [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/ |
RBBIAPITest.java | 31 import android.icu.text.BreakIterator; 47 RuleBasedBreakIterator bi1 = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.getDefault()); 48 RuleBasedBreakIterator biequal = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.getDefault()); 49 RuleBasedBreakIterator bi3 = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.getDefault()); 50 RuleBasedBreakIterator bi2 = (RuleBasedBreakIterator) BreakIterator.getWordInstance(Locale.getDefault()); 90 RuleBasedBreakIterator bi1 = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.getDefault()); 91 RuleBasedBreakIterator bi2 = (RuleBasedBreakIterator) BreakIterator.getWordInstance(Locale.getDefault()); 107 RuleBasedBreakIterator bi1 = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.getDefault()); 108 RuleBasedBreakIterator bi3 = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.getDefault()); 109 RuleBasedBreakIterator bi2 = (RuleBasedBreakIterator) BreakIterator.getWordInstance(Locale.getDefault()) [all...] |
AbstractBreakIteratorTests.java | 14 import android.icu.text.BreakIterator; 25 private class AbstractBreakIterator extends BreakIterator { 88 private BreakIterator bi; 98 TestFmwk.assertEquals("BreakIterator preceding position not correct", BreakIterator.DONE, pos); 101 TestFmwk.assertEquals("BreakIterator preceding position not correct", 4, pos); 107 TestFmwk.assertTrue("BreakIterator is boundary not correct", b); 110 TestFmwk.assertTrue("BreakIterator is boundary not correct", b);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/ |
RBBIAPITest.java | 30 import com.ibm.icu.text.BreakIterator; 44 RuleBasedBreakIterator bi1 = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.getDefault()); 45 RuleBasedBreakIterator biequal = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.getDefault()); 46 RuleBasedBreakIterator bi3 = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.getDefault()); 47 RuleBasedBreakIterator bi2 = (RuleBasedBreakIterator) BreakIterator.getWordInstance(Locale.getDefault()); 87 RuleBasedBreakIterator bi1 = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.getDefault()); 88 RuleBasedBreakIterator bi2 = (RuleBasedBreakIterator) BreakIterator.getWordInstance(Locale.getDefault()); 104 RuleBasedBreakIterator bi1 = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.getDefault()); 105 RuleBasedBreakIterator bi3 = (RuleBasedBreakIterator) BreakIterator.getCharacterInstance(Locale.getDefault()); 106 RuleBasedBreakIterator bi2 = (RuleBasedBreakIterator) BreakIterator.getWordInstance(Locale.getDefault()) [all...] |
AbstractBreakIteratorTests.java | 13 import com.ibm.icu.text.BreakIterator; 22 private class AbstractBreakIterator extends BreakIterator { 85 private BreakIterator bi; 95 TestFmwk.assertEquals("BreakIterator preceding position not correct", BreakIterator.DONE, pos); 98 TestFmwk.assertEquals("BreakIterator preceding position not correct", 4, pos); 104 TestFmwk.assertTrue("BreakIterator is boundary not correct", b); 107 TestFmwk.assertTrue("BreakIterator is boundary not correct", b);
|
/external/icu/icu4c/source/i18n/unicode/ |
stsearch.h | 57 * such as the break iterators in <tt>BreakIterator</tt>. Using these 86 * A <tt>BreakIterator</tt> can be used if only matches at logical breaks are desired. 87 * Using a <tt>BreakIterator</tt> will only give you results that exactly matches the 88 * boundaries given by the breakiterator. For instance the pattern "e" will 150 * @param breakiter A <tt>BreakIterator</tt> object used to constrain 153 * determined by the <tt>BreakIterator</tt> are 163 BreakIterator *breakiter, 177 * @param breakiter A <tt>BreakIterator</tt> object used to constrain 180 * determined by the <tt>BreakIterator</tt> are 190 BreakIterator *breakiter [all...] |
search.h | 55 * Other options for searching includes using a BreakIterator to restrict 59 * other text iteration classes such as <tt>BreakIterator</tt>. Using 200 * Set the BreakIterator that will be used to restrict the points 202 * the breakiterator. 203 * @param breakiter A BreakIterator that will be used to restrict the 206 * boundary as determined by the <tt>BreakIterator</tt>, 211 * @see BreakIterator 214 void setBreakIterator(BreakIterator *breakiter, UErrorCode &status); 217 * Returns the BreakIterator that is used to restrict the points at 222 * @return BreakIterator used to restrict matchings [all...] |
/external/icu/icu4c/source/common/unicode/ |
rbbi.h | 44 * A subclass of BreakIterator whose behavior is specified using a list of rules. 46 * BreakIterator::createWordInstance(), BreakIterator::createLineInstance(), etc., 47 * and then used via the abstract API in class BreakIterator</p> 53 class U_COMMON_API RuleBasedBreakIterator /*U_FINAL*/ : public BreakIterator { 57 * The UText through which this BreakIterator accesses the text 66 * The rule data for this BreakIterator instance. 160 friend class BreakIterator; 218 * This constructor uses the udata interface to create a BreakIterator 249 * @param that The BreakIterator to be compared for equalit [all...] |
casemap.h | 21 class BreakIterator; 150 const char *locale, uint32_t options, BreakIterator *iter, 285 const char *locale, uint32_t options, BreakIterator *iter, 437 const char *locale, uint32_t options, BreakIterator *iter,
|
/external/icu/icu4c/source/test/perf/ubrkperf/ |
ubrkperf.h | 21 BreakIterator *m_brkIt_; 36 m_brkIt_ = BreakIterator::createCharacterInstance(locale, m_status_); 39 m_brkIt_ = BreakIterator::createWordInstance(locale, m_status_); 42 m_brkIt_ = BreakIterator::createLineInstance(locale, m_status_); 45 m_brkIt_ = BreakIterator::createSentenceInstance(locale, m_status_); 96 while(m_brkIt_->next() != BreakIterator::DONE) { 104 while(m_brkIt_->next() != BreakIterator::DONE) {
|
/external/icu/icu4c/source/test/thaitest/ |
thaitest.cpp | 26 * the text without spaces and uses a word instance of a Thai BreakIterator 61 // The underlying BreakIterator 62 BreakIterator *fBreakIter; 213 * and a word instance of a Thai BreakIterator to iterate over the text 224 BreakIterator *breakIter = BreakIterator::createWordInstance(thai, status); 237 if (nextSpaceBreak == BreakIterator::DONE || nextBreak == BreakIterator::DONE) { 238 if (nextBreak != BreakIterator::DONE) { 240 } else if (nextSpaceBreak != BreakIterator::DONE) [all...] |
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/impl/ |
DemoTextBox.java | 14 import java.text.BreakIterator; 56 BreakIterator iter = BreakIterator.getWordInstance(); 63 while ( (pos = iter.next()) != BreakIterator.DONE )
|
Selection.java | 10 import java.text.BreakIterator; 109 public Selection nextBound(BreakIterator breaker, 119 public void expand(BreakIterator breaker) { 149 public static int next(int position, BreakIterator breaker,
|
/external/icu/icu4c/source/test/intltest/ |
srchtest.h | 38 BreakIterator *m_en_wordbreaker_; 39 BreakIterator *m_en_characterbreaker_; 42 BreakIterator * getBreakIterator(const char *breaker);
|
rbbiapts.cpp | 85 RuleBasedBreakIterator *bix = (RuleBasedBreakIterator *)BreakIterator::createLineInstance(Locale::getDefault(), status); 156 BreakIterator* a = BreakIterator::createWordInstance(Locale("hi"), status); 157 BreakIterator* b = BreakIterator::createWordInstance(Locale("hi_IN"),status); 167 BreakIterator* c = BreakIterator::createCharacterInstance(Locale("ja"),status); 168 BreakIterator* d = BreakIterator::createCharacterInstance(Locale("root"),status); 310 TEST_ASSERT(rb->following(11) == BreakIterator::DONE) [all...] |
rbbiapts.h | 97 void doBoundaryTest(BreakIterator& bi, UnicodeString& text, int32_t *boundaries);
|
rbbitst.h | 95 void RunMonkey(BreakIterator *bi, RBBIMonkeyKind &mk, const char *name, uint32_t seed, 108 void TBTest(BreakIterator* brkitr, int type, const char *locale, const char* escapedText,
|
/external/icu/icu4c/source/common/ |
ucasemap_titlecase_brkiter.cpp | 16 * Titlecasing functions that are based on BreakIterator 35 const char *locale, uint32_t options, BreakIterator *iter, 43 LocalPointer<BreakIterator> ownedIter; 58 const char *locale, uint32_t options, BreakIterator *iter, 67 LocalPointer<BreakIterator> ownedIter; 98 csm->iter=reinterpret_cast<BreakIterator *>(iterToAdopt); 115 LocalPointer<BreakIterator> ownedIter; 116 BreakIterator *iter = ustrcase_getTitleBreakIterator(
|
ucasemap_imp.h | 67 class BreakIterator; // unicode/brkiter.h 95 BreakIterator *ustrcase_getTitleBreakIterator( 96 const Locale *locale, const char *locID, uint32_t options, BreakIterator *iter, 97 LocalPointer<BreakIterator> &ownedIter, UErrorCode &errorCode); 116 icu::BreakIterator *iter; /* We adopt the iterator, so we own it. */ 129 # define UCASEMAP_BREAK_ITERATOR_PARAM icu::BreakIterator *iter, 130 # define UCASEMAP_BREAK_ITERATOR_UNUSED icu::BreakIterator *, 160 icu::BreakIterator *iter, 209 icu::BreakIterator *iter, 220 icu::BreakIterator *iter [all...] |
/external/icu/icu4c/source/i18n/ |
brktrans.h | 88 LocalPointer<BreakIterator> cachedBI;
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
SimpleFilteredSentenceBreakIterator.java | 17 import android.icu.text.BreakIterator; 30 public class SimpleFilteredSentenceBreakIterator extends BreakIterator { 32 private BreakIterator delegate; 45 public SimpleFilteredSentenceBreakIterator(BreakIterator adoptBreakIterator, CharsTrie forwardsPartialTrie, 112 while ((uch = text.nextCodePoint()) != BreakIterator.DONE 128 * @return new break position or BreakIterator.DONE 131 if (n == BreakIterator.DONE || // at end or 139 while (n != BreakIterator.DONE && n != textLen) { 158 * @return new break position or BreakIterator.DONE 161 if (n == 0 || n == BreakIterator.DONE || // at end o [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
SimpleFilteredSentenceBreakIterator.java | 16 import com.ibm.icu.text.BreakIterator; 28 public class SimpleFilteredSentenceBreakIterator extends BreakIterator { 30 private BreakIterator delegate; 43 public SimpleFilteredSentenceBreakIterator(BreakIterator adoptBreakIterator, CharsTrie forwardsPartialTrie, 110 while ((uch = text.nextCodePoint()) != BreakIterator.DONE 126 * @return new break position or BreakIterator.DONE 129 if (n == BreakIterator.DONE || // at end or 137 while (n != BreakIterator.DONE && n != textLen) { 156 * @return new break position or BreakIterator.DONE 159 if (n == 0 || n == BreakIterator.DONE || // at end o [all...] |