/openjdk9/hotspot/test/native/logging/ |
H A D | logTestUtils.inline.hpp | 33 static inline bool string_contains_substring(const char* haystack, const char* needle) { argument 34 return strstr(haystack, needle) != NULL;
|
/openjdk9/jdk/test/javax/imageio/plugins/png/ |
H A D | ItxtUtf8Test.java | 229 private static final int findBytes(byte[] needle, byte[] haystack) { argument 230 HAYSTACK: for (int h = 0; h <= haystack.length - needle.length; ++h) { 231 for (int n = 0; n < needle.length; ++n) { 232 if (needle[n] != haystack[h + n]) {
|
/openjdk9/hotspot/test/runtime/Metaspace/ |
H A D | DefineClass.java | 193 private static int getStringIndex(String needle, byte[] buf) { argument 194 return getStringIndex(needle, buf, 0); 197 private static int getStringIndex(String needle, byte[] buf, int offset) { argument 199 for (int i = offset; i < buf.length - offset - needle.length(); i++) { 200 for (int j = 0; j < needle.length(); j++) { 201 if (buf[i + j] != (byte)needle.charAt(j)) continue outer;
|
/openjdk9/hotspot/test/compiler/intrinsics/string/ |
H A D | TestStringIntrinsics2.java | 71 // - The needle is exactly at the end of the string. 72 // - The needle spans the end of the string 75 // - needle is first char 76 // - needle is last char 80 // We test all these for an unknown needle, and needles known to the compiler 161 static String needle = "<miss>"; field in class:TestStringIntrinsics2 184 static int indexOf_no_match_unknown_needle(String s, String needle) { argument 185 int index = s.indexOf(needle); 221 static String indexOf_reads_past_string_unknown_needle(String s, String needle) { argument 222 int index = s.indexOf(needle); 313 indexOf_match_at_end_of_string_unknown_needle(String s, String needle) argument 438 indexOf_match_spans_end_of_string_unknown_needle(String s, String needle) argument [all...] |
/openjdk9/test/fmw/gtest/src/ |
H A D | gtest.cc | 1230 // This group of overloaded functions return true iff needle is a 1234 bool IsSubstringPred(const char* needle, const char* haystack) { argument 1235 if (needle == NULL || haystack == NULL) 1236 return needle == haystack; 1238 return strstr(haystack, needle) != NULL; 1241 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { argument 1242 if (needle == NULL || haystack == NULL) 1243 return needle == haystack; 1245 return wcsstr(haystack, needle) != NULL; 1250 bool IsSubstringPred(const StringType& needle, argument 1260 IsSubstringImpl( bool expected_to_be_substring, const char* needle_expr, const char* haystack_expr, const StringType& needle, const StringType& haystack) argument 1283 IsSubstring( const char* needle_expr, const char* haystack_expr, const char* needle, const char* haystack) argument 1289 IsSubstring( const char* needle_expr, const char* haystack_expr, const wchar_t* needle, const wchar_t* haystack) argument 1295 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const char* needle, const char* haystack) argument 1301 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const wchar_t* needle, const wchar_t* haystack) argument 1307 IsSubstring( const char* needle_expr, const char* haystack_expr, const ::std::string& needle, const ::std::string& haystack) argument 1313 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const ::std::string& needle, const ::std::string& haystack) argument 1320 IsSubstring( const char* needle_expr, const char* haystack_expr, const ::std::wstring& needle, const ::std::wstring& haystack) argument 1326 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const ::std::wstring& needle, const ::std::wstring& haystack) argument [all...] |
/openjdk9/test/fmw/gtest/include/gtest/ |
H A D | gtest.h | 1642 // themselves. They check whether needle is a substring of haystack 1646 // The {needle,haystack}_expr arguments are the stringified 1650 const char* needle, const char* haystack); 1653 const wchar_t* needle, const wchar_t* haystack); 1656 const char* needle, const char* haystack); 1659 const wchar_t* needle, const wchar_t* haystack); 1662 const ::std::string& needle, const ::std::string& haystack); 1665 const ::std::string& needle, const ::std::string& haystack); 1670 const ::std::wstring& needle, const ::std::wstring& haystack); 1673 const ::std::wstring& needle, cons [all...] |
/openjdk9/hotspot/src/cpu/ppc/vm/ |
H A D | macroAssembler_ppc.cpp | 3766 Register needle, ciTypeArray* needle_values, Register needlecnt, int needlecntval, 3782 // Prepare for main loop: optimized for needle count >=2, bail out otherwise. 3791 blt(CCR6, L_TooShort); // Variable needlecnt: handle short needle separately. 3794 if (n_csize == 2) { lwz(n_start, 0, needle); } else { lhz(n_start, 0, needle); } // Load first 2 characters of needle. 3798 addi(needlecnt, needlecnt, -2); // Rest of needle. 3800 guarantee(needlecntval != 1, "IndexOf with single-character needle must be handled separately"); 3803 if (needlecntval > 3) { li(needlecnt, needlecntval - 2); } // Rest of needle. 3834 beq(CCR0, L_Comp1); // Did we find the needle star 3765 string_indexof(Register result, Register haystack, Register haycnt, Register needle, ciTypeArray* needle_values, Register needlecnt, int needlecntval, Register tmp1, Register tmp2, Register tmp3, Register tmp4, int ae) argument 3906 string_indexof_char(Register result, Register haystack, Register haycnt, Register needle, jchar needleChar, Register tmp1, Register tmp2, bool is_byte) argument [all...] |
H A D | macroAssembler_ppc.hpp | 788 Register needle, ciTypeArray* needle_values, Register needlecnt, int needlecntval, 792 Register needle, jchar needleChar, Register tmp1, Register tmp2, bool is_byte);
|
/openjdk9/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.debug/src/org/graalvm/compiler/debug/ |
H A D | Debug.java | 1520 private static boolean findMatch(Set<String> haystack, Set<String> haystackSubstrings, String needle) { argument 1525 if (haystack.contains(needle)) { 1530 if (needle.startsWith(h)) {
|
/openjdk9/hotspot/src/cpu/s390/vm/ |
H A D | macroAssembler_s390.cpp | 5229 Register needle, Register needlecnt, int needlecntval, 5241 if (needle == haystack) { 5245 // Load first character of needle (R0 used by search_string instructions). 5246 if (n_csize == 2) { z_llgh(Z_R0, Address(needle)); } else { z_llgc(Z_R0, Address(needle)); } 5260 z_lgr(result, haystack); // Final result will be computed from needle start pointer. 5283 z_llgc(odd_reg, Address(needle, Z_R1)); 5324 z_clc(h_csize, needle_bytes -1, Z_R1, n_csize, needle); 5332 z_clc(h_csize, 0, Z_R1, n_csize, needle); 5350 add2reg(Z_R0, n_csize, needle); [all...] |
H A D | macroAssembler_s390.hpp | 858 Register needle, Register needlecnt, int needlecntval, 862 Register needle, jchar needleChar, Register odd_reg, Register even_reg, bool is_byte);
|