Lines Matching defs:String

35  * {@code String} is represented by array of UTF-16 values, such that
53 * {@code new String(longString.subString(...))}. The string copy constructor
61 public final class String implements Serializable, Comparable<String>, CharSequence {
72 Comparator<String>, Serializable {
88 public int compare(String o1, String o2) {
96 public static final Comparator<String> CASE_INSENSITIVE_ORDER = new CaseInsensitiveComparator();
117 public String() {
127 private String(String s, char c) {
140 public String(byte[] data) {
154 * @deprecated Use {@link #String(byte[])} or {@link #String(byte[], String)} instead.
157 public String(byte[] data, int high) {
170 public String(byte[] data, int offset, int byteCount) {
183 * @deprecated Use {@link #String(byte[], int, int)} instead.
186 public String(byte[] data, int high, int offset, int byteCount) {
212 public String(byte[] data, int offset, int byteCount, String charsetName) throws UnsupportedEncodingException {
227 public String(byte[] data, String charsetName) throws UnsupportedEncodingException {
245 public String(byte[] data, int offset, int byteCount, Charset charset) {
252 String canonicalCharsetName = charset.name();
375 // which would break String's immutability guarantee. It would also tend to
387 * Converts the byte array to a String using the given charset.
392 public String(byte[] data, Charset charset) {
403 public String(char[] data) {
417 public String(char[] data, int offset, int charCount) {
428 * Internal version of the String(char[], int, int) constructor.
431 String(int offset, int charCount, char[] chars) {
442 public String(String toCopy) {
454 private String(String s1, String s2) {
472 private String(String s1, String s2, String s3) {
491 * Creates a {@code String} from the contents of the specified
494 public String(StringBuffer stringBuffer) {
503 * Creates a {@code String} from the sub-array of Unicode code points.
515 public String(int[] codePoints, int offset, int count) {
533 * Creates a {@code String} from the contents of the specified {@code
540 public String(StringBuilder stringBuilder) {
551 * Creates a {@code String} that is s1 + v1. May be used by JIT code.
554 private String(String s1, int v1) {
558 String s2 = String.valueOf(v1);
629 public native int compareTo(String string);
651 public int compareToIgnoreCase(String string) {
677 public String concat(String string) {
682 return new String(0, buffer.length, buffer);
698 public static String copyValueOf(char[] data) {
699 return new String(data, 0, data.length);
720 public static String copyValueOf(char[] data, int start, int length) {
721 return new String(data, start, length);
735 public boolean endsWith(String suffix) {
762 public boolean equalsIgnoreCase(String string) {
784 * each character. Use {@link #getBytes()} or {@link #getBytes(String)} instead.
799 * @deprecated Use {@link #getBytes()} or {@link #getBytes(String)} instead.
839 public byte[] getBytes(String charsetName) throws UnsupportedEncodingException {
854 String canonicalCharsetName = charset.name();
971 String needle = new String(0, chars.length, chars);
987 public int indexOf(String string) {
1032 public int indexOf(String subString, int start) {
1078 public native String intern();
1139 String needle = new String(0, chars.length, chars);
1155 public int lastIndexOf(String string) {
1174 public int lastIndexOf(String subString, int start) {
1230 public boolean regionMatches(int thisStart, String string, int start, int length) {
1274 public boolean regionMatches(boolean ignoreCase, int thisStart, String string, int start, int length) {
1311 public String replace(char oldChar, char newChar) {
1334 return copied ? new String(0, count, buffer) : this;
1350 public String replace(CharSequence target, CharSequence replacement) {
1358 String targetString = target.toString();
1365 String replacementString = replacement.toString();
1410 public boolean startsWith(String prefix) {
1427 public boolean startsWith(String prefix, int start) {
1442 public String substring(int start) {
1447 return new String(offset + start, count - start, value);
1466 public String substring(int start, int end) {
1473 return new String(offset + start, end - start, value);
1495 public String toLowerCase() {
1512 public String toLowerCase(Locale locale) {
1520 public String toString() {
1530 public String toUpperCase() {
1547 public String toUpperCase(Locale locale) {
1558 public String trim() {
1570 return new String(start, end - start + 1, value);
1584 public static String valueOf(char[] data) {
1585 return new String(data, 0, data.length);
1606 public static String valueOf(char[] data, int start, int length) {
1607 return new String(data, start, length);
1617 public static String valueOf(char value) {
1618 String s;
1620 s = new String(value, 1, ASCII);
1622 s = new String(0, 1, new char[] { value });
1635 public static String valueOf(double value) {
1646 public static String valueOf(float value) {
1657 public static String valueOf(int value) {
1668 public static String valueOf(long value) {
1681 public static String valueOf(Object value) {
1694 public static String valueOf(boolean value) {
1717 return regionMatches(0, new String(0, size, strbuf.getValue()), 0,
1723 * Compares a {@code CharSequence} to this {@code String} to determine if
1765 public boolean matches(String regularExpression) {
1784 public String replaceAll(String regularExpression, String replacement) {
1803 public String replaceFirst(String regularExpression, String replacement) {
1823 public String[] split(String regularExpression) {
1841 public String[] split(String regularExpression, int limit) {
1842 String[] result = java.util.regex.Splitter.fastSplit(regularExpression, this, limit);
1915 * Determines if this {@code String} contains the sequence of characters in
1957 * consumption, you should use the {@code format(Locale, String, Object...)}
1972 public static String format(String format, Object... args) {
1993 public static String format(Locale locale, String format, Object... args) {
2003 * An implementation of a String.indexOf that is supposed to perform
2007 * For example, a JIT, upon encountering a call to String.indexOf(String),
2013 private static int indexOf(String haystackString, String needleString,