/libcore/benchmarks/src/benchmarks/regression/ |
H A D | StringToRealBenchmark.java | 34 }) String string; field in class:StringToRealBenchmark 38 Float.parseFloat(string); 44 Double.parseDouble(string);
|
/libcore/luni/src/main/native/ |
H A D | ExecStrings.cpp | 38 char* string = const_cast<char*>(env_->GetStringUTFChars(java_string.get(), NULL)); local 39 array_[i] = string;
|
H A D | IcuUtilities.cpp | 43 const UnicodeString* string = se->snext(status); local 47 ScopedLocalRef<jstring> javaString(env, env->NewString(string->getBuffer(), string->length()));
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_Proxy_I2.java | 26 String string(String s) throws Support_Proxy_SubException, Error; method in interface:Support_Proxy_I2
|
H A D | Support_Proxy_I1.java | 27 String string(String s) throws Support_Proxy_ParentException, LinkageError; method in interface:Support_Proxy_I1
|
/libcore/luni/src/main/java/java/util/ |
H A D | StringTokenizer.java | 21 * Breaks a string into tokens; new code should probably use {@link String#split}. 42 private String string; field in class:StringTokenizer 51 * Constructs a new {@code StringTokenizer} for the parameter string using 55 * @param string 56 * the string to be tokenized. 58 public StringTokenizer(String string) { argument 59 this(string, " \t\n\r\f", false); 63 * Constructs a new {@code StringTokenizer} for the parameter string using 69 * @param string 70 * the string t 74 StringTokenizer(String string, String delimiters) argument 92 StringTokenizer(String string, String delimiters, boolean returnDelimiters) argument [all...] |
/libcore/luni/src/main/java/java/text/ |
H A D | Format.java | 27 * string representations. In some cases these representations may be localized 30 * the string "$12,345". It may also parse the string back into a numeric value. 32 * specific date, encoded numerically, as a string such as "Wednesday, February 36 * pattern. A pattern is a string representation of the rules which govern the 50 * is a formatter which utilizes other {@code Format} objects to format a string 52 * might produce the string "There are no files on the disk MyDisk on February 88 * @return the formatted string. 98 * Appends the specified object to the specified string buffer using the 109 * the string buffe 148 parseObject(String string) argument 175 parseObject(String string, ParsePosition position) argument 177 upTo(String string, ParsePosition position, StringBuffer buffer, char stop) argument 201 upToWithQuotes(String string, ParsePosition position, StringBuffer buffer, char stop, char start) argument [all...] |
H A D | StringCharacterIterator.java | 25 String string; field in class:StringCharacterIterator 30 * Constructs a new {@code StringCharacterIterator} on the specified string. 31 * The begin and current indices are set to the beginning of the string, the 32 * end index is set to the length of the string. 35 * the source string to iterate over. 38 string = value; 40 end = string.length(); 44 * Constructs a new {@code StringCharacterIterator} on the specified string 46 * to the beginning of the string, the end index is set to the length of the 47 * string [all...] |
H A D | ChoiceFormat.java | 27 * Returns a fixed string based on a numeric value. The class can be used in 95 * same index as the string. 226 * Appends the string associated with the range in which the specified 227 * double value fits to the specified string buffer. 232 * the target string buffer to append the formatted value to. 235 * @return the string buffer. 250 * Appends the string associated with the range in which the specified long 251 * value fits to the specified string buffer. 256 * the target string buffer to append the formatted value to. 259 * @return the string buffe 375 parse(String string, ParsePosition position) argument 436 skipWhitespace(String string, int index) argument [all...] |
H A D | Collator.java | 26 * Performs locale-sensitive string comparison. A concrete subclass, 53 * form of each string are compared, just in case there is no difference. For 184 * the first string to compare. 186 * the second string to compare. 201 * the first string to compare. 203 * the second string to compare. 235 * the first string to compare. 237 * the second string to compare. 255 * Returns a {@link CollationKey} for the specified string for this collator 258 * @param string 262 getCollationKey(String string) argument [all...] |
/libcore/luni/src/main/java/libcore/net/url/ |
H A D | UrlUtils.java | 129 * Returns the index of the first char of {@code chars} in {@code string} 133 public static int findFirstOf(String string, String chars, int start, int end) { argument 135 char c = string.charAt(i);
|
/libcore/luni/src/test/java/libcore/java/text/ |
H A D | OldAttributedCharacterIteratorTest.java | 30 String string = "test test"; field in class:OldAttributedCharacterIteratorTest 104 assertEquals(string.length(), limit); 195 AttributedString as = new AttributedString(string);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
H A D | InflaterOutputStreamTest.java | 383 // Compress the test string into compressedBytes 384 private int compressToBytes(String string) { argument 385 byte[] input = string.getBytes();
|
/libcore/luni/src/main/java/java/lang/ |
H A D | Boolean.java | 60 * {@code string}. If {@code string} is not {@code null} and is equal to 65 * @param string 66 * the string representing a boolean value. 68 public Boolean(String string) { argument 69 this(parseBoolean(string)); 149 * Returns a string containing a concise, human-readable description of this 162 * {@code string}. 164 * @param string 166 * @return {@code true} if the system property named by {@code string} 171 getBoolean(String string) argument 212 valueOf(String string) argument [all...] |
H A D | Byte.java | 73 * Constructs a new {@code Byte} from the specified string. 75 * @param string 76 * the string representation of a single byte value. 78 * if {@code string} cannot be parsed as a byte value. 81 public Byte(String string) throws NumberFormatException { argument 82 this(parseByte(string)); 122 * Parses the specified string and returns a {@code Byte} instance if the 123 * string can be decoded into a single byte value. The string may be an 127 * @param string 133 decode(String string) argument 193 parseByte(String string) argument 212 parseByte(String string, int radix) argument 262 valueOf(String string) argument 282 valueOf(String string, int radix) argument [all...] |
H A D | Short.java | 65 * Constructs a new {@code Short} from the specified string. 67 * @param string 68 * the string representation of a short value. 70 * if {@code string} cannot be parsed as a short value. 73 public Short(String string) throws NumberFormatException { argument 74 this(parseShort(string)); 121 * Parses the specified string and returns a {@code Short} instance if the 122 * string can be decoded into a short value. The string may be an optional 126 * @param string 133 decode(String string) argument 192 parseShort(String string) argument 211 parseShort(String string, int radix) argument 258 valueOf(String string) argument 278 valueOf(String string, int radix) argument [all...] |
H A D | StringBuilder.java | 31 * <p>For particularly complex string-building needs, consider {@link java.util.Formatter}. 99 * Appends the string representation of the specified {@code boolean} value. 114 * Appends the string representation of the specified {@code char} value. 115 * The {@code char} value is converted to a string according to the rule 129 * Appends the string representation of the specified {@code int} value. The 130 * {@code int} value is converted to a string according to the rule defined 144 * Appends the string representation of the specified {@code long} value. 145 * The {@code long} value is converted to a string according to the rule 159 * Appends the string representation of the specified {@code float} value. 160 * The {@code float} value is converted to a string accordin 636 replace(int start, int end, String string) argument [all...] |
H A D | AbstractStringBuilder.java | 86 AbstractStringBuilder(String string) { argument 87 count = string.length(); 90 string._getChars(0, count, value, 0); 138 final void append0(String string) { argument 139 if (string == null) { 143 int length = string.length(); 148 string._getChars(0, length, value, count); 340 final void insert0(int index, String string) { argument 342 if (string == null) { 343 string 396 replace0(int start, int end, String string) argument 668 indexOf(String string) argument 734 lastIndexOf(String string) argument [all...] |
H A D | Double.java | 127 * Constructs a new {@code Double} from the specified string. 129 * @param string 130 * the string representation of a double value. 132 * if {@code string} cannot be parsed as a double value. 135 public Double(String string) throws NumberFormatException { argument 136 this(parseDouble(string)); 292 * Parses the specified string as a double value. 294 * @param string 295 * the string representation of a double value. 296 * @return the primitive double value represented by {@code string} 300 parseDouble(String string) argument 337 valueOf(String string) argument [all...] |
H A D | Float.java | 133 * Constructs a new {@code Float} from the specified string. 135 * @param string 136 * the string representation of a float value. 138 * if {@code string} can not be parsed as a float value. 141 public Float(String string) throws NumberFormatException { argument 142 this(parseFloat(string)); 295 * Parses the specified string as a float value. 297 * @param string 298 * the string representation of a float value. 299 * @return the primitive float value represented by {@code string} 305 parseFloat(String string) argument 342 valueOf(String string) argument [all...] |
H A D | Integer.java | 93 * Constructs a new {@code Integer} from the specified string. 95 * @param string 96 * the string representation of an integer value. 98 * if {@code string} cannot be parsed as an integer value. 101 public Integer(String string) throws NumberFormatException { argument 102 this(parseInt(string)); 142 * Parses the specified string and returns a {@code Integer} instance if the 143 * string can be decoded into an integer value. The string may be an 148 * @param string 155 decode(String string) argument 230 getInteger(String string) argument 259 getInteger(String string, int defaultValue) argument 288 getInteger(String string, Integer defaultValue) argument 333 parseInt(String string) argument 353 parseInt(String string, int radix) argument 377 parsePositiveInt(String string) argument 393 parsePositiveInt(String string, int radix) argument 403 parse(String string, int offset, int radix, boolean negative) argument 524 valueOf(String string) argument 544 valueOf(String string, int radix) argument [all...] |
/libcore/luni/src/test/java/libcore/icu/ |
H A D | AlphabeticIndexTest.java | 26 private static void assertHasLabel(AlphabeticIndex.ImmutableIndex ii, String string, String expectedLabel) { argument 27 int index = ii.getBucketIndex(string);
|
/libcore/dalvik/src/main/java/dalvik/system/profiler/ |
H A D | BinaryHprofWriter.java | 81 out.writeByte(0); // null terminated string 149 * Ensures that a string has been writen to the out and 150 * returns its ID. The ID of a null string is zero, and 151 * doesn't actually result in any output. In a string has 155 private int writeString(String string) throws IOException { argument 156 if (string == null) { 159 Integer identifier = stringToId.get(string); 165 stringToId.put(string, id); 167 byte[] bytes = string.getBytes("UTF-8");
|
/libcore/json/src/main/java/org/json/ |
H A D | JSONStringer.java | 43 * Calls that would result in a malformed JSON string will fail with a 117 * A string containing a full set of spaces for a single level of 252 string(value.toString()); 302 private void string(String value) { method in class:JSONStringer 375 string(name); 420 * Returns the encoded JSON string.
|
/libcore/luni/src/main/java/java/util/regex/ |
H A D | Pattern.java | 52 * has no regular expression literals, and uses plain old string literals instead. This means that 54 * be represented as the string {@code "\\s+"}. 238 * the string "aAaAaA". See {@link #UNICODE_CASE}. Corresponds to {@code (?i)}. 280 * character in the input string only match if they are canonically 323 * the case where the input is itself an empty string is 428 * Quotes the given {@code string} using "\Q" and "\E", so that all 434 public static String quote(String string) { argument 439 while ((k = string.indexOf("\\E", apos)) >= 0) { 440 sb.append(string.substring(apos, k + 2)).append("\\\\E\\Q"); 443 return sb.append(string [all...] |