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

/libcore/luni/src/test/java/libcore/java/text/
H A DOldAttributedCharacterIteratorTest.java20 import java.text.AttributedCharacterIterator;
29 AttributedCharacterIterator it;
34 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, "a", 2,
36 AttributedCharacterIterator it = as.getIterator();
37 HashSet<AttributedCharacterIterator.Attribute> attr =
38 new HashSet<AttributedCharacterIterator.Attribute>();
39 attr.add(AttributedCharacterIterator.Attribute.LANGUAGE);
44 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, null,
50 attr.add(AttributedCharacterIterator.Attribute.READING);
57 AttributedCharacterIterator i
[all...]
H A DOldAttributedStringTest.java19 import java.text.AttributedCharacterIterator;
31 AttributedCharacterIterator it = attrString.getIterator();
43 AttributedCharacterIterator iter = attrString.getIterator();
51 AttributedCharacterIterator iter = attrString.getIterator();
57 * java.text.AttributedString#AttributedString(AttributedCharacterIterator,
59 * java.text.AttributedString#AttributedString(AttributedCharacterIterator,
94 AttributedCharacterIterator iter = attrString.getIterator();
97 attrString2 = new AttributedString(iter, 2, 7, new AttributedCharacterIterator.Attribute[] {});
105 * java.text.AttributedString#AttributedString(AttributedCharacterIterator,
106 * int, int, AttributedCharacterIterator
[all...]
H A DAttributedCharacterIteratorAttributeTest.java21 import java.text.AttributedCharacterIterator;
28 * AttributedCharacterIterator.Attribute is used like the base enum type and
34 assertSameReserialized(AttributedCharacterIterator.Attribute.LANGUAGE);
41 AttributedCharacterIterator.Attribute a = new CustomAttribute();
53 private static class CustomAttribute extends AttributedCharacterIterator.Attribute {
H A DOldAttributedCharacterIteratorAttributeTest.java25 import java.text.AttributedCharacterIterator;
32 AttributedCharacterIterator.Attribute {
52 AttributedCharacterIterator.Attribute {
61 * java.text.AttributedCharacterIterator.Attribute#AttributedCharacterIterator.Attribute(java.lang.String)
63 * java.text.AttributedCharacterIterator.Attribute#AttributedCharacterIterator.Attribute(java.lang.String).
74 * java.text.AttributedCharacterIterator.Attribute#equals(java.lang.Object)
76 * java.text.AttributedCharacterIterator.Attribute#equals(java.lang.Object).
92 AttributedCharacterIterator
[all...]
H A DOldFormatTest.java20 import java.text.AttributedCharacterIterator;
68 AttributedCharacterIterator aci = mf.formatToCharacterIterator("Test 123 Test");
H A DOldBidiTest.java20 import java.text.AttributedCharacterIterator;
/libcore/ojluni/src/main/java/java/text/
H A DFormat.java183 * Formats an Object producing an <code>AttributedCharacterIterator</code>.
184 * You can use the returned <code>AttributedCharacterIterator</code>
188 * Each attribute key of the AttributedCharacterIterator will be of type
191 * <code>AttributedCharacterIterator</code>, but typically the attribute
194 * <code>AttributedCharacterIterator</code> with no attributes. Subclasses
196 * <code>AttributedCharacterIterator</code> with meaningful attributes.
202 * @return AttributedCharacterIterator describing the formatted value.
205 public AttributedCharacterIterator formatToCharacterIterator(Object obj) {
271 * Creates an <code>AttributedCharacterIterator</code> for the String
274 * @param s String to create AttributedCharacterIterator fro
[all...]
H A DCharacterIteratorFieldDelegate.java31 * into a resulting <code>AttributedCharacterIterator</code>. The resulting
32 * <code>AttributedCharacterIterator</code> can be retrieved by way of
101 * Returns an <code>AttributedCharacterIterator</code> that can be used
106 public AttributedCharacterIterator getIterator(String string) {
107 // Add the last AttributedCharacterIterator if necessary
115 AttributedCharacterIterator iterators[] = new
116 AttributedCharacterIterator[iCount];
H A DAttributedCharacterIterator.java35 * An {@code AttributedCharacterIterator} allows iteration through both text and
69 * Attribute keys are instances of {@link AttributedCharacterIterator.Attribute} and its
72 * @see AttributedCharacterIterator.Attribute
79 public interface AttributedCharacterIterator extends CharacterIterator { interface in inherits:CharacterIterator
83 * keys are used in {@code AttributedCharacterIterator} and {@code AttributedString}.
84 * @see AttributedCharacterIterator
H A DAttributedString.java29 import java.text.AttributedCharacterIterator.Attribute;
34 * reader wants to access attributed text through the AttributedCharacterIterator
45 * @see AttributedCharacterIterator
75 AttributedString(AttributedCharacterIterator[] iterators) {
98 AttributedCharacterIterator iterator = iterators[counter];
175 * text represented by AttributedCharacterIterator.
179 public AttributedString(AttributedCharacterIterator text) {
189 * AttributedCharacterIterator. If the given range produces an
203 public AttributedString(AttributedCharacterIterator text,
212 * AttributedCharacterIterator
[all...]
H A DMessageFormat.java875 * <code>AttributedCharacterIterator</code>.
876 * You can use the returned <code>AttributedCharacterIterator</code>
880 * The text of the returned <code>AttributedCharacterIterator</code> is
886 * In addition, the <code>AttributedCharacterIterator</code> contains at
895 * placed in the resulting <code>AttributedCharacterIterator</code>.
900 * @return AttributedCharacterIterator describing the formatted value.
907 public AttributedCharacterIterator formatToCharacterIterator(Object arguments) {
909 ArrayList<AttributedCharacterIterator> iterators = new ArrayList<>();
921 new AttributedCharacterIterator[iterators.size()]));
1130 * <code>AttributedCharacterIterator</cod
[all...]
H A DBidi.java140 public Bidi(AttributedCharacterIterator paragraph) {
H A DDecimalFormat.java517 * Converts the Attribute that ICU returns in its AttributedCharacterIterator
519 * @param icuAttribute The AttributedCharacterIterator.Attribute field.
522 private static Field toJavaFieldAttribute(AttributedCharacterIterator.Attribute icuAttribute) {
685 * Formats an Object producing an <code>AttributedCharacterIterator</code>.
686 * You can use the returned <code>AttributedCharacterIterator</code>
690 * Each attribute key of the AttributedCharacterIterator will be of type
700 * @return AttributedCharacterIterator describing the formatted value.
704 public AttributedCharacterIterator formatToCharacterIterator(Object obj) {
712 AttributedCharacterIterator original = icuDecimalFormat.formatToCharacterIterator(obj);
728 for (AttributedCharacterIterator
[all...]
H A DSimpleDateFormat.java1012 * Formats an Object producing an <code>AttributedCharacterIterator</code>.
1013 * You can use the returned <code>AttributedCharacterIterator</code>
1017 * Each attribute key of the AttributedCharacterIterator will be of type
1025 * @return AttributedCharacterIterator describing the formatted value.
1029 public AttributedCharacterIterator formatToCharacterIterator(Object obj) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DAttributedStringTest.java19 import java.text.AttributedCharacterIterator;
35 AttributedCharacterIterator it = attrString.getIterator();
45 * @tests java.text.AttributedString#AttributedString(AttributedCharacterIterator)
52 * @tests java.text.AttributedString#AttributedString(AttributedCharacterIterator, int, int)
59 private class testAttributedCharacterIterator implements AttributedCharacterIterator {
63 public Object getAttribute(AttributedCharacterIterator.Attribute p) {
72 public int getRunLimit(AttributedCharacterIterator.Attribute p) {
81 public int getRunStart(AttributedCharacterIterator.Attribute p) {
121 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, "a", 2,
123 AttributedCharacterIterator i
[all...]
H A DAttributedCharacterIteratorTest.java20 import java.text.AttributedCharacterIterator;
27 * @tests java.text.AttributedCharacterIterator#current()
32 AttributedCharacterIterator it = attrString.getIterator();
47 * @tests java.text.AttributedCharacterIterator#first()
52 AttributedCharacterIterator it = attrString.getIterator();
63 * @tests java.text.AttributedCharacterIterator#getBeginIndex()
68 AttributedCharacterIterator it = attrString.getIterator(null, 2, 6);
73 * @tests java.text.AttributedCharacterIterator#getEndIndex()
78 AttributedCharacterIterator it = attrString.getIterator(null, 2, 6);
83 * @tests java.text.AttributedCharacterIterator#getInde
[all...]
H A DAttributedCharacterIteratorAttributeTest.java20 import java.text.AttributedCharacterIterator;
21 import java.text.AttributedCharacterIterator.Attribute;
34 * @tests java.text.AttributedCharacterIterator$Attribute()
46 * @tests java.text.AttributedCharacterIterator.Attribute#equals(Object)
67 * @tests java.text.AttributedCharacterIterator$Attribute#readResolve()
78 AttributedCharacterIterator.Attribute dattribute, dattribute2;
82 dattribute = AttributedCharacterIterator.Attribute.LANGUAGE;
97 dattribute2 = (AttributedCharacterIterator.Attribute) in.readObject();
119 * @tests java.text.AttributedCharacterIterator$Attribute#LANGUAGE
120 * java.text.AttributedCharacterIterator
[all...]
H A DSupport_Format.java20 import java.text.AttributedCharacterIterator;
23 import java.text.AttributedCharacterIterator.Attribute;
75 * AttributedCharacterIterator, and puts them in a vector
81 protected static Vector<FieldContainer> findFields(AttributedCharacterIterator iterator) {
89 AttributedCharacterIterator.Attribute attribute = it.next();
H A DDecimalFormatTest.java24 import java.text.AttributedCharacterIterator;
55 AttributedCharacterIterator iterator = new DecimalFormat().formatToCharacterIterator(
2013 AttributedCharacterIterator iterator;
2087 AttributedCharacterIterator iterator;
/libcore/support/src/test/java/tests/support/
H A DSupport_Format.java20 import java.text.AttributedCharacterIterator;
23 import java.text.AttributedCharacterIterator.Attribute;
77 * AttributedCharacterIterator, and puts them in a vector
84 protected static Vector<FieldContainer> findFields(AttributedCharacterIterator iterator) {
92 AttributedCharacterIterator.Attribute attribute = it.next();
108 AttributedCharacterIterator.Attribute attribute;
114 AttributedCharacterIterator.Attribute attribute) {
/libcore/benchmarks/src/benchmarks/regression/
H A DBidiBenchmark.java20 import java.text.AttributedCharacterIterator;
26 private static final AttributedCharacterIterator charIter =
/libcore/ojluni/src/main/java/java/awt/font/
H A DTextAttribute.java44 import java.text.AttributedCharacterIterator.Attribute;
93 * @see java.text.AttributedCharacterIterator
260 // {@link java.text.AttributedCharacterIterator AttributedCharacterIterator},
632 * <code>AttributedCharacterIterator</code> work in terms of
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DSerializationStressTest3.java1431 objToSave = java.text.AttributedCharacterIterator.Attribute.INPUT_METHOD_SEGMENT;
1438 java.text.AttributedCharacterIterator.Attribute.INPUT_METHOD_SEGMENT == objLoaded);
1461 objToSave = java.text.AttributedCharacterIterator.Attribute.LANGUAGE;
1468 java.text.AttributedCharacterIterator.Attribute.LANGUAGE == objLoaded);
1491 objToSave = java.text.AttributedCharacterIterator.Attribute.READING;
1498 java.text.AttributedCharacterIterator.Attribute.READING == objLoaded);
H A DSerializationStressTest4.java1346 // java.io.ObjectOutputStream.writeObject(java.text.AttributedCharacterIterator.Attribute)
1352 objToSave = java.text.AttributedCharacterIterator.Attribute.LANGUAGE;
/libcore/
H A Dopenjdk_java_files.mk741 ojluni/src/main/java/java/text/AttributedCharacterIterator.java \

Completed in 255 milliseconds