Home
last modified time | relevance | path

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

/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() function
123 if (StringEndWith(path, EXT_NAME_ABC, sizeof(EXT_NAME_ABC) - 1)) { in FixExtName()
127 if (StringEndWith(path, EXT_NAME_ETS, sizeof(EXT_NAME_ETS) - 1)) { in FixExtName()
129 } else if (StringEndWith(path, EXT_NAME_TS, sizeof(EXT_NAME_TS) - 1)) { in FixExtName()
131 } else if (StringEndWith(path, EXT_NAME_JS, sizeof(EXT_NAME_JS) - 1)) { in FixExtName()
H A Dextractor.cpp167 if (!StringEndWith(relativePath, EXT_NAME_ABC, sizeof(EXT_NAME_ABC) - 1)) { in GetSafeData()
/ohos5.0/foundation/ability/ability_runtime/test/unittest/file_path_utils_test/
H A Dfile_path_utils_test.cpp75 EXPECT_FALSE(StringEndWith(longStr, shortStr, endStrLenInvalid1));
77 EXPECT_FALSE(StringEndWith(longStr, shortStr, endStrLenInvalid2));
79 EXPECT_TRUE(StringEndWith(longStr, shortStr, endStrLen));
/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);