Home
last modified time | relevance | path

Searched refs:text (Results 1 – 25 of 262) sorted by relevance

1234567891011

/libcore/ojluni/src/main/java/java/text/
DStringCharacterIterator.java41 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 …]
DBidi.java37 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 …]
DIcuIteratorWrapper.java42 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 …]
DCollator.java40 package java.text;
235 return new RuleBasedCollator((android.icu.text.RuleBasedCollator) in getInstance()
236 android.icu.text.Collator.getInstance(desiredLocale)); in getInstance()
326 return (value == android.icu.text.Collator.IDENTICAL) ? IDENTICAL : value; in getStrength()
346 newStrength = android.icu.text.Collator.IDENTICAL; in setStrength()
402 return android.icu.text.Collator.getAvailableLocales(); in getAvailableLocales()
409 return android.icu.text.Collator.CANONICAL_DECOMPOSITION; in decompositionMode_Java_ICU()
411 return android.icu.text.Collator.NO_DECOMPOSITION; in decompositionMode_Java_ICU()
419 case android.icu.text.Collator.NO_DECOMPOSITION: in decompositionMode_ICU_Java()
422 case android.icu.text.Collator.CANONICAL_DECOMPOSITION: in decompositionMode_ICU_Java()
[all …]
DAttributedString.java26 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 …]
DSimpleDateFormat.java40 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.*;
1719 public Date parse(String text, ParsePosition pos) { in parse() argument
1725 return parseInternal(text, pos); in parse()
1731 private Date parseInternal(String text, ParsePosition pos) in parseInternal() argument
1738 int textLength = text.length(); in parseInternal()
1754 if (start >= textLength || text.charAt(start) != (char)count) { in parseInternal()
[all …]
DCollationElementIterator.java40 package java.text;
115 private android.icu.text.CollationElementIterator icuIterator;
118 CollationElementIterator(android.icu.text.CollationElementIterator iterator) { in CollationElementIterator()
185 return android.icu.text.CollationElementIterator.primaryOrder(order); in primaryOrder()
195 return (short) android.icu.text.CollationElementIterator.secondaryOrder(order); in secondaryOrder()
205 return (short) android.icu.text.CollationElementIterator.tertiaryOrder(order); in tertiaryOrder()
/libcore/ojluni/annotations/hiddenapi/java/text/
DDateFormat.java40 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 …]
DNumberFormat.java40 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/
DDateFormat.annotated.java41 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/
DCollationElementIteratorTest.java18 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 …]
DSupport_DecimalFormat.java18 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 …]
DSupport_Format.java18 package org.apache.harmony.tests.java.text;
20 import java.text.AttributedCharacterIterator;
21 import java.text.FieldPosition;
22 import java.text.Format;
23 import java.text.AttributedCharacterIterator.Attribute;
31 protected String text; field in Support_Format
38 String text, Format.Field field, int begin, int end) { in t_FormatWithField() argument
46 if (text == null) { in t_FormatWithField()
47 assertEquals("Test " + count + ": incorrect formatted text", this.text, buffer.toString()); in t_FormatWithField()
49 assertEquals(text, buffer.toString()); in t_FormatWithField()
/libcore/benchmarks/src/benchmarks/regression/
DBreakIteratorBenchmark.java20 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/ojluni/annotations/sdk/nullability/java/text/
DDateFormat.annotated.java41 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 …]
DNumberFormat.annotated.java41 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/main/java/sun/util/locale/
DStringTokenIterator.java34 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/luni/src/test/java/libcore/libcore/icu/
DLocaleDataTest.java24 import android.icu.text.DateTimePatternGenerator;
26 import java.text.DateFormat;
27 import java.text.DateFormatSymbols;
28 import java.text.DecimalFormatSymbols;
29 import java.text.SimpleDateFormat;
199 android.icu.text.DateFormatSymbols icuDateFormatSymbols = in assertRootDataEqualsToTargetLocaleData()
200 android.icu.text.DateFormatSymbols.getInstance(targetLocale); in assertRootDataEqualsToTargetLocaleData()
202 android.icu.text.DecimalFormatSymbols icuDecimalFormatSymbols = in assertRootDataEqualsToTargetLocaleData()
203 android.icu.text.DecimalFormatSymbols.getInstance(targetLocale); in assertRootDataEqualsToTargetLocaleData()
213 android.icu.text.DateFormatSymbols.FORMAT, android.icu.text.DateFormatSymbols.WIDE)); in assertRootDataEqualsToTargetLocaleData()
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_DecimalFormat.java20 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/ojluni/src/main/java/java/time/format/
DDateTimeFormatter.java75 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/
DXmlSerializer.java290 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/luni/src/main/java/libcore/icu/
DLocaleData.java23 import android.icu.text.DateFormatSymbols;
24 import android.icu.text.DecimalFormat;
25 import android.icu.text.DecimalFormatSymbols;
26 import android.icu.text.NumberFormat;
27 import android.icu.text.NumberingSystem;
32 import com.android.icu.text.ExtendedDecimalFormatSymbols;
37 import java.text.DateFormat;
417 android.icu.text.DateFormat.NONE, android.icu.text.DateFormat.FULL); in initializeDateTimePatterns()
419 android.icu.text.DateFormat.NONE, android.icu.text.DateFormat.LONG); in initializeDateTimePatterns()
421 android.icu.text.DateFormat.NONE, android.icu.text.DateFormat. MEDIUM); in initializeDateTimePatterns()
[all …]
/libcore/ojluni/src/main/java/java/awt/font/
DNumericShaper.java1100 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/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeParsing.java137 …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/
DLineNumberReaderTest.java31 …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 …]

1234567891011