/libcore/luni/src/main/java/java/text/spi/ |
BreakIteratorProvider.java | 20 import java.text.BreakIterator; 26 * instances of {@code BreakIterator}. 40 * Returns an instance of {@code BreakIterator} for word breaks in the 44 * @return an instance of {@code BreakIterator} 50 public abstract BreakIterator getWordInstance(Locale locale); 53 * Returns an instance of {@code BreakIterator} for line breaks in the 57 * @return an instance of {@code BreakIterator} 63 public abstract BreakIterator getLineInstance(Locale locale); 66 * Returns an instance of {@code BreakIterator} for character breaks in the 70 * @return an instance of {@code BreakIterator} [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/icu4c/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...] |
rbbi.h | 40 class BreakIterator; 52 * A subclass of BreakIterator whose behavior is specified using a list of rules. 54 * BreakIterator::createWordInstance(), BreakIterator::createLineInstance(), etc., 55 * and then used via the abstract API in class BreakIterator</p> 65 class U_COMMON_API RuleBasedBreakIterator : public BreakIterator { 69 * The UText through which this BreakIterator accesses the text 96 * The rule data for this BreakIterator instance 210 friend class BreakIterator; 244 * This constructor uses the udata interface to create a BreakIterator [all...] |
/external/chromium/base/i18n/ |
break_iterator.h | 12 // The BreakIterator class iterates through the words, word breaks, and 43 // To extract the words from a string, move a BREAK_WORD BreakIterator 45 // BreakIterator iter(&str, BreakIterator::BREAK_WORD); 56 class BreakIterator { 68 // Requires |str| to live as long as the BreakIterator does. 69 BreakIterator(const string16* str, BreakType break_type); 70 ~BreakIterator(); 77 // or BreakIterator::npos when done. 116 DISALLOW_COPY_AND_ASSIGN(BreakIterator); [all...] |
break_iterator.cc | 16 BreakIterator::BreakIterator(const string16* str, BreakType break_type) 24 BreakIterator::~BreakIterator() { 29 bool BreakIterator::Init() { 56 bool BreakIterator::Advance() { 90 bool BreakIterator::IsWord() const { 96 string16 BreakIterator::GetString() const {
|
break_iterator_unittest.cc | 14 base::BreakIterator iter(&empty, base::BreakIterator::BREAK_WORD); 25 base::BreakIterator iter(&str, base::BreakIterator::BREAK_WORD); 70 base::BreakIterator iter(&str, base::BreakIterator::BREAK_WORD); 94 base::BreakIterator iter(&str, base::BreakIterator::BREAK_WORD); 113 base::BreakIterator iter(&empty, base::BreakIterator::BREAK_SPACE) [all...] |
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/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; 23 BreakIterator iterator; 28 iterator = BreakIterator.getCharacterInstance(Locale.US); 32 Locale[] locales = BreakIterator.getAvailableLocales(); 47 BreakIterator it1 = BreakIterator.getWordInstance(Locale.CANADA_FRENCH); 48 assertTrue("Incorrect BreakIterator", it1 != BreakIterator.getWordInstance()); 49 BreakIterator it2 = BreakIterator.getWordInstance(new Locale("bad locale")) [all...] |
/external/icu4c/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...] |
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; 143 return (UBreakIterator *)(((BreakIterator*)bi)-> 152 BreakIterator *ubi = (BreakIterator*) bi [all...] |
unistr_case.cpp | 93 UnicodeString::caseMap(BreakIterator *titleIter, 195 UnicodeString::toTitle(BreakIterator *titleIter) { 200 UnicodeString::toTitle(BreakIterator *titleIter, const Locale &locale) { 205 UnicodeString::toTitle(BreakIterator *titleIter, const Locale &locale, uint32_t options) {
|
/external/icu4c/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/v8/src/extensions/experimental/ |
break-iterator.cc | 37 v8::Persistent<v8::FunctionTemplate> BreakIterator::break_iterator_template_; 39 icu::BreakIterator* BreakIterator::UnpackBreakIterator( 42 return static_cast<icu::BreakIterator*>( 49 icu::UnicodeString* BreakIterator::ResetAdoptedText( 66 void BreakIterator::DeleteBreakIterator(v8::Persistent<v8::Value> object, 88 v8::String::New("BreakIterator method called on an object " 89 "that is not a BreakIterator."))); 92 v8::Handle<v8::Value> BreakIterator::BreakIteratorAdoptText( 99 icu::BreakIterator* break_iterator = UnpackBreakIterator(args.Holder()) [all...] |
break-iterator.h | 36 class BreakIterator; 43 class BreakIterator { 50 static icu::BreakIterator* UnpackBreakIterator(v8::Handle<v8::Object> obj); 57 // Release memory we allocated for the BreakIterator once the JS object that 82 BreakIterator() {}
|
/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));
|
/frameworks/base/core/java/android/text/method/ |
WordIterator.java | 22 import java.text.BreakIterator; 27 * {@link BreakIterator#getWordInstance()}, and caches {@link CharSequence} 40 private BreakIterator mIterator; 54 mIterator = BreakIterator.getWordInstance(locale); 70 if (shiftedOffset == BreakIterator.DONE) { 71 return BreakIterator.DONE; 84 if (shiftedOffset == BreakIterator.DONE) { 85 return BreakIterator.DONE; 94 * word, otherwise returns BreakIterator.DONE. 98 * If offset is the index of a low surrogate character, BreakIterator.DONE will be returned [all...] |
/external/icu4c/i18n/ |
brktrans.h | 35 BreakIterator *bi, 68 virtual BreakIterator *getBreakIterator(); 96 BreakIterator *bi;
|
/external/icu4c/i18n/unicode/ |
stsearch.h | 61 * such as the break iterators in <tt>BreakIterator</tt>. Using these 90 * A breakiterator can be used if only matches at logical breaks are desired. 91 * Using a breakiterator will only give you results that exactly matches the 92 * boundaries given by the breakiterator. For instance the pattern "e" will 154 * @param breakiter A <tt>BreakIterator</tt> object used to constrain 157 * determined by the <tt>BreakIterator</tt> are 167 BreakIterator *breakiter, 181 * @param breakiter A <tt>BreakIterator</tt> object used to constrain 184 * determined by the <tt>BreakIterator</tt> are 194 BreakIterator *breakiter [all...] |
search.h | 53 * Other options for searching includes using a BreakIterator to restrict 57 * other text iteration classes such as <tt>BreakIterator</tt>. Using 198 * Set the BreakIterator that will be used to restrict the points 200 * the breakiterator. 201 * @param breakiter A BreakIterator that will be used to restrict the 204 * boundary as determined by the <tt>BreakIterator</tt>, 209 * @see BreakIterator 212 void setBreakIterator(BreakIterator *breakiter, UErrorCode &status); 215 * Returns the BreakIterator that is used to restrict the points at 220 * @return BreakIterator used to restrict matchings [all...] |
/external/icu4c/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/icu4c/test/thaitest/ |
thaitest.cpp | 24 * the text without spaces and uses a word instance of a Thai BreakIterator 59 // The underlying BreakIterator 60 BreakIterator *fBreakIter; 211 * and a word instance of a Thai BreakIterator to iterate over the text 222 BreakIterator *breakIter = BreakIterator::createWordInstance(thai, status); 235 if (nextSpaceBreak == BreakIterator::DONE || nextBreak == BreakIterator::DONE) { 236 if (nextBreak != BreakIterator::DONE) { 238 } else if (nextSpaceBreak != BreakIterator::DONE) [all...] |
/external/icu4c/test/intltest/ |
srchtest.h | 36 BreakIterator *m_en_wordbreaker_; 37 BreakIterator *m_en_characterbreaker_; 40 BreakIterator * getBreakIterator(const char *breaker);
|
rbbiapts.cpp | 79 RuleBasedBreakIterator *bix = (RuleBasedBreakIterator *)BreakIterator::createLineInstance(Locale::getDefault(), status); 150 BreakIterator* a = BreakIterator::createWordInstance(Locale("hi"), status); 151 BreakIterator* b = BreakIterator::createWordInstance(Locale("hi_IN"),status); 159 BreakIterator* c = BreakIterator::createWordInstance(Locale("ja"),status); 299 TEST_ASSERT(rb->following(11) == BreakIterator::DONE); 303 //if(rb->following(11) != BreakIterator::DONE) { 439 if (i != BreakIterator::DONE) [all...] |
rbbitst.h | 86 * Perform tests of BreakIterator forward and backward functionality 114 * Internal method to perform tests of BreakIterator multiple selection functionality 119 void RunMonkey(BreakIterator *bi, RBBIMonkeyKind &mk, const char *name, uint32_t seed, 132 void TBTest(BreakIterator* brkitr, int type, const char *locale, const char* escapedText,
|