Searched refs:needle (Results 1 – 3 of 3) sorted by relevance
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | controlFlowPropertyDeclarations.ts | 125 function endsWith(haystack, needle) { 126 AssertType(haystack.slice(-needle.length) === needle, "boolean"); 127 AssertType(haystack.slice(-needle.length), "any"); 129 AssertType(-needle.length, "number"); 130 AssertType(needle.length, "any"); 131 AssertType(needle, "any"); 132 return haystack.slice(-needle.length) === needle; 144 function trimEnd(haystack, needle) { 145 AssertType(endsWith(haystack, needle) ? haystack.slice(0, -needle.length) : haystack, "any"); 146 AssertType(endsWith(haystack, needle), "boolean"); [all …]
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_runtime_options.h | 1173 static bool StartsWith(const std::string &haystack, const std::string &needle) in StartsWith() argument 1175 return std::equal(needle.begin(), needle.end(), haystack.begin()); in StartsWith()
|
/arkcompiler/runtime_core/libpandabase/utils/ |
D | pandargs.h | 1017 static bool StartsWith(const std::string &haystack, const std::string &needle) in StartsWith() argument 1019 return std::equal(needle.begin(), needle.end(), haystack.begin()); in StartsWith()
|