Home
last modified time | relevance | path

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

1234

/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/ojluni/src/main/java/java/util/
DStringJoiner.java99 public StringJoiner(CharSequence delimiter) { in StringJoiner()
118 public StringJoiner(CharSequence delimiter, in StringJoiner()
119 CharSequence prefix, in StringJoiner()
120 CharSequence suffix) { in StringJoiner()
145 public StringJoiner setEmptyValue(CharSequence emptyValue) { in setEmptyValue()
184 public StringJoiner add(CharSequence newElement) { in add()
/libcore/ojluni/annotations/sdk/nullability/java/util/regex/
DPattern.annotated.java44 …ublic java.util.regex.Matcher matcher(@libcore.util.NonNull java.lang.CharSequence input) { throw … in matcher()
48 ….util.NonNull java.lang.String regex, @libcore.util.NonNull java.lang.CharSequence input) { throw … in matches()
50 …String @libcore.util.NonNull [] split(@libcore.util.NonNull java.lang.CharSequence input, int limi… in split()
52 …String @libcore.util.NonNull [] split(@libcore.util.NonNull java.lang.CharSequence input) { throw … in split()
58 …re.util.NonNull String> splitAsStream(@libcore.util.NonNull java.lang.CharSequence input) { throw … in splitAsStream()
/libcore/ojluni/src/main/java/java/lang/
DStringBuilder.java79 implements java.io.Serializable, CharSequence
125 public StringBuilder(CharSequence seq) { in StringBuilder()
166 public StringBuilder append(CharSequence s) { in append()
175 public StringBuilder append(CharSequence s, int start, int end) { in append()
309 public StringBuilder insert(int dstOffset, CharSequence s) { in insert()
318 public StringBuilder insert(int dstOffset, CharSequence s, in insert()
DAppendable.java71 Appendable append(CharSequence csq) throws IOException; in append()
107 Appendable append(CharSequence csq, int start, int end) throws IOException; in append()
DStringBuffer.java99 implements java.io.Serializable, CharSequence
156 public StringBuffer(CharSequence seq) { in StringBuffer()
336 public synchronized StringBuffer append(CharSequence s) { in append()
347 public synchronized StringBuffer append(CharSequence s, int start, int end) in append()
470 public synchronized CharSequence subSequence(int start, int end) { in subSequence()
531 public StringBuffer insert(int dstOffset, CharSequence s) { in insert()
544 public synchronized StringBuffer insert(int dstOffset, CharSequence s, in insert()
DString.java114 implements java.io.Serializable, Comparable<String>, CharSequence {
1032 return contentEquals((CharSequence)sb); in contentEquals()
1065 public boolean contentEquals(CharSequence cs) { in contentEquals()
2106 public CharSequence subSequence(int beginIndex, int endIndex) { in subSequence()
2223 public boolean contains(CharSequence s) { in contains()
2329 public String replace(CharSequence target, CharSequence replacement) { in replace()
2553 public static String join(CharSequence delimiter, CharSequence... elements) { in join()
2558 for (CharSequence cs: elements) { in join()
2601 public static String join(CharSequence delimiter, in join()
2602 Iterable<? extends CharSequence> elements) { in join()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/lang/
DString.java35 java.lang.CharSequence {
174 public boolean contentEquals(java.lang.CharSequence cs) { in contentEquals()
314 public java.lang.CharSequence subSequence(int beginIndex, int endIndex) { in subSequence()
330 public boolean contains(java.lang.CharSequence s) { in contains()
343 java.lang.CharSequence target, java.lang.CharSequence replacement) { in replace()
356 java.lang.CharSequence delimiter, java.lang.CharSequence... elements) { in join()
361 java.lang.CharSequence delimiter, in join()
362 java.lang.Iterable<? extends java.lang.CharSequence> elements) { in join()
DAbstractStringBuilder.java31 abstract class AbstractStringBuilder implements java.lang.Appendable, java.lang.CharSequence {
117 public java.lang.AbstractStringBuilder append(java.lang.CharSequence s) { in append()
125 public java.lang.AbstractStringBuilder append(java.lang.CharSequence s, int start, int end) { in append()
181 public java.lang.CharSequence subSequence(int start, int end) { in subSequence()
205 public java.lang.AbstractStringBuilder insert(int dstOffset, java.lang.CharSequence s) { in insert()
210 int dstOffset, java.lang.CharSequence s, int start, int end) { in insert()
/libcore/ojluni/annotations/hiddenapi/java/nio/
DCharBuffer.java37 java.lang.CharSequence,
66 public static java.nio.CharBuffer wrap(java.lang.CharSequence csq, int start, int end) { in wrap()
70 public static java.nio.CharBuffer wrap(java.lang.CharSequence csq) { in wrap()
171 public java.nio.CharBuffer append(java.lang.CharSequence csq) { in append()
175 public java.nio.CharBuffer append(java.lang.CharSequence csq, int start, int end) { in append()
/libcore/ojluni/src/main/java/java/io/
DStringWriter.java139 public StringWriter append(CharSequence csq) { in append()
179 public StringWriter append(CharSequence csq, int start, int end) { in append()
180 CharSequence cs = (csq == null ? "null" : csq); in append()
DWriter.java223 public Writer append(CharSequence csq) throws IOException { in append()
267 public Writer append(CharSequence csq, int start, int end) throws IOException { in append()
268 CharSequence cs = (csq == null ? "null" : csq); in append()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DMockIOExceptionAppendable.java69 public Appendable append(CharSequence csq) throws IOException { in append()
77 public Appendable append(CharSequence csq, int start, int end) in append()
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DStringBuffer.annotated.java31 public final class StringBuffer implements java.lang.Appendable, java.lang.CharSequence, java.io.Se…
39 public StringBuffer(@libcore.util.NonNull java.lang.CharSequence seq) { throw new RuntimeException(… in StringBuffer()
71 …onized java.lang.StringBuffer append(@libcore.util.Nullable java.lang.CharSequence s) { throw new … in append()
73 …onized java.lang.StringBuffer append(@libcore.util.Nullable java.lang.CharSequence s, int start, i… in append()
101 @libcore.util.NonNull public synchronized java.lang.CharSequence subSequence(int start, int end) { … in subSequence()
113 …g.StringBuffer insert(int dstOffset, @libcore.util.Nullable java.lang.CharSequence s) { throw new … in insert()
115 …g.StringBuffer insert(int dstOffset, @libcore.util.Nullable java.lang.CharSequence s, int start, i… in insert()
DStringBuilder.annotated.java32 public final class StringBuilder implements java.lang.Appendable, java.lang.CharSequence, java.io.S…
40 public StringBuilder(@libcore.util.NonNull java.lang.CharSequence seq) { throw new RuntimeException… in StringBuilder()
48 …ublic java.lang.StringBuilder append(@libcore.util.Nullable java.lang.CharSequence s) { throw new … in append()
50 …ublic java.lang.StringBuilder append(@libcore.util.Nullable java.lang.CharSequence s, int start, i… in append()
84 ….StringBuilder insert(int dstOffset, @libcore.util.Nullable java.lang.CharSequence s) { throw new … in insert()
86 ….StringBuilder insert(int dstOffset, @libcore.util.Nullable java.lang.CharSequence s, int start, i… in insert()
122 public java.lang.CharSequence subSequence(int start, int end) { throw new RuntimeException("Stub!")… in subSequence()
DCharSequence.annotated.java32 public interface CharSequence { interface
38 @libcore.util.NonNull public java.lang.CharSequence subSequence(int start, int end); in subSequence()
DString.annotated.java40 …g implements java.io.Serializable, java.lang.Comparable<java.lang.String>, java.lang.CharSequence {
100 public boolean contentEquals(@libcore.util.NonNull java.lang.CharSequence cs) { throw new RuntimeEx… in contentEquals()
140 @libcore.util.NonNull public java.lang.CharSequence subSequence(int beginIndex, int endIndex) { thr… in subSequence()
148 public boolean contains(@libcore.util.NonNull java.lang.CharSequence s) { throw new RuntimeExceptio… in contains()
154 …ing replace(@libcore.util.NonNull java.lang.CharSequence target, @libcore.util.NonNull java.lang.C… in replace()
160 …ring join(@libcore.util.NonNull java.lang.CharSequence delimiter, java.lang.@libcore.util.NonNull in join()
162 …nNull java.lang.CharSequence delimiter, @libcore.util.NonNull java.lang.Iterable<? extends @libcor… in join()
DAppendable.annotated.java34 …l public java.lang.Appendable append(@libcore.util.Nullable java.lang.CharSequence csq) throws jav… in append()
36 …l public java.lang.Appendable append(@libcore.util.Nullable java.lang.CharSequence csq, int start,… in append()
/libcore/ojluni/src/main/java/java/nio/
DStringCharBuffer.java34 CharSequence str;
36 StringCharBuffer(CharSequence s, int start, int end) { // package-private in StringCharBuffer()
53 private StringCharBuffer(CharSequence s, in StringCharBuffer()
DCharBuffer.java123 implements Comparable<CharBuffer>, Appendable, CharSequence, Readable
300 public static CharBuffer wrap(CharSequence csq, int start, int end) { in wrap()
322 public static CharBuffer wrap(CharSequence csq) { in wrap()
1180 public CharBuffer append(CharSequence csq) { in append()
1219 public CharBuffer append(CharSequence csq, int start, int end) { in append()
1220 CharSequence cs = (csq == null ? "null" : csq); in append()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeParseException.java99 public DateTimeParseException(String message, CharSequence parsedData, int errorIndex) { in DateTimeParseException()
113 …public DateTimeParseException(String message, CharSequence parsedData, int errorIndex, Throwable c… in DateTimeParseException()
/libcore/ojluni/annotations/hiddenapi/java/util/regex/
DMatcher.java34 Matcher(java.util.regex.Pattern parent, java.lang.CharSequence text) { in Matcher()
54 public java.util.regex.Matcher reset(java.lang.CharSequence input) { in reset()
183 java.lang.CharSequence getSubSequence(int beginIndex, int endIndex) { in getSubSequence()
187 private java.util.regex.Matcher reset(java.lang.CharSequence input, int start, int end) { in reset()
246 private java.lang.CharSequence originalInput;
/libcore/ojluni/src/main/java/java/text/
DNormalizer.java165 public static String normalize(CharSequence src, Form form) { in normalize()
183 public static boolean isNormalized(CharSequence src, Form form) { in isNormalized()

1234