Home
last modified time | relevance | path

Searched refs:CharSequence (Results 1 – 25 of 36) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStringBufferTest.java116 new StringBuffer((CharSequence) null); in test_constructorLjava_lang_CharSequence()
121 …assertEquals("Assert 1: must equal 'abc'.", "abc", new StringBuffer((CharSequence) "abc").toString… in test_constructorLjava_lang_CharSequence()
140 assertSame(sb, sb.append((CharSequence) "ab")); in test_appendLjava_lang_CharSequence()
143 assertSame(sb, sb.append((CharSequence) "cd")); in test_appendLjava_lang_CharSequence()
146 assertSame(sb, sb.append((CharSequence) null)); in test_appendLjava_lang_CharSequence()
156 assertSame(sb, sb.append((CharSequence) "ab", 0, 2)); in test_appendLjava_lang_CharSequenceII()
159 assertSame(sb, sb.append((CharSequence) "cd", 0, 2)); in test_appendLjava_lang_CharSequenceII()
162 assertSame(sb, sb.append((CharSequence) "abcd", 0, 2)); in test_appendLjava_lang_CharSequenceII()
165 assertSame(sb, sb.append((CharSequence) "abcd", 2, 4)); in test_appendLjava_lang_CharSequenceII()
168 assertSame(sb, sb.append((CharSequence) null, 0, 2)); in test_appendLjava_lang_CharSequenceII()
[all …]
DStringTest.java225 assertTrue(s.contentEquals((CharSequence) new StringBuffer("abc"))); in test_contentEqualsLjava_lang_CharSequence()
226 assertFalse(s.contentEquals((CharSequence) new StringBuffer("def"))); in test_contentEqualsLjava_lang_CharSequence()
227 assertFalse(s.contentEquals((CharSequence) new StringBuffer("ghij"))); in test_contentEqualsLjava_lang_CharSequence()
230 assertTrue(s.contentEquals((CharSequence) new StringBuffer("abc"))); in test_contentEqualsLjava_lang_CharSequence()
231 assertFalse(s.contentEquals((CharSequence) new StringBuffer("def"))); in test_contentEqualsLjava_lang_CharSequence()
232 assertFalse(s.contentEquals((CharSequence) new StringBuffer("ghij"))); in test_contentEqualsLjava_lang_CharSequence()
235 s.contentEquals((CharSequence) null); in test_contentEqualsLjava_lang_CharSequence()
264 assertTrue(s.contains((CharSequence) new StringBuffer("abc"))); in test_containsLjava_lang_CharSequence()
265 assertTrue(s.contains((CharSequence) new StringBuffer("def"))); in test_containsLjava_lang_CharSequence()
266 assertFalse(s.contains((CharSequence) new StringBuffer("ac"))); in test_containsLjava_lang_CharSequence()
[all …]
DStringBuilderTest.java62 StringBuilder sb = new StringBuilder((CharSequence) "fixture"); in test_ConstructorLjava_lang_CharSequence()
66 sb = new StringBuilder((CharSequence) new StringBuffer("fixture")); in test_ConstructorLjava_lang_CharSequence()
71 new StringBuilder((CharSequence) null); in test_ConstructorLjava_lang_CharSequence()
192 assertSame(sb, sb.append((CharSequence) "ab")); in test_appendLjava_lang_CharSequence()
195 assertSame(sb, sb.append((CharSequence) "cd")); in test_appendLjava_lang_CharSequence()
198 assertSame(sb, sb.append((CharSequence) null)); in test_appendLjava_lang_CharSequence()
208 assertSame(sb, sb.append((CharSequence) "ab", 0, 2)); in test_appendLjava_lang_CharSequenceII()
211 assertSame(sb, sb.append((CharSequence) "cd", 0, 2)); in test_appendLjava_lang_CharSequenceII()
214 assertSame(sb, sb.append((CharSequence) "abcd", 0, 2)); in test_appendLjava_lang_CharSequenceII()
217 assertSame(sb, sb.append((CharSequence) "abcd", 2, 4)); in test_appendLjava_lang_CharSequenceII()
[all …]
/libcore/luni/src/main/java/java/lang/
DCharSequence.java25 public interface CharSequence { interface
58 public CharSequence subSequence(int start, int end); in subSequence()
DAppendable.java61 Appendable append(CharSequence csq) throws IOException; in append()
86 Appendable append(CharSequence csq, int start, int end) throws IOException; in append()
DStringBuilder.java45 Appendable, CharSequence, Serializable {
80 public StringBuilder(CharSequence seq) { in StringBuilder()
284 public StringBuilder append(CharSequence csq) { in append()
310 public StringBuilder append(CharSequence csq, int start, int end) { in append()
586 public StringBuilder insert(int offset, CharSequence s) { in insert()
614 public StringBuilder insert(int offset, CharSequence s, int start, int end) { in insert()
DStringBuffer.java46 Appendable, Serializable, CharSequence {
97 public StringBuffer(CharSequence cs) { in StringBuffer()
294 public synchronized StringBuffer append(CharSequence s) { in append()
322 public synchronized StringBuffer append(CharSequence s, int start, int end) { in append()
621 public synchronized StringBuffer insert(int index, CharSequence s) { in insert()
649 public synchronized StringBuffer insert(int index, CharSequence s, in insert()
707 public synchronized CharSequence subSequence(int start, int end) { in subSequence()
/libcore/luni/src/main/java/java/text/
DNormalizer.java65 public static boolean isNormalized(CharSequence src, Form form) { in isNormalized()
77 public static String normalize(CharSequence src, Form form) { in normalize()
/libcore/luni/src/main/java/java/util/regex/
DPattern.java296 public Matcher matcher(CharSequence input) { in matcher()
328 public String[] split(CharSequence input, int limit) { in split()
335 public String[] split(CharSequence input) { in split()
423 public static boolean matches(String regularExpression, CharSequence input) { in matches()
DMatcher.java88 Matcher(Pattern pattern, CharSequence input) { in Matcher()
176 public Matcher reset(CharSequence input) { in reset()
196 private Matcher reset(CharSequence input, int start, int end) { in reset()
/libcore/luni/src/main/java/libcore/icu/
DNativeNormalizer.java22 public static boolean isNormalized(CharSequence src, Form form) { in isNormalized()
26 public static String normalize(CharSequence src, Form form) { in normalize()
/libcore/luni/src/main/java/java/util/
DFormatter.java1081 CharSequence substitution = transform(token, argument); in doFormat()
1092 private void outputCharSequence(CharSequence cs, int start, int end) { in outputCharSequence()
1407 private CharSequence transform(FormatToken token, Object argument) { in transform()
1443 CharSequence result; in transform()
1496 private CharSequence localizeDigits(CharSequence s) { in localizeDigits()
1514 private CharSequence insertGrouping(CharSequence s) { in insertGrouping()
1542 private CharSequence transformFromBoolean() { in transformFromBoolean()
1543 CharSequence result; in transformFromBoolean()
1554 private CharSequence transformFromHashCode() { in transformFromHashCode()
1555 CharSequence result; in transformFromHashCode()
[all …]
/libcore/luni/src/main/java/java/nio/
DCharBuffer.java39 Comparable<CharBuffer>, CharSequence, Appendable, Readable {
107 public static CharBuffer wrap(CharSequence chseq) { in wrap()
130 public static CharBuffer wrap(CharSequence cs, int start, int end) { in wrap()
669 public CharBuffer append(CharSequence csq) { in append()
696 public CharBuffer append(CharSequence csq, int start, int end) { in append()
700 CharSequence cs = csq.subSequence(start, end); in append()
DCharSequenceAdapter.java42 final CharSequence sequence;
44 CharSequenceAdapter(CharSequence chseq) { in CharSequenceAdapter()
/libcore/luni/src/main/java/java/io/
DWriter.java198 public Writer append(CharSequence csq) throws IOException { in append()
229 public Writer append(CharSequence csq, int start, int end) throws IOException { in append()
DStringWriter.java195 public StringWriter append(CharSequence csq) { in append()
225 public StringWriter append(CharSequence csq, int start, int end) { in append()
DCharArrayWriter.java260 public CharArrayWriter append(CharSequence csq) { in append()
292 public CharArrayWriter append(CharSequence csq, int start, int end) { in append()
DPrintStream.java625 public PrintStream append(CharSequence charSequence) { in append()
651 public PrintStream append(CharSequence charSequence, int start, int end) { in append()
DPrintWriter.java687 public PrintWriter append(CharSequence csq) { in append()
717 public PrintWriter append(CharSequence csq, int start, int end) { in append()
/libcore/support/src/test/java/libcore/java/io/
DNullPrintStream.java63 public PrintStream append(CharSequence csq) { return this; } in append()
64 public PrintStream append(CharSequence csq, int start, int end) { return this; } in append()
/libcore/benchmarks/src/benchmarks/
DDeepArrayOpsBenchmark.java77 array[i + 12] = new16ElementArray(CharSequence.class, String.class); in setUp()
78 array2[i + 12] = new16ElementArray(CharSequence.class, String.class); in setUp()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DAbstractCollectionTest.java309 CharSequence[] csa = new CharSequence[3]; in test_toArray$Ljava_lang_Object()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DProxyTest.java338 CharSequence foo(); in foo()
342 CharSequence foo(); in foo()
346 CharSequence foo(); in foo()
/libcore/benchmarks/src/benchmarks/regression/
DStringBuilderBenchmark.java59 CharSequence cs = "chars"; in timeAppendCharSequence()
/libcore/luni/src/test/java/libcore/java/lang/
DOldStringTest.java270 "".replace((CharSequence) null, "123".subSequence(0, 1)); in test_replaceLjava_langCharSequenceLjava_langCharSequence()
277 "".replace("123".subSequence(0, 1), (CharSequence) null); in test_replaceLjava_langCharSequenceLjava_langCharSequence()

12