/libcore/ojluni/src/main/java/java/text/ |
D | StringCharacterIterator.java | 41 package java.text; 55 private String text; field in StringCharacterIterator 66 public StringCharacterIterator(String text) in StringCharacterIterator() argument 68 this(text, 0); in StringCharacterIterator() 77 public StringCharacterIterator(String text, int pos) in StringCharacterIterator() argument 79 this(text, 0, text.length(), pos); in StringCharacterIterator() 91 public StringCharacterIterator(String text, int begin, int end, int pos) { in StringCharacterIterator() argument 92 if (text == null) in StringCharacterIterator() 94 this.text = text; in StringCharacterIterator() 96 if (begin < 0 || begin > end || end > text.length()) in StringCharacterIterator() [all …]
|
D | Bidi.java | 37 package java.text; 94 return android.icu.text.Bidi.DIRECTION_DEFAULT_LEFT_TO_RIGHT; in translateConstToIcu() 96 return android.icu.text.Bidi.DIRECTION_DEFAULT_RIGHT_TO_LEFT; in translateConstToIcu() 98 return android.icu.text.Bidi.DIRECTION_LEFT_TO_RIGHT; in translateConstToIcu() 100 return android.icu.text.Bidi.DIRECTION_RIGHT_TO_LEFT; in translateConstToIcu() 103 return android.icu.text.Bidi.DIRECTION_LEFT_TO_RIGHT; in translateConstToIcu() 109 private final android.icu.text.Bidi bidiBase; 125 bidiBase = new android.icu.text.Bidi(paragraph.toCharArray(), 0, null, 0, in Bidi() 160 this.bidiBase = new android.icu.text.Bidi(paragraph); in Bidi() 180 …public Bidi(char[] text, int textStart, byte[] embeddings, int embStart, int paragraphLength, int … in Bidi() argument [all …]
|
D | IcuIteratorWrapper.java | 42 package java.text; 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() 320 protected static final void checkOffset(int offset, CharacterIterator text) { in checkOffset() argument 321 if (offset < text.getBeginIndex() || offset > text.getEndIndex()) { in checkOffset() 334 CharacterIterator text = getText(); in following() local 335 checkOffset(offset, text); in following() 350 CharacterIterator text = getText(); in preceding() local 351 checkOffset(offset, text); in preceding() [all …]
|
D | Collator.java | 40 package java.text; 236 return new RuleBasedCollator((android.icu.text.RuleBasedCollator) in getInstance() 237 android.icu.text.Collator.getInstance(desiredLocale)); in getInstance() 327 return (value == android.icu.text.Collator.IDENTICAL) ? IDENTICAL : value; in getStrength() 347 newStrength = android.icu.text.Collator.IDENTICAL; in setStrength() 403 return android.icu.text.Collator.getAvailableLocales(); in getAvailableLocales() 410 return android.icu.text.Collator.CANONICAL_DECOMPOSITION; in decompositionMode_Java_ICU() 412 return android.icu.text.Collator.NO_DECOMPOSITION; in decompositionMode_Java_ICU() 420 case android.icu.text.Collator.NO_DECOMPOSITION: in decompositionMode_ICU_Java() 423 case android.icu.text.Collator.CANONICAL_DECOMPOSITION: in decompositionMode_ICU_Java() [all …]
|
D | AttributedString.java | 26 package java.text; 29 import java.text.AttributedCharacterIterator.Attribute; 52 String text; field in AttributedString 77 text = ""; in AttributedString() 86 text = buffer.toString(); in AttributedString() 88 if (!text.isEmpty()) { in AttributedString() 122 public AttributedString(String text) { in AttributedString() argument 123 if (text == null) { in AttributedString() 126 this.text = text; in AttributedString() 139 public AttributedString(String text, in AttributedString() argument [all …]
|
D | SimpleDateFormat.java | 40 package java.text; 42 import android.icu.text.TimeZoneNames; 45 import com.android.icu.text.ExtendedTimeZoneNames; 46 import com.android.icu.text.ExtendedTimeZoneNames.Match; 65 import static java.text.DateFormatSymbols.*; 1760 public Date parse(String text, ParsePosition pos) { in parse() argument 1766 return parseInternal(text, pos); in parse() 1772 private Date parseInternal(String text, ParsePosition pos) in parseInternal() argument 1779 int textLength = text.length(); in parseInternal() 1795 if (start >= textLength || text.charAt(start) != (char)count) { in parseInternal() [all …]
|
D | CollationElementIterator.java | 40 package java.text; 135 private android.icu.text.CollationElementIterator icuIterator; 138 CollationElementIterator(android.icu.text.CollationElementIterator iterator) { in CollationElementIterator() 205 return android.icu.text.CollationElementIterator.primaryOrder(order); in primaryOrder() 215 return (short) android.icu.text.CollationElementIterator.secondaryOrder(order); in secondaryOrder() 225 return (short) android.icu.text.CollationElementIterator.tertiaryOrder(order); in tertiaryOrder()
|
/libcore/ojluni/annotations/hiddenapi/java/text/ |
D | DateFormat.java | 40 package java.text; 45 public abstract class DateFormat extends java.text.Format { 54 java.text.FieldPosition fieldPosition) { in format() 61 java.text.FieldPosition fieldPosition); in format() 67 public java.util.Date parse(java.lang.String source) throws java.text.ParseException { in parse() 71 public abstract java.util.Date parse(java.lang.String source, java.text.ParsePosition pos); in parse() 73 public java.lang.Object parseObject(java.lang.String source, java.text.ParsePosition pos) { in parseObject() 77 public static final java.text.DateFormat getTimeInstance() { in getTimeInstance() 81 public static final java.text.DateFormat getTimeInstance(int style) { in getTimeInstance() 85 public static final java.text.DateFormat getTimeInstance(int style, java.util.Locale aLocale) { in getTimeInstance() [all …]
|
D | NumberFormat.java | 40 package java.text; 45 public abstract class NumberFormat extends java.text.Format { 54 java.text.FieldPosition pos) { in format() 59 java.lang.String source, java.text.ParsePosition pos) { in parseObject() 72 double number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos); in format() 75 long number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos); in format() 78 java.lang.String source, java.text.ParsePosition parsePosition); in parse() 80 public java.lang.Number parse(java.lang.String source) throws java.text.ParseException { in parse() 92 public static final java.text.NumberFormat getInstance() { in getInstance() 96 public static java.text.NumberFormat getInstance(java.util.Locale inLocale) { in getInstance() [all …]
|
/libcore/ojluni/annotations/mmodule/java/text/ |
D | DateFormat.annotated.java | 41 package java.text; 50 public abstract class DateFormat extends java.text.Format { 54 …ffer format(java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition field… in format() 56 …uffer format(java.util.Date date, java.lang.StringBuffer toAppendTo, java.text.FieldPosition field… in format() 60 public java.util.Date parse(java.lang.String source) throws java.text.ParseException { throw new Ru… in parse() 62 public abstract java.util.Date parse(java.lang.String source, java.text.ParsePosition pos); in parse() 64 public java.lang.Object parseObject(java.lang.String source, java.text.ParsePosition pos) { throw n… in parseObject() 66 public static final java.text.DateFormat getTimeInstance() { throw new RuntimeException("Stub!"); } in getTimeInstance() 68 public static final java.text.DateFormat getTimeInstance(int style) { throw new RuntimeException("S… in getTimeInstance() 70 public static final java.text.DateFormat getTimeInstance(int style, java.util.Locale aLocale) { thr… in getTimeInstance() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | CollationElementIteratorTest.java | 18 package org.apache.harmony.tests.java.text; 20 import java.text.CollationElementIterator; 21 import java.text.Collator; 22 import java.text.RuleBasedCollator; 23 import java.text.StringCharacterIterator; 46 String text = "abc"; in testGetOffset() local 47 CollationElementIterator iterator = coll.getCollationElementIterator(text); in testGetOffset() 52 while (offset != text.length()) { in testGetOffset() 60 String text = "abc"; in testNext() local 61 CollationElementIterator iterator = coll.getCollationElementIterator(text); in testNext() [all …]
|
D | Support_DecimalFormat.java | 18 package org.apache.harmony.tests.java.text; 20 import java.text.DecimalFormat; 21 import java.text.NumberFormat; 43 String text = "$10,000,000.76"; in t_format_with_FieldPosition() local 45 t_FormatWithField(0, format, number, text, NumberFormat.Field.CURRENCY, 0, 1); in t_format_with_FieldPosition() 46 t_FormatWithField(1, format, number, text, NumberFormat.Field.INTEGER, 1, 11); in t_format_with_FieldPosition() 47 t_FormatWithField(2, format, number, text, NumberFormat.Field.GROUPING_SEPARATOR, 3, 4); in t_format_with_FieldPosition() 48 t_FormatWithField(3, format, number, text, NumberFormat.Field.DECIMAL_SEPARATOR, 11, 12); in t_format_with_FieldPosition() 49 t_FormatWithField(4, format, number, text, NumberFormat.Field.FRACTION, 12, 14); in t_format_with_FieldPosition() 52 t_FormatWithField(5, format, number, text, NumberFormat.Field.SIGN, 0, 0); in t_format_with_FieldPosition() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | BreakIteratorBenchmark.java | 20 import java.text.BreakIterator; 40 final String text; field in BreakIteratorBenchmark.Text 42 Text(Locale locale, String text) { in Text() argument 43 this.text = text; in Text() 48 @Param private Text text; field in BreakIteratorBenchmark 52 BreakIterator it = BreakIterator.getLineInstance(text.locale); in timeBreakIterator() 53 it.setText(text.text); in timeBreakIterator() 62 android.icu.text.BreakIterator it = in timeIcuBreakIterator() 63 android.icu.text.BreakIterator.getLineInstance(text.locale); in timeIcuBreakIterator() 64 it.setText(text.text); in timeIcuBreakIterator() [all …]
|
/libcore/luni/src/test/java/libcore/libcore/icu/ |
D | LocaleDataTest.java | 22 import android.icu.text.DateTimePatternGenerator; 25 import java.text.DateFormatSymbols; 26 import java.text.DecimalFormatSymbols; 27 import java.text.SimpleDateFormat; 154 android.icu.text.DateFormatSymbols icuDateFormatSymbols = in assertRootDataEqualsToTargetLocaleData() 155 android.icu.text.DateFormatSymbols.getInstance(targetLocale); in assertRootDataEqualsToTargetLocaleData() 157 android.icu.text.DecimalFormatSymbols icuDecimalFormatSymbols = in assertRootDataEqualsToTargetLocaleData() 158 android.icu.text.DecimalFormatSymbols.getInstance(targetLocale); in assertRootDataEqualsToTargetLocaleData() 168 android.icu.text.DateFormatSymbols.FORMAT, android.icu.text.DateFormatSymbols.WIDE)); in assertRootDataEqualsToTargetLocaleData() 170 android.icu.text.DateFormatSymbols.FORMAT, android.icu.text.DateFormatSymbols.NARROW)); in assertRootDataEqualsToTargetLocaleData() [all …]
|
/libcore/ojluni/annotations/sdk/nullability/java/text/ |
D | DateFormat.annotated.java | 41 package java.text; 50 public abstract class DateFormat extends java.text.Format { 54 …til.NonNull java.lang.StringBuffer toAppendTo, @libcore.util.NonNull java.text.FieldPosition field… in format() 56 …til.NonNull java.lang.StringBuffer toAppendTo, @libcore.util.NonNull java.text.FieldPosition field… in format() 60 …til.Date parse(@libcore.util.NonNull java.lang.String source) throws java.text.ParseException { th… in parse() 62 …(@libcore.util.NonNull java.lang.String source, @libcore.util.NonNull java.text.ParsePosition pos); in parse() 64 …@libcore.util.NonNull java.lang.String source, @libcore.util.NonNull java.text.ParsePosition pos) … in parseObject() 66 @libcore.util.NonNull public static final java.text.DateFormat getTimeInstance() { throw new Runtim… in getTimeInstance() 68 @libcore.util.NonNull public static final java.text.DateFormat getTimeInstance(int style) { throw n… in getTimeInstance() 70 @libcore.util.NonNull public static final java.text.DateFormat getTimeInstance(int style, @libcore.… in getTimeInstance() [all …]
|
D | NumberFormat.annotated.java | 41 package java.text; 50 public abstract class NumberFormat extends java.text.Format { 54 …til.NonNull java.lang.StringBuffer toAppendTo, @libcore.util.NonNull java.text.FieldPosition pos) … in format() 56 …@libcore.util.NonNull java.lang.String source, @libcore.util.NonNull java.text.ParsePosition pos) … in parseObject() 62 …util.NonNull java.lang.StringBuffer toAppendTo, @libcore.util.NonNull java.text.FieldPosition pos); in format() 64 …util.NonNull java.lang.StringBuffer toAppendTo, @libcore.util.NonNull java.text.FieldPosition pos); in format() 66 …@libcore.util.NonNull java.lang.String source, @libcore.util.NonNull java.text.ParsePosition parse… in parse() 68 …g.Number parse(@libcore.util.NonNull java.lang.String source) throws java.text.ParseException { th… in parse() 74 @libcore.util.NonNull public static final java.text.NumberFormat getInstance() { throw new RuntimeE… in getInstance() 76 @libcore.util.NonNull public static java.text.NumberFormat getInstance(@libcore.util.NonNull java.u… in getInstance() [all …]
|
/libcore/ojluni/src/test/java/text/CharacterIterator/ |
D | CharacterIteratorTest.java | 63 package test.java.text.CharacterIterator; 65 import java.text.*; 67 import test.java.text.testlib.IntlTest; 106 String text = "Now is the time for all good men to come to the aid of their country."; in TestIteration() local 108 CharacterIterator iter = new StringCharacterIterator(text, 5); in TestIteration() 110 if (iter.current() != text.charAt(5)) in TestIteration() 116 if (iter.getBeginIndex() != 0 || iter.getEndIndex() != text.length()) in TestIteration() 121 if (c == CharacterIterator.DONE && i != text.length()) in TestIteration() 123 else if (c != text.charAt(i)) in TestIteration() 125 ", string has " + text.charAt(c)); in TestIteration() [all …]
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | StringTokenIterator.java | 34 private String text; field in StringTokenIterator 43 public StringTokenIterator(String text, String dlms) { in StringTokenIterator() argument 44 this.text = text; in StringTokenIterator() 78 token = text.substring(start, end); in next() 88 return (end < text.length()); in hasNext() 92 if (offset > text.length()) { in setStart() 97 token = text.substring(start, end); in setStart() 102 public StringTokenIterator setText(String text) { in setText() argument 103 this.text = text; in setText() 109 int textlen = this.text.length(); in nextDelimiter() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKZoneIdPrinterParser.java | 65 import java.text.ParsePosition; 213 … String text, int expectedIndex, int expectedErrorIndex, ZoneId expected, boolean isZoneOffset) in test_ZoneId_parseSuccess_plain() argument 216 test(text, expectedIndex, expectedErrorIndex, expected, isZoneOffset); in test_ZoneId_parseSuccess_plain() 221 … String text, int expectedIndex, int expectedErrorIndex, ZoneId expected, boolean isZoneOffset) in test_ZoneId_parseSuccess_prefix() argument 225 test("XXX" + text, in test_ZoneId_parseSuccess_prefix() 233 … String text, int expectedIndex, int expectedErrorIndex, ZoneId expected, boolean isZoneOffset) in test_ZoneId_parseSuccess_suffix() argument 236 test(text + "XXX", expectedIndex, expectedErrorIndex, expected, isZoneOffset); in test_ZoneId_parseSuccess_suffix() 241 … String text, int expectedIndex, int expectedErrorIndex, ZoneId expected, boolean isZoneOffset) in test_ZoneId_parseSuccess_caseSensitive() argument 245 if (text.matches("[^A-Z]*[A-Z].*")) { // if input has letters in test_ZoneId_parseSuccess_caseSensitive() 246 String lcText = text.toLowerCase(Locale.ENGLISH); in test_ZoneId_parseSuccess_caseSensitive() [all …]
|
/libcore/support/src/test/java/tests/support/ |
D | Support_DecimalFormat.java | 20 import java.text.DecimalFormat; 21 import java.text.NumberFormat; 45 String text = "$10,000,000.76"; in t_format_with_FieldPosition() local 47 t_FormatWithField(0, format, number, text, NumberFormat.Field.CURRENCY, in t_format_with_FieldPosition() 49 t_FormatWithField(1, format, number, text, NumberFormat.Field.INTEGER, in t_format_with_FieldPosition() 51 t_FormatWithField(2, format, number, text, in t_format_with_FieldPosition() 53 t_FormatWithField(3, format, number, text, in t_format_with_FieldPosition() 55 t_FormatWithField(4, format, number, text, NumberFormat.Field.FRACTION, in t_format_with_FieldPosition() 59 t_FormatWithField(5, format, number, text, NumberFormat.Field.SIGN, 0, in t_format_with_FieldPosition() 61 t_FormatWithField(6, format, number, text, NumberFormat.Field.EXPONENT, in t_format_with_FieldPosition() [all …]
|
/libcore/luni/src/main/java/libcore/icu/ |
D | SimpleDateFormatData.java | 20 import java.text.DateFormat; 21 import java.text.SimpleDateFormat; 61 android.icu.text.DateFormat.NONE, android.icu.text.DateFormat.FULL); in SimpleDateFormatData() 75 android.icu.text.DateFormat.NONE, android.icu.text.DateFormat.LONG); in SimpleDateFormatData() 77 android.icu.text.DateFormat.NONE, android.icu.text.DateFormat.MEDIUM); in SimpleDateFormatData() 79 android.icu.text.DateFormat.NONE, android.icu.text.DateFormat.SHORT); in SimpleDateFormatData() 81 android.icu.text.DateFormat.FULL, android.icu.text.DateFormat.NONE); in SimpleDateFormatData() 83 android.icu.text.DateFormat.LONG, android.icu.text.DateFormat.NONE); in SimpleDateFormatData() 85 android.icu.text.DateFormat.MEDIUM, android.icu.text.DateFormat.NONE); in SimpleDateFormatData() 87 android.icu.text.DateFormat.SHORT, android.icu.text.DateFormat.NONE); in SimpleDateFormatData()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatter.java | 75 import java.text.FieldPosition; 76 import java.text.Format; 77 import java.text.ParseException; 78 import java.text.ParsePosition; 1875 public TemporalAccessor parse(CharSequence text) { in parse() argument 1876 Objects.requireNonNull(text, "text"); in parse() 1878 return parseResolved0(text, null); in parse() 1882 throw createError(text, ex); in parse() 1916 public TemporalAccessor parse(CharSequence text, ParsePosition position) { in parse() argument 1917 Objects.requireNonNull(text, "text"); in parse() [all …]
|
/libcore/xml/src/main/java/org/xmlpull/v1/ |
D | XmlSerializer.java | 290 XmlSerializer text (String text) in text() argument 296 XmlSerializer text (char [] buf, int start, int len) in text() method 299 void cdsect (String text) in cdsect() argument 301 void entityRef (String text) throws IOException, in entityRef() argument 303 void processingInstruction (String text) in processingInstruction() argument 305 void comment (String text) in comment() argument 307 void docdecl (String text) in docdecl() argument 309 void ignorableWhitespace (String text) in ignorableWhitespace() argument
|
/libcore/ojluni/src/main/java/java/awt/font/ |
D | NumericShaper.java | 1100 public void shape(char[] text, int start, int count) { in shape() argument 1101 checkParams(text, start, count); in shape() 1104 shapeContextually(text, start, count, key); in shape() 1106 shapeContextually(text, start, count, shapingRange); in shape() 1109 shapeNonContextually(text, start, count); in shape() 1131 public void shape(char[] text, int start, int count, int context) { in shape() argument 1132 checkParams(text, start, count); in shape() 1136 shapeContextually(text, start, count, ctxKey); in shape() 1138 shapeContextually(text, start, count, Range.values()[ctxKey]); in shape() 1141 shapeNonContextually(text, start, count); in shape() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | LineNumberReaderTest.java | 31 …String text = "0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n2… field in LineNumberReaderTest 39 lnr = new LineNumberReader(new StringReader(text), 4092); in test_ConstructorLjava_io_Reader() 47 lnr = new LineNumberReader(new StringReader(text)); in test_ConstructorLjava_io_ReaderI() 55 lnr = new LineNumberReader(new StringReader(text)); in test_getLineNumber() 70 lnr = new LineNumberReader(new StringReader(text)); in test_markI() 85 lnr = new LineNumberReader(new StringReader(text)); in test_read() 98 lnr = new LineNumberReader(new StringReader(text)); in test_read$CII() 110 lnr = new LineNumberReader(new StringReader(text)); in test_readLine() 136 lnr = new LineNumberReader(new StringReader(text)); in test_reset() 204 lnr = new LineNumberReader(new StringReader(text)); in test_setLineNumberI() [all …]
|