/libcore/ojluni/src/main/java/java/text/ |
D | StringCharacterIterator.java | 41 package java.text; 54 private String text; field in StringCharacterIterator 65 public StringCharacterIterator(String text) in StringCharacterIterator() argument 67 this(text, 0); in StringCharacterIterator() 76 public StringCharacterIterator(String text, int pos) in StringCharacterIterator() argument 78 this(text, 0, text.length(), pos); in StringCharacterIterator() 90 public StringCharacterIterator(String text, int begin, int end, int pos) { in StringCharacterIterator() argument 91 if (text == null) in StringCharacterIterator() 93 this.text = text; in StringCharacterIterator() 95 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 | Normalizer.java | 39 package java.text; 126 NFD(android.icu.text.Normalizer.NFD), 131 NFC(android.icu.text.Normalizer.NFC), 136 NFKD(android.icu.text.Normalizer.NFKD), 141 NFKC(android.icu.text.Normalizer.NFKC); 143 private final android.icu.text.Normalizer.Mode icuMode; 145 Form(android.icu.text.Normalizer.Mode icuMode) { in Form() 167 return android.icu.text.Normalizer.normalize(src.toString(), form.icuMode); in normalize() 185 return android.icu.text.Normalizer.isNormalized(src.toString(), form.icuMode, 0); in isNormalized()
|
D | Collator.java | 40 package java.text; 235 return new RuleBasedCollator((android.icu.text.RuleBasedCollator) in getInstance() 236 android.icu.text.Collator.getInstance(desiredLocale)); in getInstance() 324 return (value == android.icu.text.Collator.IDENTICAL) ? IDENTICAL : value; in getStrength() 344 newStrength = android.icu.text.Collator.IDENTICAL; in setStrength() 407 return android.icu.text.Collator.CANONICAL_DECOMPOSITION; in decompositionMode_Java_ICU() 409 return android.icu.text.Collator.NO_DECOMPOSITION; in decompositionMode_Java_ICU() 417 case android.icu.text.Collator.NO_DECOMPOSITION: in decompositionMode_ICU_Java() 420 case android.icu.text.Collator.CANONICAL_DECOMPOSITION: in decompositionMode_ICU_Java() 442 clone.icuColl = (android.icu.text.Collator) icuColl.clone(); in clone() [all …]
|
D | CollationElementIterator.java | 40 package java.text; 111 public final static int NULLORDER = android.icu.text.CollationElementIterator.NULLORDER; 116 private android.icu.text.CollationElementIterator icuIterator; 119 CollationElementIterator(android.icu.text.CollationElementIterator iterator) { in CollationElementIterator() 186 return android.icu.text.CollationElementIterator.primaryOrder(order); in primaryOrder() 196 return (short) android.icu.text.CollationElementIterator.secondaryOrder(order); in secondaryOrder() 206 return (short) android.icu.text.CollationElementIterator.tertiaryOrder(order); in tertiaryOrder()
|
D | AttributedString.java | 26 package java.text; 29 import java.text.AttributedCharacterIterator.Attribute; 57 String text; field in AttributedString 80 text = ""; in AttributedString() 89 text = buffer.toString(); in AttributedString() 91 if (text.length() > 0) { in AttributedString() 125 public AttributedString(String text) { in AttributedString() argument 126 if (text == null) { in AttributedString() 129 this.text = text; in AttributedString() 142 public AttributedString(String text, in AttributedString() argument [all …]
|
/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/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/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/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/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/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 | RelativeDateTimeFormatter.java | 22 import android.icu.text.DisplayContext; 58 extends BasicLruCache<String, android.icu.text.RelativeDateTimeFormatter> { 124 android.icu.text.RelativeDateTimeFormatter.Style style; in getRelativeTimeSpanString() 126 style = android.icu.text.RelativeDateTimeFormatter.Style.SHORT; in getRelativeTimeSpanString() 128 style = android.icu.text.RelativeDateTimeFormatter.Style.LONG; in getRelativeTimeSpanString() 131 android.icu.text.RelativeDateTimeFormatter.Direction direction; in getRelativeTimeSpanString() 133 direction = android.icu.text.RelativeDateTimeFormatter.Direction.LAST; in getRelativeTimeSpanString() 135 direction = android.icu.text.RelativeDateTimeFormatter.Direction.NEXT; in getRelativeTimeSpanString() 143 android.icu.text.RelativeDateTimeFormatter.RelativeUnit unit; in getRelativeTimeSpanString() 144 android.icu.text.RelativeDateTimeFormatter.AbsoluteUnit aunit = null; in getRelativeTimeSpanString() [all …]
|
D | CollationKeyICU.java | 13 import java.text.CollationKey; 22 private final android.icu.text.CollationKey key; 24 public CollationKeyICU(String source, android.icu.text.CollationKey key) { in CollationKeyICU() 31 final android.icu.text.CollationKey otherKey; in compareTo() 35 otherKey = new android.icu.text.CollationKey(other.getSourceString(), in compareTo()
|
/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; 1774 public TemporalAccessor parse(CharSequence text) { in parse() argument 1775 Objects.requireNonNull(text, "text"); in parse() 1777 return parseResolved0(text, null); in parse() 1781 throw createError(text, ex); in parse() 1815 public TemporalAccessor parse(CharSequence text, ParsePosition position) { in parse() argument 1816 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() method 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/luni/src/test/java/libcore/java/text/ |
D | OldFormatTest.java | 18 package libcore.java.text; 20 import java.text.AttributedCharacterIterator; 21 import java.text.FieldPosition; 22 import java.text.Format; 23 import java.text.ParseException; 24 import java.text.ParsePosition;
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestDateTimeParsing.java | 137 …public void test_parse_instantZones_ZDT(DateTimeFormatter formatter, String text, ZonedDateTime ex… in test_parse_instantZones_ZDT() argument 138 TemporalAccessor actual = formatter.parse(text); in test_parse_instantZones_ZDT() 143 …public void test_parse_instantZones_LDT(DateTimeFormatter formatter, String text, ZonedDateTime ex… in test_parse_instantZones_LDT() argument 144 TemporalAccessor actual = formatter.parse(text); in test_parse_instantZones_LDT() 149 …public void test_parse_instantZones_Instant(DateTimeFormatter formatter, String text, ZonedDateTim… in test_parse_instantZones_Instant() argument 150 TemporalAccessor actual = formatter.parse(text); in test_parse_instantZones_Instant() 155 …public void test_parse_instantZones_supported(DateTimeFormatter formatter, String text, ZonedDateT… in test_parse_instantZones_supported() argument 156 TemporalAccessor actual = formatter.parse(text); in test_parse_instantZones_supported() 176 …public void test_parse_instantNoZone_ZDT(DateTimeFormatter formatter, String text, Instant expecte… in test_parse_instantNoZone_ZDT() argument 177 TemporalAccessor actual = formatter.parse(text); in test_parse_instantNoZone_ZDT() [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 …]
|