HomeSort by relevance Sort by last modified time
    Searched full:breakiterator (Results 1 - 25 of 116) sorted by null

1 2 3 4 5

  /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...]
  /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...]
  /external/chromium/base/i18n/
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...]
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...]
  /external/icu4c/test/cintltst/
cbiapts.h 14 /* C API TEST FOR BREAKITERATOR */
30 /* The function used to test the BreakIterator API*/
  /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/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...]
  /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/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) {
  /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...]
RuleBasedBreakIterator.java 23 * Default implementation of BreakIterator. Wraps libcore.icu.NativeBreakIterator.
24 * We need this because BreakIterator.isBoundary and BreakIterator.preceding are non-abstract,
28 class RuleBasedBreakIterator extends BreakIterator {
  /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() {}
  /external/webkit/Source/WebCore/platform/text/wince/
TextBreakIteratorWinCE.cpp 280 int textBreakFirst(TextBreakIterator* breakIterator)
282 return breakIterator->first();
285 int textBreakLast(TextBreakIterator* breakIterator)
287 return breakIterator->last();
290 int textBreakNext(TextBreakIterator* breakIterator)
292 return breakIterator->next();
295 int textBreakPrevious(TextBreakIterator* breakIterator)
297 return breakIterator->previous();
300 int textBreakPreceding(TextBreakIterator* breakIterator, int position)
302 return breakIterator->preceding(position)
    [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...]
  /external/icu4c/test/intltest/
srchtest.h 36 BreakIterator *m_en_wordbreaker_;
37 BreakIterator *m_en_characterbreaker_;
40 BreakIterator * getBreakIterator(const char *breaker);
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,
  /libcore/luni/src/main/native/
libcore_icu_NativeBreakIterator.cpp 30 * java.text.BreakIterator. It also holds a global reference to the java.lang.String that owns the
89 UBreakIterator* breakIterator() {
112 static UBreakIterator* breakIterator(jint address) {
113 return BreakIteratorPeer::fromAddress(address)->breakIterator();
161 return ubrk_isBoundary(breakIterator(address), offset);
165 UBreakIterator* bi = breakIterator(address);
183 return ubrk_preceding(breakIterator(address), offset);
187 return ubrk_first(breakIterator(address));
191 return ubrk_following(breakIterator(address), offset);
195 return ubrk_current(breakIterator(address))
    [all...]
  /external/webkit/Source/WebCore/platform/text/brew/
TextBreakIteratorBrew.cpp 299 int textBreakFirst(TextBreakIterator* breakIterator)
301 return breakIterator->first();
304 int textBreakNext(TextBreakIterator* breakIterator)
306 return breakIterator->next();
309 int textBreakPreceding(TextBreakIterator* breakIterator, int position)
311 return breakIterator->preceding(position);
314 int textBreakFollowing(TextBreakIterator* breakIterator, int position)
316 return breakIterator->following(position);
319 int textBreakCurrent(TextBreakIterator* breakIterator)
321 return breakIterator->currentPos
    [all...]
  /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/i18n/
brktrans.h 35 BreakIterator *bi,
68 virtual BreakIterator *getBreakIterator();
96 BreakIterator *bi;

Completed in 347 milliseconds

1 2 3 4 5