Home
last modified time | relevance | path

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

12345

/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
DBreakIteratorTest.java20 import java.text.BreakIterator;
31 BreakIterator iterator;
38 iterator = BreakIterator.getCharacterInstance(Locale.US); in setUp()
42 assertEquals(-1, BreakIterator.DONE); in testConsts()
46 BreakIterator newOne = BreakIterator.getCharacterInstance(Locale.US); in testCache()
50 newOne = BreakIterator.getCharacterInstance(); in testCache()
53 newOne = BreakIterator.getCharacterInstance(Locale.CHINA); in testCache()
56 BreakIterator wordIterator = BreakIterator.getWordInstance(); in testCache()
59 BreakIterator lineIterator = BreakIterator.getLineInstance(); in testCache()
62 BreakIterator senteIterator = BreakIterator.getSentenceInstance(); in testCache()
[all …]
/external/chromium_org/third_party/icu/source/common/
Dbrkiter.cpp50 BreakIterator*
51 BreakIterator::buildInstance(const Locale& loc, const char *type, int32_t kind, UErrorCode &status) in buildInstance()
125 U_LOCALE_BASED(locBased, *(BreakIterator*)result); in buildInstance()
148 BreakIterator* U_EXPORT2
149 BreakIterator::createWordInstance(const Locale& key, UErrorCode& status) in createWordInstance()
157 BreakIterator* U_EXPORT2
158 BreakIterator::createLineInstance(const Locale& key, UErrorCode& status) in createLineInstance()
166 BreakIterator* U_EXPORT2
167 BreakIterator::createCharacterInstance(const Locale& key, UErrorCode& status) in createCharacterInstance()
175 BreakIterator* U_EXPORT2
[all …]
Dubrk.cpp40 BreakIterator *result = 0; in ubrk_open()
45 result = BreakIterator::createCharacterInstance(Locale(locale), *status); in ubrk_open()
49 result = BreakIterator::createWordInstance(Locale(locale), *status); in ubrk_open()
53 result = BreakIterator::createLineInstance(Locale(locale), *status); in ubrk_open()
57 result = BreakIterator::createSentenceInstance(Locale(locale), *status); in ubrk_open()
61 result = BreakIterator::createTitleInstance(Locale(locale), *status); in ubrk_open()
105 BreakIterator *result = 0; in ubrk_openRules()
143 return (UBreakIterator *)(((BreakIterator*)bi)-> in ubrk_safeClone()
152 BreakIterator *ubi = (BreakIterator*) bi; in ubrk_close()
155 ubi->~BreakIterator(); in ubrk_close()
[all …]
/external/icu4c/common/
Dbrkiter.cpp50 BreakIterator*
51 BreakIterator::buildInstance(const Locale& loc, const char *type, int32_t kind, UErrorCode &status) in buildInstance()
125 U_LOCALE_BASED(locBased, *(BreakIterator*)result); in buildInstance()
148 BreakIterator* U_EXPORT2
149 BreakIterator::createWordInstance(const Locale& key, UErrorCode& status) in createWordInstance()
157 BreakIterator* U_EXPORT2
158 BreakIterator::createLineInstance(const Locale& key, UErrorCode& status) in createLineInstance()
166 BreakIterator* U_EXPORT2
167 BreakIterator::createCharacterInstance(const Locale& key, UErrorCode& status) in createCharacterInstance()
175 BreakIterator* U_EXPORT2
[all …]
Dubrk.cpp40 BreakIterator *result = 0; in ubrk_open()
45 result = BreakIterator::createCharacterInstance(Locale(locale), *status); in ubrk_open()
49 result = BreakIterator::createWordInstance(Locale(locale), *status); in ubrk_open()
53 result = BreakIterator::createLineInstance(Locale(locale), *status); in ubrk_open()
57 result = BreakIterator::createSentenceInstance(Locale(locale), *status); in ubrk_open()
61 result = BreakIterator::createTitleInstance(Locale(locale), *status); in ubrk_open()
105 BreakIterator *result = 0; in ubrk_openRules()
143 return (UBreakIterator *)(((BreakIterator*)bi)-> in ubrk_safeClone()
152 BreakIterator *ubi = (BreakIterator*) bi; in ubrk_close()
155 ubi->~BreakIterator(); in ubrk_close()
[all …]
Dunistr_titlecase_brkiter.cpp57 UnicodeString::toTitle(BreakIterator *titleIter) { in toTitle()
62 UnicodeString::toTitle(BreakIterator *titleIter, const Locale &locale) { in toTitle()
67 UnicodeString::toTitle(BreakIterator *titleIter, const Locale &locale, uint32_t options) { in toTitle()
71 BreakIterator *bi=titleIter; in toTitle()
74 bi=BreakIterator::createWordInstance(locale, errorCode); in toTitle()
/external/icu4c/common/unicode/
Dbrkiter.h38 class BreakIterator; variable
100 class U_COMMON_API BreakIterator : public UObject {
106 virtual ~BreakIterator();
121 virtual UBool operator==(const BreakIterator&) const = 0;
129 UBool operator!=(const BreakIterator& rhs) const { return !operator==(rhs); }
136 virtual BreakIterator* clone(void) const = 0;
312 static BreakIterator* U_EXPORT2
336 static BreakIterator* U_EXPORT2
358 static BreakIterator* U_EXPORT2
379 static BreakIterator* U_EXPORT2
[all …]
Drbbi.h40 class BreakIterator; variable
65 class U_COMMON_API RuleBasedBreakIterator : public BreakIterator {
212 friend class BreakIterator; variable
308 virtual UBool operator==(const BreakIterator& that) const;
317 UBool operator!=(const BreakIterator& that) const;
329 virtual BreakIterator* clone() const;
610 virtual BreakIterator * createBufferClone(void *stackBuffer,
773 inline UBool RuleBasedBreakIterator::operator!=(const BreakIterator& that) const {
/external/chromium_org/third_party/icu/source/common/unicode/
Dbrkiter.h38 class BreakIterator; variable
100 class U_COMMON_API BreakIterator : public UObject {
106 virtual ~BreakIterator();
121 virtual UBool operator==(const BreakIterator&) const = 0;
129 UBool operator!=(const BreakIterator& rhs) const { return !operator==(rhs); }
136 virtual BreakIterator* clone(void) const = 0;
320 static BreakIterator* U_EXPORT2
344 static BreakIterator* U_EXPORT2
366 static BreakIterator* U_EXPORT2
387 static BreakIterator* U_EXPORT2
[all …]
Drbbi.h40 class BreakIterator; variable
65 class U_COMMON_API RuleBasedBreakIterator : public BreakIterator {
210 friend class BreakIterator; variable
280 virtual UBool operator==(const BreakIterator& that) const;
289 UBool operator!=(const BreakIterator& that) const;
301 virtual BreakIterator* clone() const;
582 virtual BreakIterator * createBufferClone(void *stackBuffer,
714 inline UBool RuleBasedBreakIterator::operator!=(const BreakIterator& that) const {
/external/chromium_org/base/i18n/
Dbreak_iterator_unittest.cc17 BreakIterator iter(empty, BreakIterator::BREAK_WORD); in TEST()
28 BreakIterator iter(str, BreakIterator::BREAK_WORD); in TEST()
73 BreakIterator iter(str, BreakIterator::BREAK_WORD); in TEST()
97 BreakIterator iter(str, BreakIterator::BREAK_WORD); in TEST()
116 BreakIterator iter(empty, BreakIterator::BREAK_SPACE); in TEST()
126 BreakIterator iter(str, BreakIterator::BREAK_SPACE); in TEST()
151 BreakIterator iter(str, BreakIterator::BREAK_SPACE); in TEST()
181 BreakIterator iter(str, BreakIterator::BREAK_SPACE); in TEST()
202 BreakIterator iter(str, BreakIterator::BREAK_SPACE); in TEST()
218 BreakIterator iter(empty, BreakIterator::BREAK_NEWLINE); in TEST()
[all …]
Dbreak_iterator.cc17 BreakIterator::BreakIterator(const string16& str, BreakType break_type) in BreakIterator() function in base::i18n::BreakIterator
25 BreakIterator::~BreakIterator() { in ~BreakIterator()
30 bool BreakIterator::Init() { in Init()
60 bool BreakIterator::Advance() { in Advance()
94 bool BreakIterator::IsWord() const { in IsWord()
99 bool BreakIterator::IsEndOfWord(size_t position) const { in IsEndOfWord()
109 bool BreakIterator::IsStartOfWord(size_t position) const { in IsStartOfWord()
120 string16 BreakIterator::GetString() const { in GetString()
Dbreak_iterator.h58 class BASE_I18N_EXPORT BreakIterator {
72 BreakIterator(const string16& str, BreakType break_type);
73 ~BreakIterator();
125 DISALLOW_COPY_AND_ASSIGN(BreakIterator);
/external/icu4c/samples/break/
Dbreak.cpp25 void printTextRange( BreakIterator& iterator, in printTextRange()
44 void printEachForward( BreakIterator& boundary) in printEachForward()
48 end != BreakIterator::DONE; in printEachForward()
56 void printEachBackward( BreakIterator& boundary) in printEachBackward()
60 start != BreakIterator::DONE; in printEachBackward()
68 void printFirst(BreakIterator& boundary) in printFirst()
76 void printLast(BreakIterator& boundary) in printLast()
84 void printAt(BreakIterator &boundary, int32_t pos ) in printAt()
96 BreakIterator* boundary; in main()
104 boundary = BreakIterator::createSentenceInstance( in main()
[all …]
/external/chromium/base/i18n/
Dbreak_iterator_unittest.cc14 base::BreakIterator iter(&empty, base::BreakIterator::BREAK_WORD); in TEST()
25 base::BreakIterator iter(&str, base::BreakIterator::BREAK_WORD); in TEST()
70 base::BreakIterator iter(&str, base::BreakIterator::BREAK_WORD); in TEST()
94 base::BreakIterator iter(&str, base::BreakIterator::BREAK_WORD); in TEST()
113 base::BreakIterator iter(&empty, base::BreakIterator::BREAK_SPACE); in TEST()
123 base::BreakIterator iter(&str, base::BreakIterator::BREAK_SPACE); in TEST()
148 base::BreakIterator iter(&str, base::BreakIterator::BREAK_SPACE); in TEST()
178 base::BreakIterator iter(&str, base::BreakIterator::BREAK_SPACE); in TEST()
199 base::BreakIterator iter(&str, base::BreakIterator::BREAK_SPACE); in TEST()
215 base::BreakIterator iter(&empty, base::BreakIterator::BREAK_NEWLINE); in TEST()
[all …]
Dbreak_iterator.cc16 BreakIterator::BreakIterator(const string16* str, BreakType break_type) in BreakIterator() function in base::BreakIterator
24 BreakIterator::~BreakIterator() { in ~BreakIterator()
29 bool BreakIterator::Init() { in Init()
56 bool BreakIterator::Advance() { in Advance()
90 bool BreakIterator::IsWord() const { in IsWord()
96 string16 BreakIterator::GetString() const { in GetString()
Dbreak_iterator.h56 class BreakIterator {
69 BreakIterator(const string16* str, BreakType break_type);
70 ~BreakIterator();
116 DISALLOW_COPY_AND_ASSIGN(BreakIterator);
/external/chromium_org/third_party/icu/patches/
Dbreakiterator.patch12 +26. Add BreakIterator::getRuleStatus
13 + - Copy and paste BreakIterator::getRuleStatus API from icu 52
26 + BreakIterator::getRuleStatus. This patch is just a copy and
43 ++26. Add BreakIterator::getRuleStatus
44 ++ - Copy and paste BreakIterator::getRuleStatus API from icu 5.2
52 +@@ -436,6 +436,13 @@ BreakIterator::getLocaleID(ULocDataLocaleType type, UErrorCode& status) const…
57 ++// provide a default implementation for any derived BreakIterator classes that
59 ++int32_t BreakIterator::getRuleStatus() const {
89 + * Create BreakIterator for word-breaks using the given locale.
90 + * Returns an instance of a BreakIterator implementing word breaks.
[all …]
/external/chromium_org/third_party/icu/source/test/thaitest/
Dthaitest.cpp60 BreakIterator *fBreakIter;
222 BreakIterator *breakIter = BreakIterator::createWordInstance(thai, status); in compareWordBreaks()
235 if (nextSpaceBreak == BreakIterator::DONE || nextBreak == BreakIterator::DONE) { in compareWordBreaks()
236 if (nextBreak != BreakIterator::DONE) { in compareWordBreaks()
238 } else if (nextSpaceBreak != BreakIterator::DONE) { in compareWordBreaks()
246 nextSpaceBreak != BreakIterator::DONE && nextBreak != BreakIterator::DONE) { in compareWordBreaks()
403 BreakIterator *breakIter = BreakIterator::createWordInstance(root, status); in generateFile()
413 if (nextbreak == BreakIterator::DONE) { in generateFile()
504 fBreakIter = BreakIterator::createWordInstance(root, status); in SpaceBreakIterator()
527 return BreakIterator::DONE; in next()
[all …]
/external/icu4c/test/thaitest/
Dthaitest.cpp60 BreakIterator *fBreakIter;
222 BreakIterator *breakIter = BreakIterator::createWordInstance(thai, status); in compareWordBreaks()
235 if (nextSpaceBreak == BreakIterator::DONE || nextBreak == BreakIterator::DONE) { in compareWordBreaks()
236 if (nextBreak != BreakIterator::DONE) { in compareWordBreaks()
238 } else if (nextSpaceBreak != BreakIterator::DONE) { in compareWordBreaks()
246 nextSpaceBreak != BreakIterator::DONE && nextBreak != BreakIterator::DONE) { in compareWordBreaks()
403 BreakIterator *breakIter = BreakIterator::createWordInstance(root, status); in generateFile()
413 if (nextbreak == BreakIterator::DONE) { in generateFile()
504 fBreakIter = BreakIterator::createWordInstance(root, status); in SpaceBreakIterator()
527 return BreakIterator::DONE; in next()
[all …]
/external/chromium_org/third_party/icu/source/test/intltest/
Drbbiapts.cpp79 …RuleBasedBreakIterator *bix = (RuleBasedBreakIterator *)BreakIterator::createLineInstance(Locale::… in TestCloneEquals()
150 BreakIterator* a = BreakIterator::createWordInstance(Locale("hi"), status); in TestBoilerPlate()
151 BreakIterator* b = BreakIterator::createWordInstance(Locale("hi_IN"),status); in TestBoilerPlate()
162 BreakIterator* c = BreakIterator::createCharacterInstance(Locale("ja"),status); in TestBoilerPlate()
163 BreakIterator* d = BreakIterator::createCharacterInstance(Locale("th"),status); in TestBoilerPlate()
304 TEST_ASSERT(rb->following(11) == BreakIterator::DONE); in TestGetSetAdoptText()
444 if (i != BreakIterator::DONE) { in TestIteration()
459 if (i != BreakIterator::DONE) { in TestIteration()
508 if (i != BreakIterator::DONE) { in TestIteration()
532 if (i != BreakIterator::DONE) { in TestIteration()
[all …]
/external/icu4c/test/intltest/
Drbbiapts.cpp80 …RuleBasedBreakIterator *bix = (RuleBasedBreakIterator *)BreakIterator::createLineInstance(Locale::… in TestCloneEquals()
151 BreakIterator* a = BreakIterator::createWordInstance(Locale("hi"), status); in TestBoilerPlate()
152 BreakIterator* b = BreakIterator::createWordInstance(Locale("hi_IN"),status); in TestBoilerPlate()
162 BreakIterator* c = BreakIterator::createCharacterInstance(Locale("ja"),status); in TestBoilerPlate()
163 BreakIterator* d = BreakIterator::createCharacterInstance(Locale("root"),status); in TestBoilerPlate()
304 TEST_ASSERT(rb->following(11) == BreakIterator::DONE); in TestGetSetAdoptText()
444 if (i != BreakIterator::DONE) { in TestIteration()
459 if (i != BreakIterator::DONE) { in TestIteration()
508 if (i != BreakIterator::DONE) { in TestIteration()
532 if (i != BreakIterator::DONE) { in TestIteration()
[all …]
/external/icu4c/test/perf/ubrkperf/
Dubrkperf.h17 BreakIterator *m_brkIt_;
32 m_brkIt_ = BreakIterator::createCharacterInstance(locale, m_status_); in ICUBreakFunction()
35 m_brkIt_ = BreakIterator::createWordInstance(locale, m_status_); in ICUBreakFunction()
38 m_brkIt_ = BreakIterator::createLineInstance(locale, m_status_); in ICUBreakFunction()
41 m_brkIt_ = BreakIterator::createSentenceInstance(locale, m_status_); in ICUBreakFunction()
92 while(m_brkIt_->next() != BreakIterator::DONE) { in ICUForward()
100 while(m_brkIt_->next() != BreakIterator::DONE) { in call()
/external/chromium_org/third_party/icu/source/test/perf/ubrkperf/
Dubrkperf.h17 BreakIterator *m_brkIt_;
32 m_brkIt_ = BreakIterator::createCharacterInstance(locale, m_status_); in ICUBreakFunction()
35 m_brkIt_ = BreakIterator::createWordInstance(locale, m_status_); in ICUBreakFunction()
38 m_brkIt_ = BreakIterator::createLineInstance(locale, m_status_); in ICUBreakFunction()
41 m_brkIt_ = BreakIterator::createSentenceInstance(locale, m_status_); in ICUBreakFunction()
92 while(m_brkIt_->next() != BreakIterator::DONE) { in ICUForward()
100 while(m_brkIt_->next() != BreakIterator::DONE) { in call()
/external/chromium_org/third_party/icu/source/i18n/unicode/
Dsearch.h212 void setBreakIterator(BreakIterator *breakiter, UErrorCode &status);
224 const BreakIterator * getBreakIterator(void) const;
419 BreakIterator *m_breakiterator_;
452 BreakIterator *breakiter = NULL);
473 SearchIterator(CharacterIterator &text, BreakIterator *breakiter = NULL);

12345