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

1234

/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_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_java_io_FileTest.cpp20 #include <string>
32 std::string base(baseDirUtf.c_str());
33 std::string subDir = base + "/dir_\xF0\x93\x80\x80";
34 std::string subFile = subDir + "/file_\xF0\x93\x80\x80";
H A Dlibcore_libcore_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/main/native/
H A DIcuUtilities.cpp44 const icu::UnicodeString* string = se->snext(status); local
48 ScopedLocalRef<jstring> javaString(env, jniCreateString(env, string->getBuffer(), string->length()));
H A DExecStrings.cpp39 char* string = const_cast<char*>(env_->GetStringUTFChars(java_string.get(), NULL)); local
40 array_[i] = string;
/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/ojluni/src/main/native/
H A DInet4Address.c26 #include <string.h>
H A Djni_util_md.c26 #include <string.h>
H A DInet6Address.c26 #include <string.h>
H A DInetAddress.c26 #include <string.h>
H A DNativeThread.c27 #include <string.h>
H A DProcessEnvironment_md.c27 #include <string.h>
/libcore/luni/src/test/java/libcore/java/lang/invoke/
H A DMethodHandleInfoTest.java29 String string = MethodHandleInfo.toString(REF_invokeVirtual, String.class, "concat", type);
30 assertEquals("invokeVirtual java.lang.String.concat:(String)String", string);
/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");
/libcore/ojluni/src/main/java/java/time/chrono/
H A DHijrahChronology.java1049 * @param string the input string
1052 private int[] parseYMD(String string) { argument
1054 string = string.trim();
1056 if (string.charAt(4) != '-' || string.charAt(7) != '-') {
1060 ymd[0] = Integer.valueOf(string.substring(0, 4));
1061 ymd[1] = Integer.valueOf(string.substring(5, 7));
1062 ymd[2] = Integer.valueOf(string
[all...]

Completed in 703 milliseconds

1234