/libcore/luni/src/main/native/ |
H A D | readlink.h | 17 #include <string> 25 bool readlink(const char* path, std::string& result);
|
H A D | readlink.cpp | 20 #include <string> 23 bool readlink(const char* path, std::string& result) {
|
H A D | realpath.cpp | 31 #include <string> 48 bool realpath(const char* path, std::string& resolved) { 62 std::string left(path + 1); 66 std::string nextPathComponent = left.substr(0, nextSlash); 67 if (nextSlash != std::string::npos) { 98 std::string symlink;
|
H A D | IcuUtilities.cpp | 47 const UnicodeString* string = se->snext(status); local 51 ScopedLocalRef<jstring> javaString(env, env->NewString(string->getBuffer(), string->length()));
|
H A D | libcore_icu_Transliterator.cpp | 55 ScopedJavaUnicodeString string(env, javaString); 56 if (!string.valid()) { 60 UnicodeString& s(string.unicodeString());
|
H A D | java_io_File.cpp | 28 #include <string> 35 #include <string.h> 48 std::string result; 62 extern bool realpath(const char* path, std::string& resolved); 63 std::string result; 134 typedef std::vector<std::string> DirEntries;
|
/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...] |
H A D | Date.java | 147 * @param string 153 public Date(String string) { argument 154 milliseconds = parse(string); 354 private static int parse(String string, String[] array) { argument 355 for (int i = 0, alength = array.length, slength = string.length(); i < alength; i++) { 356 if (string.regionMatches(true, 0, array[i], 0, slength)) { 363 private static IllegalArgumentException parseError(String string) { argument 364 throw new IllegalArgumentException("Parse error: " + string); 372 * @param string 379 public static long parse(String string) { argument [all...] |
/libcore/luni/src/main/java/java/lang/ |
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)); 141 * Parses the specified string and returns a {@code Integer} instance if the 142 * string can be decoded into an integer value. The string may be an 146 * @param string 153 decode(String string) argument 227 getInteger(String string) argument 256 getInteger(String string, int defaultValue) argument 285 getInteger(String string, Integer defaultValue) argument 330 parseInt(String string) argument 349 parseInt(String string, int radix) argument 368 parse(String string, int offset, int radix, boolean negative) argument 488 valueOf(String string) argument 508 valueOf(String string, int radix) argument [all...] |
H A D | Long.java | 80 * Constructs a new {@code Long} from the specified string. 82 * @param string 83 * the string representation of a long value. 85 * if {@code string} cannot be parsed as a long value. 88 public Long(String string) throws NumberFormatException { argument 89 this(parseLong(string)); 128 * Parses the specified string and returns a {@code Long} instance if the 129 * string can be decoded into a long value. The string may be an optional 133 * @param string 139 decode(String string) argument 214 getLong(String string) argument 243 getLong(String string, long defaultValue) argument 272 getLong(String string, Long defaultValue) argument 317 parseLong(String string) argument 336 parseLong(String string, int radix) argument 355 parse(String string, int offset, int radix, boolean negative) argument 475 valueOf(String string) argument 495 valueOf(String string, int radix) argument [all...] |
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 | 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)); 286 * Parses the specified string as a double value. 288 * @param string 289 * the string representation of a double value. 290 * @return the primitive double value represented by {@code string} 294 parseDouble(String string) argument 331 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)); 289 * Parses the specified string as a float value. 291 * @param string 292 * the string representation of a float value. 293 * @return the primitive float value represented by {@code string} 299 parseFloat(String string) argument 336 valueOf(String string) argument [all...] |
/libcore/luni/src/main/java/java/text/ |
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 | 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 | SimpleDateFormat.java | 56 * <p>To specify the time format, use a <i>time pattern</i> string. In this 57 * string, any character from {@code 'A'} to {@code 'Z'} or {@code 'a'} to {@code 'z'} is 185 * or as the string corresponding to the long is cheaper and unambiguous, and can be formatted any 204 // The index of 'Z' in the PATTERN_CHARS string. This pattern character is supported by the RI, 208 // The index of 'L' (cf. 'M') in the PATTERN_CHARS string. This is an ICU-compatible extension 211 // The index of 'c' (cf. 'E') in the PATTERN_CHARS string. This is an ICU-compatible extension 732 * @param count the number of z or Z characters in the format string; "zzz" would be 3, 736 * versus 'Z' in the format string. 796 * Formats the specified date as a string using the pattern of this date 797 * format and appends the string t 843 parse(String string, int offset, char format, int count) argument 954 parseDayOfWeek(String string, int offset, boolean standAlone) argument 967 parseMonth(String string, int offset, int count, int absolute, boolean standAlone) argument 1005 parse(String string, ParsePosition position) argument 1077 parseNumber(int max, String string, ParsePosition position) argument 1123 parseNumber(int max, String string, int offset, int field, int skew) argument 1133 parseText(String string, int offset, String[] options, int field) argument 1166 parseTimeZone(String string, int offset) argument [all...] |
H A D | MessageFormat.java | 94 * Thus, a string that should result in the formatted message "'{0}'" can be 131 * table are illegal. A <i>SubformatPattern</i> must be a valid pattern string 291 * <strong>Note:</strong> As we see above, the string produced by a 295 * {@code ChoiceFormat} programmatically (instead of using the string 299 * When a single argument is parsed more than once in the string, the last match 531 * Converts the specified objects into a string which it appends to the 532 * specified string buffer using the pattern of this message format. 542 * the target string buffer to append the formatted message to. 546 * @return the string buffer. 649 * the index where the string thi 823 parse(String string) argument 851 parse(String string, ParsePosition position) argument 923 parseObject(String string, ParsePosition position) argument 927 match(String string, ParsePosition position, boolean last, String[] tokens) argument 956 parseVariable(String string, ParsePosition position) argument 1195 appendQuoted(StringBuffer buffer, String string) argument [all...] |
/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/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/libcore/icu/ |
H A D | NativeBreakIterator.java | 35 private String string; field in class:NativeBreakIterator 48 clone.string = this.string; 81 return currentImpl(this.address, this.string); 85 return firstImpl(this.address, this.string); 89 return followingImpl(this.address, this.string, offset); 93 int newLocation = currentImpl(this.address, this.string); 99 return lastImpl(this.address, this.string); 103 return nextImpl(this.address, this.string, n); 107 return nextImpl(this.address, this.string, [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | DoubleTest.java | 65 for (String string : badStrings) { 67 Double.parseDouble(string); 68 fail(string); 90 for (String string : strings) { 92 Double.parseDouble(string); 93 fail(string);
|
H A D | FloatTest.java | 67 for (String string : badStrings) { 69 Float.parseFloat(string); 70 fail(string); 90 for (String string : strings) { 92 Float.parseFloat(string); 93 fail(string);
|