Home
last modified time | relevance | path

Searched refs:endStrLen (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/base/startup/init/interfaces/innerkits/modulemgr/
H A Dmodulemgr.c190 int endStrLen = strlen(endStr); in StringEndsWith() local
192 BEGET_CHECK(!(srcStrLen < endStrLen), return -1); in StringEndsWith()
194 srcStr += (srcStrLen - endStrLen); in StringEndsWith()
195 BEGET_CHECK(strcmp(srcStr, endStr) != 0, return (srcStrLen - endStrLen)); in StringEndsWith()
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/
H A Dfile_path_utils.cpp67 bool StringEndWith(const std::string& str, const char* endStr, size_t endStrLen) in StringEndWith() argument
70 return ((len >= endStrLen) && (str.compare(len - endStrLen, endStrLen, endStr) == 0)); in StringEndWith()
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/extractortool/include/
H A Dfile_path_utils.h24 bool StringEndWith(const std::string& str, const char* endStr, size_t endStrLen);
/ohos5.0/foundation/ability/ability_runtime/test/unittest/file_path_utils_test/
H A Dfile_path_utils_test.cpp78 size_t endStrLen = 2; variable
79 EXPECT_TRUE(StringEndWith(longStr, shortStr, endStrLen));