Searched refs:string (Results 1 - 25 of 87) sorted by relevance

1234

/libcore/luni/src/main/native/
H A Dreadlink.h17 #include <string>
25 bool readlink(const char* path, std::string& result);
H A Dreadlink.cpp20 #include <string>
23 bool readlink(const char* path, std::string& result) {
H A Dcanonicalize_path.cpp31 #include <string>
48 bool canonicalize_path(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 DIcuUtilities.cpp42 const icu::UnicodeString* string = se->snext(status); local
46 ScopedLocalRef<jstring> javaString(env, env->NewString(string->getBuffer(), string->length()));
H A DExecStrings.cpp38 char* string = const_cast<char*>(env_->GetStringUTFChars(java_string.get(), NULL)); local
39 array_[i] = string;
/libcore/benchmarks/src/benchmarks/regression/
H A DStringToRealBenchmark.java32 }) String string; field in class:StringToRealBenchmark
36 Float.parseFloat(string);
42 Double.parseDouble(string);
H A DStringToBytesBenchmark.java46 @Param StringLengths string; field in class:StringToBytesBenchmark
50 string.value.getBytes(StandardCharsets.UTF_8);
56 string.value.getBytes(StandardCharsets.ISO_8859_1);
62 string.value.getBytes(StandardCharsets.US_ASCII);
H A DCharsetBenchmark.java63 String string = makeString(length);
65 string.getBytes(name);
/libcore/support/src/test/java/tests/support/
H A DSupport_Proxy_I2.java26 String string(String s) throws Support_Proxy_SubException, Error; method in interface:Support_Proxy_I2
H A DSupport_Proxy_I1.java27 String string(String s) throws Support_Proxy_ParentException, LinkageError; method in interface:Support_Proxy_I1
/libcore/luni/src/test/native/
H A Dlibcore_java_io_FileTest.cpp18 #include <string>
28 std::string base(baseDirUtf.c_str());
29 std::string subDir = base + "/dir_\xF0\x93\x80\x80";
30 std::string subFile = subDir + "/file_\xF0\x93\x80\x80";
H A Dlibcore_java_lang_ThreadTest.cpp18 #include <string>
30 const std::string native_thread_name = "foozball";
44 return new std::string("Attach failed");
47 std::string* exception_message = nullptr;
54 exception_message = new std::string("expected_thread_name != thread_name: ");
64 exception_message = new std::string("unexpected thread name : ");
68 exception_message = new std::string("prctl(PR_GET_NAME) failed :");
74 exception_message = new std::string("Detach failed");
82 std::string result;
92 std::string* result_test
[all...]
H A Dlibcore_util_NativeAllocationRegistryTest.cpp18 #include <string>
/libcore/ojluni/src/main/java/java/text/
H A DCharacterIteratorFieldDelegate.java83 // Add new string
85 AttributedString string = new AttributedString(
88 string.addAttribute(attr, value);
89 attributedStrings.add(string);
104 * @pararm string Result of formatting.
106 public AttributedCharacterIterator getIterator(String string) { argument
108 // assert(size <= string.length());
109 if (string.length() > size) {
111 string.substring(size)));
112 size = string
[all...]
H A DFormat.java55 * any string formatted by its <code>format</code> method. However, there may
145 * Formats an object to produce a string. This is equivalent to
152 * @return Formatted string.
161 * Formats an object and appends the resulting text to a given string
171 * @return the string buffer passed in as <code>toAppendTo</code>,
210 * Parses text from a string to produce an object.
216 * use all characters up to the end of the string), and the parsed
226 * @return An <code>Object</code> parsed from the string. In case of
233 * Parses text from the beginning of the given string to produce an object.
234 * The method may not use the entire text of the given string
310 createAttributedCharacterIterator( String string, AttributedCharacterIterator.Attribute key, Object value) argument
[all...]
/libcore/luni/src/main/java/libcore/icu/
H A DICU.java77 private static void parseLangScriptRegionAndVariants(String string, argument
79 final int first = string.indexOf('_');
80 final int second = string.indexOf('_', first + 1);
81 final int third = string.indexOf('_', second + 1);
84 outputArray[IDX_LANGUAGE] = string;
90 outputArray[IDX_LANGUAGE] = string.substring(0, first);
91 final String secondString = string.substring(first + 1);
102 // assume the rest of the string is a series of variant tags.
111 outputArray[IDX_LANGUAGE] = string.substring(0, first);
112 final String secondString = string
[all...]
/libcore/luni/src/test/java/libcore/java/lang/
H A DDoubleTest.java65 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 DFloatTest.java67 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 DBinaryHprof.java48 String string = new String(bytes, 0, i, "UTF-8");
49 if (string.startsWith(MAGIC)) {
50 return string;
H A DBinaryHprofReader.java52 * version string from header after read has been performed,
252 String string = new String(bytes, "UTF-8");
254 System.out.println("\tstring=" + string);
256 String old = idToString.put(stringId, string);
258 throw new MalformedHprofException("Duplicate string id: " + stringId);
303 String string = idToString.get(id);
304 if (string == null) {
305 throw new MalformedHprofException("Unknown string id " + id);
307 return string;
312 String string
[all...]
H A DBinaryHprofWriter.java81 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/libart/src/main/java/java/lang/
H A DDexCache.java113 native void setResolvedString(int stringIndex, String string); argument
/libcore/ojluni/src/main/native/
H A DInet4Address.c26 #include <string.h>
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DReaderTest.java95 String string = "MY TEST STRING";
96 char[] srcBuffer = string.toCharArray();
137 String string = "MY TEST STRING";
138 char[] srcBuffer = string.toCharArray();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
H A DProxyTest.java128 if (method.getName().equals("string")) {
149 proxy.string("");
155 proxy.string("clone");
162 proxy.string("error");
168 proxy.string("any");

Completed in 372 milliseconds

1234