/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 | toStringArray.cpp | 20 #include <string> 24 const std::vector<std::string>& strings; 25 VectorCounter(const std::vector<std::string>& strings) : strings(strings) {} 31 const std::vector<std::string>& strings; 32 VectorGetter(const std::vector<std::string>& strings) : strings(strings) {} 38 jobjectArray toStringArray(JNIEnv* env, const std::vector<std::string>& strings) {
|
H A D | java_lang_System.cpp | 27 #include <string> 32 #include <string.h> 75 std::vector<std::string> properties; 78 properties.push_back(std::string("user.dir=") + getcwd(path, sizeof(path)));
|
H A D | java_io_File.cpp | 28 #include <string> 35 #include <string.h> 49 std::string result; 63 extern bool realpath(const char* path, std::string& resolved); 64 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...] |
/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)); 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 147 * @param string 154 decode(String string) argument 228 getInteger(String string) argument 257 getInteger(String string, int defaultValue) argument 286 getInteger(String string, Integer defaultValue) argument 331 parseInt(String string) argument 350 parseInt(String string, int radix) argument 369 parse(String string, int offset, int radix, boolean negative) argument 489 valueOf(String string) argument 509 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)); 129 * Parses the specified string and returns a {@code Long} instance if the 130 * string can be decoded into a long value. The string may be an optional 134 * @param string 140 decode(String string) argument 215 getLong(String string) argument 244 getLong(String string, long defaultValue) argument 273 getLong(String string, Long defaultValue) argument 318 parseLong(String string) argument 337 parseLong(String string, int radix) argument 356 parse(String string, int offset, int radix, boolean negative) argument 476 valueOf(String string) argument 496 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)); 150 * Returns a string containing a concise, human-readable description of this 163 * {@code string}. 165 * @param string 167 * @return {@code true} if the system property named by {@code string} 172 getBoolean(String string) argument 213 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)); 123 * Parses the specified string and returns a {@code Byte} instance if the 124 * string can be decoded into a single byte value. The string may be an 128 * @param string 134 decode(String string) argument 194 parseByte(String string) argument 213 parseByte(String string, int radix) argument 263 valueOf(String string) argument 283 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)); 122 * Parses the specified string and returns a {@code Short} instance if the 123 * string can be decoded into a short value. The string may be an optional 127 * @param string 134 decode(String string) argument 193 parseShort(String string) argument 212 parseShort(String string, int radix) argument 259 valueOf(String string) argument 279 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...] |
H A D | String.java | 41 * the length of the string. For example, the string "Hello" may be backed by 46 * The {@link #substring} method <strong>always</strong> returns a string that 47 * shares the backing array of its source string. Generally this is an 50 * short substring of long string means that the long shared char[] won't be 53 * {@code new String(longString.subString(...))}. The string copy constructor 115 * Creates an empty string. 136 * Converts the byte array to a string using the system's 145 * Converts the byte array to a string, setting the high byte of every 149 * the byte array to convert to a string 624 compareTo(String string) argument 646 compareToIgnoreCase(String string) argument 672 concat(String string) argument 757 equalsIgnoreCase(String string) argument 982 indexOf(String string) argument 1148 lastIndexOf(String string) argument 1223 regionMatches(int thisStart, String string, int start, int length) argument 1267 regionMatches(boolean ignoreCase, int thisStart, String string, int start, int length) 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 | 54 * <p>To specify the time format, use a <i>time pattern</i> string. In this 55 * string, any character from {@code 'A'} to {@code 'Z'} or {@code 'a'} to {@code 'z'} is 208 // The index of 'Z' in the PATTERN_CHARS string. This pattern character is supported by the RI, 212 // The index of 'L' (cf. 'M') in the PATTERN_CHARS string. This is an ICU-compatible extension 215 // The index of 'c' (cf. 'E') in the PATTERN_CHARS string. This is an ICU-compatible extension 731 * @param count the number of z or Z characters in the format string; "zzz" would be 3, 735 * 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 to the specified string buffe 843 parse(String string, int offset, char format, int count) argument 956 parseDayOfWeek(String string, int offset, String[] longs, String[] shorts) argument 964 parseMonth(String string, int offset, int count, int absolute, String[] longs, String[] shorts) argument 997 parse(String string, ParsePosition position) argument 1069 parseNumber(int max, String string, ParsePosition position) argument 1115 parseNumber(int max, String string, int offset, int field, int skew) argument 1125 parseText(String string, int offset, String[] text, int field) argument 1145 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/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/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);
|
/libcore/dalvik/src/main/java/dalvik/system/profiler/ |
H A D | BinaryHprof.java | 48 String string = new String(bytes, 0, i, "UTF-8"); 49 if (string.startsWith(MAGIC)) { 50 return string;
|
/libcore/include/ |
H A D | ScopedUtfChars.h | 21 #include <string.h> 23 // A smart pointer that provides read-only access to a Java string's UTF chars.
|