Home
last modified time | relevance | path

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

/libcore/harmony-tests/src/test/java/org/apache/harmony/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 …]
/libcore/luni/src/test/java/libcore/java/text/
DBreakIteratorTest.java19 import java.text.BreakIterator;
24 BreakIterator iterator;
29 iterator = BreakIterator.getCharacterInstance(Locale.US); in setUp()
33 Locale[] locales = BreakIterator.getAvailableLocales(); in testGetAvailableLocales()
48 BreakIterator it1 = BreakIterator.getWordInstance(Locale.CANADA_FRENCH); in testGetWordInstanceLocale()
49 assertTrue("Incorrect BreakIterator", it1 != BreakIterator.getWordInstance()); in testGetWordInstanceLocale()
50 BreakIterator it2 = BreakIterator.getWordInstance(new Locale("bad locale")); in testGetWordInstanceLocale()
51 assertTrue("Incorrect BreakIterator", it2 != BreakIterator.getWordInstance()); in testGetWordInstanceLocale()
58 BreakIterator it = BreakIterator.getWordInstance(Locale.US); in testStress()
73 BreakIterator it = BreakIterator.getWordInstance(Locale.US); in testWordBoundaries()
[all …]
/libcore/ojluni/src/main/java/java/text/
DBreakIterator.java231 public abstract class BreakIterator implements Cloneable class
236 protected BreakIterator() in BreakIterator() method in BreakIterator
441 public static BreakIterator getWordInstance() in getWordInstance()
454 public static BreakIterator getWordInstance(Locale locale) in getWordInstance()
458 android.icu.text.BreakIterator.getWordInstance(locale)); in getWordInstance()
467 public static BreakIterator getLineInstance() in getLineInstance()
480 public static BreakIterator getLineInstance(Locale locale) in getLineInstance()
484 android.icu.text.BreakIterator.getLineInstance(locale)); in getLineInstance()
493 public static BreakIterator getCharacterInstance() in getCharacterInstance()
506 public static BreakIterator getCharacterInstance(Locale locale) in getCharacterInstance()
[all …]
DIcuIteratorWrapper.java209 class IcuIteratorWrapper extends BreakIterator {
212 private android.icu.text.BreakIterator wrapped;
218 IcuIteratorWrapper(android.icu.text.BreakIterator iterator) { in IcuIteratorWrapper()
230 result.wrapped = (android.icu.text.BreakIterator) wrapped.clone(); in clone()
/libcore/ojluni/src/test/java/text/BreakIterator/
DBug7104012.java29 package test.java.text.BreakIterator;
50 List<BreakIterator> breakIterators = new ArrayList<>(); in main()
51 breakIterators.add(BreakIterator.getCharacterInstance(locale)); in main()
52 breakIterators.add(BreakIterator.getLineInstance(locale)); in main()
53 breakIterators.add(BreakIterator.getSentenceInstance(locale)); in main()
54 breakIterators.add(BreakIterator.getWordInstance(locale)); in main()
56 for (BreakIterator bi : breakIterators) { in main()
61 while (bi.next() != BreakIterator.DONE) { } in main()
63 while (bi.previous() != BreakIterator.DONE) { } in main()
DBug4533872.java31 package test.java.text.BreakIterator;
33 import java.text.BreakIterator;
63 BreakIterator iter;
70 iter = BreakIterator.getWordInstance(Locale.US); in TestNext()
92 iter = BreakIterator.getWordInstance(Locale.US); in TestIsBoundary()
120 iter = BreakIterator.getWordInstance(Locale.US); in TestPrintEachForward()
135 end != BreakIterator.DONE; in TestPrintEachForward()
159 iter = BreakIterator.getWordInstance(Locale.US); in TestPrintEachBackward()
174 start != BreakIterator.DONE; in TestPrintEachBackward()
198 iter = BreakIterator.getWordInstance(Locale.US); in TestPrintAt_1()
[all …]
DBug4912404.java30 package test.java.text.BreakIterator;
32 import java.text.BreakIterator;
37 BreakIterator b = BreakIterator.getWordInstance(); in main()
DExceptionTest.java29 package test.java.text.BreakIterator;
33 import static java.text.BreakIterator.DONE;
44 BreakIterator bi = BreakIterator.getWordInstance(); in main()
52 bi = BreakIterator.getWordInstance(); in main()
127 private static void checkFollowingException(BreakIterator bi, int offset) { in checkFollowingException()
137 private static void checkPrecedingException(BreakIterator bi, int offset) { in checkPrecedingException()
147 private static void checkIsBoundaryException(BreakIterator bi, int offset) { in checkIsBoundaryException()
DBug4740757.java30 package test.java.text.BreakIterator;
58 BreakIterator bi = BreakIterator.getLineInstance(Locale.KOREAN); in test4740757()
64 for (; end != BreakIterator.DONE; start = end, end = bi.next()) { in test4740757()
DBug4932583.java31 package test.java.text.BreakIterator;
39 BreakIterator iterator = BreakIterator.getCharacterInstance(); in main()
DBug8032446.java29 package test.java.text.BreakIterator;
49 BreakIterator bi = BreakIterator.getWordInstance(Locale.ROOT); in main()
DMirroredBreakIterator.java24 package test.java.text.BreakIterator;
26 import java.text.BreakIterator;
34 public class MirroredBreakIterator extends BreakIterator {
39 MirroredBreakIterator(BreakIterator bi) { in MirroredBreakIterator()
/libcore/benchmarks/src/benchmarks/regression/
DBreakIteratorBenchmark.java20 import java.text.BreakIterator;
52 BreakIterator it = BreakIterator.getLineInstance(text.locale); in timeBreakIterator()
55 while (it.next() != BreakIterator.DONE) { in timeBreakIterator()
62 android.icu.text.BreakIterator it = in timeIcuBreakIterator()
63 android.icu.text.BreakIterator.getLineInstance(text.locale); in timeIcuBreakIterator()
66 while (it.next() != android.icu.text.BreakIterator.DONE) { in timeIcuBreakIterator()
/libcore/luni/src/test/java/libcore/libcore/icu/
DICUTest.java19 import java.text.BreakIterator;
205 BreakIterator.getCharacterInstance(sr_Cyrl_BA); in testScriptsPassedToIcu()
206 BreakIterator.getCharacterInstance(sr_Cyrl_ME); in testScriptsPassedToIcu()
207 BreakIterator.getCharacterInstance(sr_Latn_BA); in testScriptsPassedToIcu()
208 BreakIterator.getCharacterInstance(sr_Latn_ME); in testScriptsPassedToIcu()
210 BreakIterator.getLineInstance(sr_Cyrl_BA); in testScriptsPassedToIcu()
211 BreakIterator.getLineInstance(sr_Cyrl_ME); in testScriptsPassedToIcu()
212 BreakIterator.getLineInstance(sr_Latn_BA); in testScriptsPassedToIcu()
213 BreakIterator.getLineInstance(sr_Latn_ME); in testScriptsPassedToIcu()
215 BreakIterator.getSentenceInstance(sr_Cyrl_BA); in testScriptsPassedToIcu()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DLegacyLocalesTest.java36 import java.text.BreakIterator;
90 assertOnce(newLocale, BreakIterator.getAvailableLocales()); in assertObsolete()
113 assertOnce(newLocale, BreakIterator.getAvailableLocales()); in assertNew()
DLocaleTest.java27 import java.text.BreakIterator;
/libcore/
DEXPECTED_UPSTREAM779 ojluni/src/main/java/java/text/BreakIterator.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/…
2127 ojluni/src/test/java/text/BreakIterator/Bug4533872.java,jdk17u/jdk-17.0.6-ga,test/jdk/java/text/Bre…
2128 ojluni/src/test/java/text/BreakIterator/Bug4740757.java,jdk17u/jdk-17.0.6-ga,test/jdk/java/text/Bre…
2129 ojluni/src/test/java/text/BreakIterator/Bug4912404.java,jdk17u/jdk-17.0.6-ga,test/jdk/java/text/Bre…
2130 ojluni/src/test/java/text/BreakIterator/Bug4932583.java,jdk17u/jdk-17.0.6-ga,test/jdk/java/text/Bre…
2131 ojluni/src/test/java/text/BreakIterator/Bug7104012.java,jdk17u/jdk-17.0.6-ga,test/jdk/java/text/Bre…
2132 ojluni/src/test/java/text/BreakIterator/Bug8032446.java,jdk17u/jdk-17.0.6-ga,test/jdk/java/text/Bre…
2133 ojluni/src/test/java/text/BreakIterator/ExceptionTest.java,jdk17u/jdk-17.0.6-ga,test/jdk/java/text/
2134 ojluni/src/test/java/text/BreakIterator/MirroredBreakIterator.java,jdk17u/jdk-17.0.6-ga,test/jdk/ja…
Dopenjdk_java_files.bp790 "ojluni/src/main/java/java/text/BreakIterator.java",
/libcore/api/
Dcurrent.txt10916 public abstract class BreakIterator implements java.lang.Cloneable {
10917 ctor protected BreakIterator();
10923 method public static java.text.BreakIterator getCharacterInstance();
10924 method public static java.text.BreakIterator getCharacterInstance(java.util.Locale);
10925 method public static java.text.BreakIterator getLineInstance();
10926 method public static java.text.BreakIterator getLineInstance(java.util.Locale);
10927 method public static java.text.BreakIterator getSentenceInstance();
10928 method public static java.text.BreakIterator getSentenceInstance(java.util.Locale);
10930 method public static java.text.BreakIterator getWordInstance();
10931 method public static java.text.BreakIterator getWordInstance(java.util.Locale);