/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
BreakIteratorTest.java | 20 import java.text.BreakIterator; 31 BreakIterator iterator; 38 iterator = BreakIterator.getCharacterInstance(Locale.US); 42 assertEquals(-1, BreakIterator.DONE); 46 BreakIterator newOne = BreakIterator.getCharacterInstance(Locale.US); 50 newOne = BreakIterator.getCharacterInstance(); 53 newOne = BreakIterator.getCharacterInstance(Locale.CHINA); 56 BreakIterator wordIterator = BreakIterator.getWordInstance() [all...] |
/libcore/luni/src/test/java/libcore/java/text/ |
BreakIteratorTest.java | 19 import java.text.BreakIterator; 24 BreakIterator iterator; 29 iterator = BreakIterator.getCharacterInstance(Locale.US); 33 Locale[] locales = BreakIterator.getAvailableLocales(); 48 BreakIterator it1 = BreakIterator.getWordInstance(Locale.CANADA_FRENCH); 49 assertTrue("Incorrect BreakIterator", it1 != BreakIterator.getWordInstance()); 50 BreakIterator it2 = BreakIterator.getWordInstance(new Locale("bad locale")) [all...] |
/frameworks/base/core/jni/ |
android_text_StaticLayout.cpp | 33 ScopedBreakIterator(JNIEnv* env, BreakIterator* breakIterator, jcharArray inputText, 34 jint length) : mBreakIterator(breakIterator), mChars(env, inputText) { 44 inline BreakIterator* operator->() { 53 BreakIterator* mBreakIterator; 71 BreakIterator* it = BreakIterator::createLineInstance(icuLocale.locale(), status); 77 ScopedBreakIterator breakIterator(env, it, inputText, length); 78 for (int loc = breakIterator->first(); loc != BreakIterator::DONE [all...] |
/external/chromium_org/base/i18n/ |
break_iterator.cc | 17 BreakIterator::BreakIterator(const string16& str, BreakType break_type) 25 BreakIterator::BreakIterator(const string16& str, const string16& rules) 34 BreakIterator::~BreakIterator() { 39 bool BreakIterator::Init() { 90 bool BreakIterator::Advance() { 125 bool BreakIterator::SetText(const base::char16* text, const size_t length) { 138 bool BreakIterator::IsWord() const [all...] |
break_iterator_unittest.cc | 17 BreakIterator iter(empty, BreakIterator::BREAK_WORD); 28 BreakIterator iter(str, BreakIterator::BREAK_WORD); 73 BreakIterator iter(str, BreakIterator::BREAK_WORD); 97 BreakIterator iter(str, BreakIterator::BREAK_WORD); 116 BreakIterator iter(empty, BreakIterator::BREAK_SPACE) [all...] |
/libcore/luni/src/main/java/java/text/ |
BreakIterator.java | 27 * Instances or subclasses of {@code BreakIterator} can be provided, for 30 * languages. We provide four built-in types of {@code BreakIterator}: 32 * <li>{@link #getSentenceInstance()} returns a {@code BreakIterator} that 35 * <li>{@link #getWordInstance()} returns a {@code BreakIterator} that locates 37 * whole words" searches. This type of {@code BreakIterator} makes sure there is 41 * <li>{@code getLineInstance()} returns a {@code BreakIterator} that locates 47 * <li>{@code getCharacterInstance()} returns a {@code BreakIterator} that 56 * </ul> {@code BreakIterator}'s interface follows an "iterator" model (hence 59 * update the current position. All {@code BreakIterator}s uphold the following 81 * {@code BreakIterator} accesses the text it analyzes through [all...] |
/external/icu/icu4c/source/common/ |
brkiter.cpp | 18 // This file was generated from the java source file BreakIterator.java 40 // class BreakIterator 42 // Instances of BreakIterator maintain a current position and scan over text 50 BreakIterator* 51 BreakIterator::buildInstance(const Locale& loc, const char *type, int32_t kind, UErrorCode &status) 125 U_LOCALE_BASED(locBased, *(BreakIterator*)result); 148 BreakIterator* U_EXPORT2 149 BreakIterator::createWordInstance(const Locale& key, UErrorCode& status) 157 BreakIterator* U_EXPORT2 158 BreakIterator::createLineInstance(const Locale& key, UErrorCode& status [all...] |
unistr_titlecase_brkiter.cpp | 14 * Titlecasing functions that are based on BreakIterator 57 UnicodeString::toTitle(BreakIterator *titleIter) { 62 UnicodeString::toTitle(BreakIterator *titleIter, const Locale &locale) { 67 UnicodeString::toTitle(BreakIterator *titleIter, const Locale &locale, uint32_t options) { 71 BreakIterator *bi=titleIter; 74 bi=BreakIterator::createWordInstance(locale, errorCode);
|
ubrk.cpp | 40 BreakIterator *result = 0; 45 result = BreakIterator::createCharacterInstance(Locale(locale), *status); 49 result = BreakIterator::createWordInstance(Locale(locale), *status); 53 result = BreakIterator::createLineInstance(Locale(locale), *status); 57 result = BreakIterator::createSentenceInstance(Locale(locale), *status); 61 result = BreakIterator::createTitleInstance(Locale(locale), *status); 105 BreakIterator *result = 0; 144 BreakIterator *newBI = ((BreakIterator *)bi)->clone(); 158 delete (BreakIterator *)bi [all...] |
/external/chromium_org/third_party/icu/source/common/ |
unistr_titlecase_brkiter.cpp | 14 * Titlecasing functions that are based on BreakIterator 57 UnicodeString::toTitle(BreakIterator *titleIter) { 62 UnicodeString::toTitle(BreakIterator *titleIter, const Locale &locale) { 67 UnicodeString::toTitle(BreakIterator *titleIter, const Locale &locale, uint32_t options) { 71 BreakIterator *bi=titleIter; 74 bi=BreakIterator::createWordInstance(locale, errorCode);
|
brkiter.cpp | 18 // This file was generated from the java source file BreakIterator.java 40 // class BreakIterator 42 // Instances of BreakIterator maintain a current position and scan over text 50 BreakIterator* 51 BreakIterator::buildInstance(const Locale& loc, const char *type, int32_t kind, UErrorCode &status) 125 U_LOCALE_BASED(locBased, *(BreakIterator*)result); 148 BreakIterator* U_EXPORT2 149 BreakIterator::createWordInstance(const Locale& key, UErrorCode& status) 157 BreakIterator* U_EXPORT2 158 BreakIterator::createLineInstance(const Locale& key, UErrorCode& status [all...] |
ubrk.cpp | 40 BreakIterator *result = 0; 45 result = BreakIterator::createCharacterInstance(Locale(locale), *status); 49 result = BreakIterator::createWordInstance(Locale(locale), *status); 53 result = BreakIterator::createLineInstance(Locale(locale), *status); 57 result = BreakIterator::createSentenceInstance(Locale(locale), *status); 61 result = BreakIterator::createTitleInstance(Locale(locale), *status); 105 BreakIterator *result = 0; 144 BreakIterator *newBI = ((BreakIterator *)bi)->clone(); 158 delete (BreakIterator *)bi [all...] |
/external/chromium_org/third_party/icu/source/test/cintltst/ |
cbiapts.h | 14 /* C API TEST FOR BREAKITERATOR */ 30 /* The function used to test the BreakIterator API*/
|
/external/icu/icu4c/source/test/cintltst/ |
cbiapts.h | 14 /* C API TEST FOR BREAKITERATOR */ 30 /* The function used to test the BreakIterator API*/
|
/external/chromium_org/third_party/icu/source/samples/break/ |
break.cpp | 25 void printTextRange( BreakIterator& iterator, 44 void printEachForward( BreakIterator& boundary) 48 end != BreakIterator::DONE; 56 void printEachBackward( BreakIterator& boundary) 60 start != BreakIterator::DONE; 68 void printFirst(BreakIterator& boundary) 76 void printLast(BreakIterator& boundary) 84 void printAt(BreakIterator &boundary, int32_t pos ) 96 BreakIterator* boundary; 104 boundary = BreakIterator::createSentenceInstance [all...] |
/external/icu/icu4c/source/samples/break/ |
break.cpp | 25 void printTextRange( BreakIterator& iterator, 44 void printEachForward( BreakIterator& boundary) 48 end != BreakIterator::DONE; 56 void printEachBackward( BreakIterator& boundary) 60 start != BreakIterator::DONE; 68 void printFirst(BreakIterator& boundary) 76 void printLast(BreakIterator& boundary) 84 void printAt(BreakIterator &boundary, int32_t pos ) 96 BreakIterator* boundary; 104 boundary = BreakIterator::createSentenceInstance [all...] |
/external/chromium_org/ui/app_list/search/ |
tokenized_string.cc | 12 using base::i18n::BreakIterator; 24 BreakIterator break_iter(text_, BreakIterator::BREAK_WORD); 26 NOTREACHED() << "BreakIterator init failed"
|
/frameworks/base/core/java/android/text/method/ |
WordIterator.java | 23 import java.text.BreakIterator; 28 * {@link BreakIterator#getWordInstance()}, and caches {@link CharSequence} 41 private BreakIterator mIterator; 55 mIterator = BreakIterator.getWordInstance(locale); 75 if (shiftedOffset == BreakIterator.DONE) { 76 return BreakIterator.DONE; 89 if (shiftedOffset == BreakIterator.DONE) { 90 return BreakIterator.DONE; 99 * word, otherwise returns BreakIterator.DONE. 103 * If offset is the index of a low surrogate character, BreakIterator.DONE will be returned [all...] |
/cts/tests/tests/text/src/android/text/method/cts/ |
WordIteratorTest.java | 21 import java.text.BreakIterator; 47 assertEquals(BreakIterator.DONE, wi.getBeginning(i)); 48 assertEquals(BreakIterator.DONE, wi.getEnd(i)); 54 assertEquals(BreakIterator.DONE, wi.following(0)); 55 assertEquals(BreakIterator.DONE, wi.preceding(0)); 57 assertEquals(BreakIterator.DONE, wi.getBeginning(0)); 58 assertEquals(BreakIterator.DONE, wi.getEnd(0));
|
/external/chromium_org/third_party/icu/source/test/perf/ubrkperf/ |
ubrkperf.h | 17 BreakIterator *m_brkIt_; 32 m_brkIt_ = BreakIterator::createCharacterInstance(locale, m_status_); 35 m_brkIt_ = BreakIterator::createWordInstance(locale, m_status_); 38 m_brkIt_ = BreakIterator::createLineInstance(locale, m_status_); 41 m_brkIt_ = BreakIterator::createSentenceInstance(locale, m_status_); 92 while(m_brkIt_->next() != BreakIterator::DONE) { 100 while(m_brkIt_->next() != BreakIterator::DONE) {
|
/external/icu/icu4c/source/test/perf/ubrkperf/ |
ubrkperf.h | 17 BreakIterator *m_brkIt_; 32 m_brkIt_ = BreakIterator::createCharacterInstance(locale, m_status_); 35 m_brkIt_ = BreakIterator::createWordInstance(locale, m_status_); 38 m_brkIt_ = BreakIterator::createLineInstance(locale, m_status_); 41 m_brkIt_ = BreakIterator::createSentenceInstance(locale, m_status_); 92 while(m_brkIt_->next() != BreakIterator::DONE) { 100 while(m_brkIt_->next() != BreakIterator::DONE) {
|
/frameworks/base/tools/layoutlib/bridge/src/android/text/ |
StaticLayout_Delegate.java | 10 import com.ibm.icu.text.BreakIterator; 30 BreakIterator iterator = BreakIterator.getLineInstance(new ULocale(locale)); 40 assert BreakIterator.DONE == -1; 41 for (int i = 1; breakOpp != BreakIterator.DONE; ++i) {
|
/external/icu/icu4c/source/common/unicode/ |
brkiter.h | 14 * 07/09/97 jfitz Renamed BreakIterator and interface synced with JDK 35 * Allow the declaration of APIs with pointers to BreakIterator 38 class BreakIterator; 56 * The BreakIterator class implements methods for finding the location 57 * of boundaries in text. BreakIterator is an abstract base class. 58 * Instances of BreakIterator maintain a current position and scan over 100 class U_COMMON_API BreakIterator : public UObject { 106 virtual ~BreakIterator(); 111 * BreakIterator. Objects of different subclasses are considered 114 * Return true if this BreakIterator is at the same position in th [all...] |
/external/chromium_org/third_party/icu/source/common/unicode/ |
brkiter.h | 14 * 07/09/97 jfitz Renamed BreakIterator and interface synced with JDK 35 * Allow the declaration of APIs with pointers to BreakIterator 38 class BreakIterator; 56 * The BreakIterator class implements methods for finding the location 57 * of boundaries in text. BreakIterator is an abstract base class. 58 * Instances of BreakIterator maintain a current position and scan over 100 class U_COMMON_API BreakIterator : public UObject { 106 virtual ~BreakIterator(); 111 * BreakIterator. Objects of different subclasses are considered 114 * Return true if this BreakIterator is at the same position in th [all...] |
/external/icu/icu4c/source/i18n/unicode/ |
filteredbrk.h | 23 * The BreakIteratorFilter is used to modify the behavior of a BreakIterator 24 * by constructing a new BreakIterator which suppresses certain segment boundaries. 91 * The resulting BreakIterator is owned by the caller. 92 * The BreakIteratorFilter may be destroyed before the BreakIterator is destroyed. 93 * Note that the adoptBreakIterator is adopted by the new BreakIterator 98 * @return the new BreakIterator, owned by the caller. 101 virtual BreakIterator *build(BreakIterator* adoptBreakIterator, UErrorCode& status) = 0;
|