Searched refs:text (Results 1 - 25 of 232) sorted by relevance

12345678910

/libcore/ojluni/src/main/java/java/text/
H A DStringCharacterIterator.java41 package java.text;
54 private String text; field in class:StringCharacterIterator
63 * @param text the {@code String} to be iterated over
65 public StringCharacterIterator(String text) argument
67 this(text, 0);
73 * @param text The String to be iterated over
76 public StringCharacterIterator(String text, int pos) argument
78 this(text, 0, text.length(), pos);
85 * @param text Th
90 StringCharacterIterator(String text, int begin, int end, int pos) argument
115 setText(String text) argument
[all...]
H A DNormalizer.java39 package java.text;
43 * text into an equivalent composed or decomposed form, allowing for easier
44 * sorting and searching of text.
65 * are searching or comparing text, you must ensure that these two sequences are
91 * text into the canonical composed and decomposed forms as shown in the first
102 * character encodings the Unicode text needs to be normalized to NFC.
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
[all...]
H A DCollationElementIterator.java40 package java.text;
110 public final static int NULLORDER = android.icu.text.CollationElementIterator.NULLORDER;
112 private android.icu.text.CollationElementIterator icuIterator;
114 CollationElementIterator(android.icu.text.CollationElementIterator iterator) {
177 return android.icu.text.CollationElementIterator.primaryOrder(order);
186 return (short) android.icu.text.CollationElementIterator.secondaryOrder(order);
195 return (short) android.icu.text.CollationElementIterator.tertiaryOrder(order);
204 * in the text. If that position is in the middle of a contracting
210 * @param newOffset The new character offset into the original text.
220 * Returns the character offset in the original text correspondin
[all...]
H A DIcuIteratorWrapper.java42 package java.text;
69 * iterator uses a longest-possible-match algorithm when matching text to regular
109 * before the *?.  For example, if you have "xxyxyyyxyxyxxyxyxyy" in the text,
121 * <td width="94%">Specifies where the break position should go if text matches this
126 * break position at the end of the matching text.</td>
153 * the corresponding character(s) in the text exactly.</td>
212 private android.icu.text.BreakIterator wrapped;
218 IcuIteratorWrapper(android.icu.text.BreakIterator iterator) {
230 result.wrapped = (android.icu.text.BreakIterator) wrapped.clone();
236 * rules, and iterate over the same text
320 checkOffset(int offset, CharacterIterator text) argument
[all...]
H A DBidi.java37 package java.text;
42 * A Bidi object provides information on the bidirectional reordering of the text
44 * or Hebrew text. These languages are inherently mixed directional, as they order
45 * numbers from left-to-right while ordering most other text from right-to-left.
47 * Once created, a Bidi object can be queried to see if the text it represents is
49 * this text is relatively easy to process.
51 * If there are multiple runs of text, information about the runs can be accessed
55 * 0 represents left-to-right text, while level 1 represents right-to-left text, and
56 * level 2 represents left-to-right text embedde
165 Bidi(char[] text, int textStart, byte[] embeddings, int embStart, int paragraphLength, int flags) argument
351 requiresBidi(char[] text, int start, int limit) argument
[all...]
H A DCollator.java40 package java.text;
49 * searching and sorting routines for natural language text.
131 * @see java.text.Collator#setStrength
132 * @see java.text.Collator#getStrength
141 * @see java.text.Collator#setStrength
142 * @see java.text.Collator#getStrength
150 * @see java.text.Collator#setStrength
151 * @see java.text.Collator#getStrength
173 * @see java.text.Collator#getDecomposition
174 * @see java.text
[all...]
H A DAnnotation.java26 package java.text;
29 * An Annotation object is used as a wrapper for a text attribute value if
32 * <li>The text range that the attribute is applied to is critical to the
34 * of the text range that it applies to, and, if two adjacent text ranges have
37 * <li>The attribute or its value usually do no longer apply if the underlying text is
44 * When the text is changed, the grammatical information typically becomes invalid.
49 * adjacent text runs don't get merged even if the attribute values are equal,
50 * and indicates to text containers that the attribute should be discarded if
51 * the underlying text i
[all...]
H A DCharacterIterator.java41 package java.text;
45 * This interface defines a protocol for bidirectional iteration over text.
52 * handling of zero-length text ranges and for historical reasons.
64 * Traverse the text from start to finish
73 * Traverse the text backwards, from end to start
82 * Traverse both forward and backward from a given position in the text.
110 * or the beginning of the text. The value is '\\uFFFF', the "not a
118 * @return the first character in the text, or DONE if the text is empty
124 * Sets the position to getEndIndex()-1 (getEndIndex() if the text i
[all...]
H A DParseException.java39 package java.text;
45 * @see java.text.Format
46 * @see java.text.FieldPosition
/libcore/benchmarks/src/benchmarks/regression/
H A DBreakIteratorBenchmark.java20 import java.text.BreakIterator;
40 final String text; field in class:BreakIteratorBenchmark.Text
42 Text(Locale locale, String text) { argument
43 this.text = text;
48 @Param private Text text; field in class:BreakIteratorBenchmark
52 BreakIterator it = BreakIterator.getLineInstance(text.locale);
53 it.setText(text.text);
62 android.icu.text
[all...]
/libcore/ojluni/src/main/java/java/util/logging/
H A DErrorManager.java90 String text = "java.util.logging.ErrorManager: " + code;
92 text = text + ": " + msg;
94 System.err.println(text);
/libcore/ojluni/src/main/java/sun/util/locale/
H A DStringTokenIterator.java34 private String text; field in class:StringTokenIterator
43 public StringTokenIterator(String text, String dlms) { argument
44 this.text = text;
78 token = text.substring(start, end);
88 return (end < text.length());
92 if (offset > text.length()) {
97 token = text.substring(start, end);
102 public StringTokenIterator setText(String text) { argument
103 this.text
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A 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";
47 CollationElementIterator iterator = coll.getCollationElementIterator(text);
52 while (offset != text.length()) {
60 String text = "abc";
61 CollationElementIterator iterator = coll.getCollationElementIterator(text);
[all...]
H A DMessageFormatFieldTest.java17 package org.apache.harmony.tests.java.text;
21 * @tests java.text.MessageFormat$Field#Field(java.lang.String)
28 * @tests java.text.MessageFormat$Field#readResolve()
H A DNumberFormatFieldTest.java17 package org.apache.harmony.tests.java.text;
21 * @tests java.text.NumberFormat$Field#Field(java.lang.String)
28 * @tests java.text.NumberFormat$Field#readResolve()
H A 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";
45 t_FormatWithField(0, format, number, text, NumberFormat.Field.CURRENCY, 0, 1);
46 t_FormatWithField(1, format, number, text, NumberFormat.Field.INTEGER, 1, 11);
47 t_FormatWithField(2, format, number, text, NumberFormat.Field.GROUPING_SEPARATOR, 3, 4);
48 t_FormatWithField(3, format, number, text, NumberFormat.Field.DECIMAL_SEPARATOR, 11, 12);
49 t_FormatWithField(4, format, number, text, NumberFormat.Field.FRACTION, 12, 14);
51 // test fields that are not included in the formatted text
[all...]
/libcore/luni/src/test/java/libcore/java/text/
H A DOldFormatFieldTest.java18 package libcore.java.text;
20 import java.text.Format;
H A DAttributedCharacterIteratorAttributeTest.java17 package libcore.java.text;
21 import java.text.AttributedCharacterIterator;
22 import java.text.DateFormat;
23 import java.text.NumberFormat;
H A DOldFormatTest.java18 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;
50 * java.text.Format#clone() Test of method java.text.Format#clone().
/libcore/luni/src/main/java/libcore/icu/
H A DCollationKeyICU.java13 import java.text.CollationKey;
16 * A concrete implementation of the abstract java.text.CollationKey.
22 private final android.icu.text.CollationKey key;
24 public CollationKeyICU(String source, android.icu.text.CollationKey key) {
31 final android.icu.text.CollationKey otherKey;
35 otherKey = new android.icu.text.CollationKey(other.getSourceString(),
H A DRelativeDateTimeFormatter.java22 import android.icu.text.DisplayContext;
55 extends BasicLruCache<String, android.icu.text.RelativeDateTimeFormatter> {
120 android.icu.text.RelativeDateTimeFormatter.Style style;
122 style = android.icu.text.RelativeDateTimeFormatter.Style.SHORT;
124 style = android.icu.text.RelativeDateTimeFormatter.Style.LONG;
127 android.icu.text.RelativeDateTimeFormatter.Direction direction;
129 direction = android.icu.text.RelativeDateTimeFormatter.Direction.LAST;
131 direction = android.icu.text.RelativeDateTimeFormatter.Direction.NEXT;
139 android.icu.text.RelativeDateTimeFormatter.RelativeUnit unit;
140 android.icu.text
[all...]
/libcore/xml/src/main/java/org/xmlpull/v1/
H A DXmlSerializer.java9 * This interface abstracts away if serialized XML is XML 1.0 compatible text or
288 * Writes text, where special XML chars are escaped automatically
290 XmlSerializer text (String text) argument
294 * Writes text, where special XML chars are escaped automatically
296 XmlSerializer text (char [] buf, int start, int len) method in interface:XmlSerializer
299 void cdsect (String text) argument
301 void entityRef (String text) throws IOException, argument
303 void processingInstruction (String text) argument
305 void comment (String text) argument
307 docdecl(String text) argument
309 ignorableWhitespace(String text) argument
[all...]
/libcore/support/src/test/java/tests/support/
H A DSupport_DecimalFormat.java20 import java.text.DecimalFormat;
21 import java.text.NumberFormat;
45 String text = "$10,000,000.76";
47 t_FormatWithField(0, format, number, text, NumberFormat.Field.CURRENCY,
49 t_FormatWithField(1, format, number, text, NumberFormat.Field.INTEGER,
51 t_FormatWithField(2, format, number, text,
53 t_FormatWithField(3, format, number, text,
55 t_FormatWithField(4, format, number, text, NumberFormat.Field.FRACTION,
58 // test fields that are not included in the formatted text
59 t_FormatWithField(5, format, number, text, NumberForma
[all...]
/libcore/luni/src/test/java/libcore/java/io/
H A DOldLineNumberReaderTest.java27 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\n23\n24\n25\n26\n27\n28\n29\n30\n31\n32\n33\n34\n35\n36\n37\n38\n39\n40\n41\n42\n43\n44\n45\n46\n47\n48\n49\n50\n51\n52\n53\n54\n55\n56\n57\n58\n59\n60\n61\n62\n63\n64\n65\n66\n67\n68\n69\n70\n71\n72\n73\n74\n75\n76\n77\n78\n79\n80\n81\n82\n83\n84\n85\n86\n87\n88\n89\n90\n91\n92\n93\n94\n95\n96\n97\n98\n99\n100\n101\n102\n103\n104\n105\n106\n107\n108\n109\n110\n111\n112\n113\n114\n115\n116\n117\n118\n119\n120\n121\n122\n123\n124\n125\n126\n127\n128\n129\n130\n131\n132\n133\n134\n135\n136\n137\n138\n139\n140\n141\n142\n143\n144\n145\n146\n147\n148\n149\n150\n151\n152\n153\n154\n155\n156\n157\n158\n159\n160\n161\n162\n163\n164\n165\n166\n167\n168\n169\n170\n171\n172\n173\n174\n175\n176\n177\n178\n179\n180\n181\n182\n183\n184\n185\n186\n187\n188\n189\n190\n191\n192\n193\n194\n195\n196\n197\n198\n199\n200\n201\n202\n203\n204\n205\n206\n207\n208\n209\n210\n211\n212\n213\n214\n215\n216\n217\n218\n219\n220\n221\n222\n223\n224\n225\n226\n227\n228\n229\n230\n231\n232\n233\n234\n235\n236\n237\n238\n239\n240\n241\n242\n243\n244\n245\n246\n247\n248\n249\n250\n251\n252\n253\n254\n255\n256\n257\n258\n259\n260\n261\n262\n263\n264\n265\n266\n267\n268\n269\n270\n271\n272\n273\n274\n275\n276\n277\n278\n279\n280\n281\n282\n283\n284\n285\n286\n287\n288\n289\n290\n291\n292\n293\n294\n295\n296\n297\n298\n299\n300\n301\n302\n303\n304\n305\n306\n307\n308\n309\n310\n311\n312\n313\n314\n315\n316\n317\n318\n319\n320\n321\n322\n323\n324\n325\n326\n327\n328\n329\n330\n331\n332\n333\n334\n335\n336\n337\n338\n339\n340\n341\n342\n343\n344\n345\n346\n347\n348\n349\n350\n351\n352\n353\n354\n355\n356\n357\n358\n359\n360\n361\n362\n363\n364\n365\n366\n367\n368\n369\n370\n371\n372\n373\n374\n375\n376\n377\n378\n379\n380\n381\n382\n383\n384\n385\n386\n387\n388\n389\n390\n391\n392\n393\n394\n395\n396\n397\n398\n399\n400\n401\n402\n403\n404\n405\n406\n407\n408\n409\n410\n411\n412\n413\n414\n415\n416\n417\n418\n419\n420\n421\n422\n423\n424\n425\n426\n427\n428\n429\n430\n431\n432\n433\n434\n435\n436\n437\n438\n439\n440\n441\n442\n443\n444\n445\n446\n447\n448\n449\n450\n451\n452\n453\n454\n455\n456\n457\n458\n459\n460\n461\n462\n463\n464\n465\n466\n467\n468\n469\n470\n471\n472\n473\n474\n475\n476\n477\n478\n479\n480\n481\n482\n483\n484\n485\n486\n487\n488\n489\n490\n491\n492\n493\n494\n495\n496\n497\n498\n499\n500\n"; field in class:OldLineNumberReaderTest
32 lnr = new LineNumberReader(new StringReader(text));
56 lnr = new LineNumberReader(new StringReader(text));
78 lnr = new LineNumberReader(new StringReader(text));
96 lnr = new LineNumberReader(new StringReader(text));
122 lnr = new LineNumberReader(new StringReader(text));
141 lnr = new LineNumberReader(new StringReader(text));
162 lnr = new LineNumberReader(new StringReader(text));
169 text.substring(80, 180).equals(new String(c, 0, c.length)));
/libcore/ojluni/src/test/java/time/tck/java/time/format/
H A DTCKChronoPrinterParser.java64 import java.text.ParsePosition;
121 public void test_parseValid_caseSensitive(String text, Chronology expected) { argument
123 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos);
130 public void test_parseValid_caseSensitive_lowercaseRejected(String text, Chronology expected) { argument
132 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text.toLowerCase(Locale.ENGLISH), pos);
139 public void test_parseValid_caseInsensitive(String text, Chronology expected) { argument
141 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text.toLowerCase(Locale.ENGLISH), pos);
159 public void test_parseInvalid(String text) { argument
161 TemporalAccessor parsed = builder.toFormatter().parseUnresolved(text, pos);

Completed in 487 milliseconds

12345678910