/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; 43 String text = "abc"; in testGetOffset() local 44 CollationElementIterator iterator = coll.getCollationElementIterator(text); in testGetOffset() 49 while (offset != text.length()) { in testGetOffset() 57 String text = "abc"; in testNext() local 58 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 …]
|
D | Support_Format.java | 18 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()
|
D | RuleBasedCollatorTest.java | 18 package org.apache.harmony.tests.java.text; 20 import java.text.CharacterIterator; 21 import java.text.CollationElementIterator; 22 import java.text.CollationKey; 23 import java.text.Collator; 24 import java.text.ParseException; 25 import java.text.RuleBasedCollator; 26 import java.text.StringCharacterIterator; 152 String text = "cha"; in testGetCollationElementIteratorCharacterIterator() local 153 StringCharacterIterator source = new StringCharacterIterator(text); in testGetCollationElementIteratorCharacterIterator() [all …]
|
D | ParseExceptionTest.java | 17 package org.apache.harmony.tests.java.text; 19 import java.text.DateFormat; 20 import java.text.ParseException;
|
D | CollationKeyTest.java | 17 package org.apache.harmony.tests.java.text; 19 import java.text.CollationKey; 20 import java.text.Collator; 21 import java.text.ParseException; 22 import java.text.RuleBasedCollator;
|
/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 …]
|
D | Support_Format.java | 20 import java.text.AttributedCharacterIterator; 21 import java.text.FieldPosition; 22 import java.text.Format; 23 import java.text.AttributedCharacterIterator.Attribute; 30 protected String text; field in Support_Format 37 String text, Format.Field field, int begin, int end) { in t_FormatWithField() argument 45 if (text == null) { in t_FormatWithField() 47 this.text, buffer.toString()); in t_FormatWithField() 49 assertEquals("Test " + count + ": incorrect formatted text", text, in t_FormatWithField()
|
/libcore/luni/src/main/java/java/awt/font/ |
D | NumericShaper.java | 665 public void shape(char[] text, int start, int count, int context) { in shape() argument 667 contextualShape(text, start, count, getIndexFromRange(context)); in shape() 669 nonContextualShape(text, start, count); in shape() 681 public void shape(char[] text, int start, int count) { in shape() argument 683 contextualShape(text, start, count, fDefaultContextIndex); in shape() 685 nonContextualShape(text, start, count); in shape() 700 private void contextualShape(char[] text, int start, int count, in contextualShape() argument 713 if (minDigit <= text[ind] && text[ind] <= maxDigit){ in contextualShape() 714 if (currIndex != INDEX_ETHIOPIC || text[ind] != '0'){ in contextualShape() 715 text[ind] = (char)(digitsLowRanges[currIndex] + text[ind]); in contextualShape() [all …]
|
/libcore/luni/src/main/java/java/util/regex/ |
D | MatchResultImpl.java | 31 private String text; field in MatchResultImpl 40 MatchResultImpl(String text, int[] offsets) { in MatchResultImpl() argument 41 this.text = text; in MatchResultImpl() 54 return text.substring(start(), end()); in group() 63 return text.substring(from, to); in group()
|
/libcore/luni/src/main/java/java/text/ |
D | Bidi.java | 18 package java.text; 120 char[] text = new char[length + 1]; // One more char for AttributedCharacterIterator.DONE in Bidi() local 123 text[0] = paragraph.first(); in Bidi() 153 text[i] = paragraph.next(); in Bidi() 158 text[i] = paragraph.next(); in Bidi() 166 ((NumericShaper) numericShaper).shape(text, 0, length); in Bidi() 171 bidi = createUBiDi(text, 0, embeddings, 0, length, flags); in Bidi() 211 public Bidi(char[] text, int textStart, byte[] embeddings, int embStart, in Bidi() argument 214 if (text == null || text.length - textStart < paragraphLength) { in Bidi() 236 bidi = createUBiDi(text, textStart, embeddings, embStart, paragraphLength, flags); in Bidi() [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/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;
|
D | OldCollationKeyTest.java | 17 package libcore.java.text; 19 import java.text.CollationKey; 20 import java.text.Collator; 21 import java.text.ParseException; 22 import java.text.RuleBasedCollator;
|
D | AttributedCharacterIteratorAttributeTest.java | 17 package libcore.java.text; 21 import java.text.AttributedCharacterIterator; 22 import java.text.DateFormat; 23 import java.text.NumberFormat;
|
D | CollatorTest.java | 17 package libcore.java.text; 19 import java.text.CharacterIterator; 20 import java.text.CollationElementIterator; 21 import java.text.Collator; 22 import java.text.ParseException; 23 import java.text.RuleBasedCollator; 24 import java.text.StringCharacterIterator;
|
/libcore/luni/src/main/java/libcore/icu/ |
D | NativeBreakIterator.java | 19 import java.text.CharacterIterator; 20 import java.text.StringCharacterIterator; 168 private static synchronized native void setTextImpl(long address, String text); in setTextImpl() argument 169 private static synchronized native int precedingImpl(long address, String text, int offset); in precedingImpl() argument 170 … private static synchronized native boolean isBoundaryImpl(long address, String text, int offset); in isBoundaryImpl() argument 171 private static synchronized native int nextImpl(long address, String text, int n); in nextImpl() argument 172 private static synchronized native int previousImpl(long address, String text); in previousImpl() argument 173 private static synchronized native int currentImpl(long address, String text); in currentImpl() argument 174 private static synchronized native int firstImpl(long address, String text); in firstImpl() argument 175 private static synchronized native int followingImpl(long address, String text, int offset); in followingImpl() argument [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 …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldLineNumberReaderTest.java | 27 …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 OldLineNumberReaderTest 32 lnr = new LineNumberReader(new StringReader(text)); in test_markI() 56 lnr = new LineNumberReader(new StringReader(text)); in test_read() 78 lnr = new LineNumberReader(new StringReader(text)); in test_read$CII() 96 lnr = new LineNumberReader(new StringReader(text)); in test_read$CII_Exception() 122 lnr = new LineNumberReader(new StringReader(text)); in test_readLine() 141 lnr = new LineNumberReader(new StringReader(text)); in test_reset() 162 lnr = new LineNumberReader(new StringReader(text)); in test_skipJ() 169 text.substring(80, 180).equals(new String(c, 0, c.length))); in test_skipJ()
|
/libcore/luni/src/main/java/java/util/ |
D | Date.java | 24 import java.text.DateFormat; 25 import java.text.DateFormatSymbols; 26 import java.text.SimpleDateFormat; 482 String text = buffer.toString().toUpperCase(Locale.US); in parse() local 484 if (text.length() == 1) { in parse() 487 if (text.equals("AM")) { in parse() 493 } else if (text.equals("PM")) { in parse() 505 if (parse(text, weekdays) != -1) {/* empty */ in parse() 506 } else if (month == -1 && (month = parse(text, months)) != -1) {/* empty */ in parse() 507 } else if (text.equals("GMT") || text.equals("UT") || text.equals("UTC")) { in parse() [all …]
|
/libcore/luni/src/test/java/libcore/xml/ |
D | SimpleParserTest.java | 52 private StringBuffer text; field in SimpleParserTest 70 text = new StringBuffer(); in setUp() 83 text = null; in tearDown() 90 if (text.length() != 0) { 91 text.append(","); 93 text.append(s); 163 assertEquals("Some text here,some more here...", text.toString()); in testWorkingFile1() 191 assertEquals("Some text here,some more here...", text.toString()); in testWorkingFile2() 200 final StringBuilder text = new StringBuilder(); in testEntityResolver() local 205 if (text.length() != 0) { in testEntityResolver() [all …]
|
D | KxmlSerializerTest.java | 73 serializer.text("5'8\", 5 < 6 & 7 > 3!"); in testWriteSpecialCharactersInText() 107 serializer.text("c\ud83d\ude4ad"); in testSpeakNoEvilMonkeys() 120 Text text = (Text) root.getFirstChild(); in testSpeakNoEvilMonkeys() local 121 assertEquals("c\ud83d\ude4ade\ud83d\ude4af", text.getNodeValue()); in testSpeakNoEvilMonkeys() 135 serializer.text("c\ud83d\u0040d"); in testBadSurrogates() 153 serializer.text("a" + s + "b"); in testInvalidCharactersInText() 156 serializer.text("a" + s + "b"); in testInvalidCharactersInText() 213 String text = ""; in testCdataWithTerminatorInside() local 215 text += children.item(i).getNodeValue(); in testCdataWithTerminatorInside() 217 assertEquals("a]]>b", text); in testCdataWithTerminatorInside()
|
D | XmlPullParserFactoryTest.java | 198 public XmlSerializer text(String text) throws IOException { in text() method in XmlPullParserFactoryTest.XmlSerializerStub 202 public XmlSerializer text(char[] buf, int start, int len) throws IOException { in text() method in XmlPullParserFactoryTest.XmlSerializerStub 206 public void cdsect(String text) throws IOException { in cdsect() argument 209 public void entityRef(String text) throws IOException { in entityRef() argument 212 public void processingInstruction(String text) throws IOException { in processingInstruction() argument 215 public void comment(String text) throws IOException { in comment() argument 218 public void docdecl(String text) throws IOException { in docdecl() argument 221 public void ignorableWhitespace(String text) throws IOException { in ignorableWhitespace() argument
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | EqualsHashCodeBenchmark.java | 27 @Override Object newInstance(String text) throws Exception { in URI() argument 28 return new URI(text); in URI() 32 @Override Object newInstance(String text) throws Exception { in URL() argument 33 return new URL(text); in URL() 36 abstract Object newInstance(String text) throws Exception; in newInstance() argument
|
/libcore/luni/src/main/java/libcore/net/http/ |
D | HttpDate.java | 19 import java.text.DateFormat; 20 import java.text.ParseException; 21 import java.text.SimpleDateFormat;
|