Lines Matching defs:String

43  * {@code String} is represented by array of UTF-16 values, such that
52 public final class String implements Serializable, Comparable<String>,
70 Comparator<String>, Serializable {
86 public int compare(String o1, String o2) {
94 public static final Comparator<String> CASE_INSENSITIVE_ORDER = new CaseInsensitiveComparator();
120 public String() {
130 private String(String s, char c) {
147 public String(byte[] data) {
161 * @deprecated Use {@link #String(byte[])} or
162 * {@link #String(byte[], String)} instead.
165 public String(byte[] data, int high) {
187 public String(byte[] data, int start, int length) {
225 * @deprecated Use {@link #String(byte[], int, int)} instead.
228 public String(byte[] data, int high, int start, int length) {
266 public String(byte[] data, int start, int length, final String encoding)
428 public String(byte[] data, String encoding) throws UnsupportedEncodingException {
442 public String(char[] data) {
463 public String(char[] data, int start, int length) {
480 String(int start, int length, char[] data) {
487 * Creates a {@code String} that is a copy of the specified string.
492 public String(String string) {
502 private String(String s1, String s2) {
520 private String(String s1, String s2, String s3) {
540 * Creates a {@code String} from the contents of the specified
546 public String(StringBuffer stringbuffer) {
555 * Creates a {@code String} from the sub-array of Unicode code points.
574 public String(int[] codePoints, int offset, int count) {
594 * Creates a {@code String} from the contents of the specified {@code
603 public String(StringBuilder sb) {
614 * Creates a {@code String} that is s1 + v1. May be used by JIT code.
617 private String(String s1, int v1) {
621 String s2 = String.valueOf(v1);
677 public int compareTo(String string) {
710 public int compareToIgnoreCase(String string) {
736 public String concat(String string) {
742 return new String(0, buffer.length, buffer);
758 public static String copyValueOf(char[] data) {
759 return new String(data, 0, data.length);
780 public static String copyValueOf(char[] data, int start, int length) {
781 return new String(data, start, length);
786 String encoding = AccessController
787 .doPrivileged(new PriviAction<String>(
817 public boolean endsWith(String suffix) {
837 if (object instanceof String) {
838 String s = (String) object;
871 public boolean equalsIgnoreCase(String string) {
927 * @deprecated Use {@link #getBytes()} or {@link #getBytes(String)}
954 public byte[] getBytes(String encoding) throws UnsupportedEncodingException {
962 private Charset getCharset(final String encoding)
1112 public int indexOf(String string) {
1159 public int indexOf(String subString, int start) {
1202 native public String intern();
1271 public int lastIndexOf(String string) {
1290 public int lastIndexOf(String subString, int start) {
1348 public boolean regionMatches(int thisStart, String string, int start,
1396 String string, int start, int length) {
1437 public String replace(char oldChar, char newChar) {
1461 return copied ? new String(0, count, buffer) : this;
1478 public String replace(CharSequence target, CharSequence replacement) {
1485 String ts = target.toString();
1491 String rs = replacement.toString();
1517 public boolean startsWith(String prefix) {
1534 public boolean startsWith(String prefix, int start) {
1548 public String substring(int start) {
1553 return new String(offset + start, count - start, value);
1570 public String substring(int start, int end) {
1577 return new String(offset + start, end - start, value);
1598 public String toLowerCase() {
1617 public String toLowerCase(Locale locale) {
1627 public String toString() {
1638 public String toUpperCase() {
1714 public String toUpperCase(Locale locale) {
1716 String languageCode = locale.getLanguage();
1768 return output.length == i || output.length - i < 8 ? new String(0, i,
1769 output) : new String(output, 0, i);
1780 public String trim() {
1792 return new String(start, end - start + 1, value);
1806 public static String valueOf(char[] data) {
1807 return new String(data, 0, data.length);
1828 public static String valueOf(char[] data, int start, int length) {
1829 return new String(data, start, length);
1839 public static String valueOf(char value) {
1840 String s;
1842 s = new String(value, 1, ascii);
1844 s = new String(0, 1, new char[] { value });
1857 public static String valueOf(double value) {
1868 public static String valueOf(float value) {
1879 public static String valueOf(int value) {
1890 public static String valueOf(long value) {
1903 public static String valueOf(Object value) {
1916 public static String valueOf(boolean value) {
1939 return regionMatches(0, new String(0, size, strbuf.getValue()), 0,
1945 * Compares a {@code CharSequence} to this {@code String} to determine if
1984 public boolean matches(String expr) {
2003 public String replaceAll(String expr, String substitute) {
2024 public String replaceFirst(String expr, String substitute) {
2043 public String[] split(String expr) {
2066 public String[] split(String expr, int max) {
2156 * Determines if this {@code String} contains the sequence of characters in
2203 * consumption, you should use the {@code format(Locale, String, Object...)}
2218 public static String format(String format, Object... args) {
2247 public static String format(Locale loc, String format, Object... args) {
2258 * An implementation of a String.indexOf that is supposed to perform
2262 * For example, a JIT, upon encountering a call to String.indexOf(String),
2267 private static int indexOf(String haystackString, String needleString,