Searched refs:needle (Results 1 - 5 of 5) sorted by relevance

/frameworks/base/tools/aapt/
H A DPackage.cpp445 bool endsWith(const char* haystack, const char* needle) argument
448 size_t b = strlen(needle);
450 return strcasecmp(haystack+(a-b), needle) == 0;
H A DResourceTable.cpp612 * Returns true if needle is one of the elements in the comma-separated list
615 bool isInProductList(const String16& needle, const String16& haystack) { argument
616 const char16_t *needle2 = needle.string();
618 size_t needlesize = needle.size();
/frameworks/base/core/java/android/text/
H A DTextUtils.java185 public static int indexOf(CharSequence s, CharSequence needle) { argument
186 return indexOf(s, needle, 0, s.length());
189 public static int indexOf(CharSequence s, CharSequence needle, int start) { argument
190 return indexOf(s, needle, start, s.length());
193 public static int indexOf(CharSequence s, CharSequence needle, argument
195 int nlen = needle.length();
199 char c = needle.charAt(0);
211 if (regionMatches(s, start, needle, 0, nlen)) {
/frameworks/compile/mclinker/utils/gtest/src/
H A Dgtest-all.cpp2531 // This group of overloaded functions return true iff needle is a
2535 bool IsSubstringPred(const char* needle, const char* haystack) { argument
2536 if (needle == NULL || haystack == NULL)
2537 return needle == haystack;
2539 return strstr(haystack, needle) != NULL;
2542 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { argument
2543 if (needle == NULL || haystack == NULL)
2544 return needle == haystack;
2546 return wcsstr(haystack, needle) != NULL;
2551 bool IsSubstringPred(const StringType& needle, argument
2561 IsSubstringImpl( bool expected_to_be_substring, const char* needle_expr, const char* haystack_expr, const StringType& needle, const StringType& haystack) argument
2584 IsSubstring( const char* needle_expr, const char* haystack_expr, const char* needle, const char* haystack) argument
2590 IsSubstring( const char* needle_expr, const char* haystack_expr, const wchar_t* needle, const wchar_t* haystack) argument
2596 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const char* needle, const char* haystack) argument
2602 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const wchar_t* needle, const wchar_t* haystack) argument
2608 IsSubstring( const char* needle_expr, const char* haystack_expr, const ::std::string& needle, const ::std::string& haystack) argument
2614 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const ::std::string& needle, const ::std::string& haystack) argument
2621 IsSubstring( const char* needle_expr, const char* haystack_expr, const ::std::wstring& needle, const ::std::wstring& haystack) argument
2627 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const ::std::wstring& needle, const ::std::wstring& haystack) argument
[all...]
/frameworks/compile/mclinker/utils/gtest/include/
H A Dgtest.h18535 // themselves. They check whether needle is a substring of haystack
18539 // The {needle,haystack}_expr arguments are the stringified
18543 const char* needle, const char* haystack);
18546 const wchar_t* needle, const wchar_t* haystack);
18549 const char* needle, const char* haystack);
18552 const wchar_t* needle, const wchar_t* haystack);
18555 const ::std::string& needle, const ::std::string& haystack);
18558 const ::std::string& needle, const ::std::string& haystack);
18563 const ::std::wstring& needle, const ::std::wstring& haystack);
18566 const ::std::wstring& needle, cons
[all...]

Completed in 355 milliseconds