Home
last modified time | relevance | path

Searched refs:StringStartWith (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/
H A Dfile_path_utils.cpp62 bool StringStartWith(const std::string& str, const char* startStr, size_t startStrLen) in StringStartWith() function
141 …if (StringStartWith(curJsModulePath, BUNDLE_INSTALL_PATH, std::string(BUNDLE_INSTALL_PATH).length(… in GetInstallPath()
144 if (!StringStartWith(curJsModulePath, OTHER_BUNDLE_INSTALL_PATH, in GetInstallPath()
323 if (StringStartWith(newJsModuleUri, PREFIX_BUNDLE, sizeof(PREFIX_BUNDLE) - 1)) { in ParseOhmUri()
339 } else if (StringStartWith(newJsModuleUri, PREFIX_MODULE, sizeof(PREFIX_MODULE) - 1)) { in ParseOhmUri()
352 } else if (StringStartWith(newJsModuleUri, PREFIX_LOCAL, sizeof(PREFIX_LOCAL) - 1)) { in ParseOhmUri()
H A Dextractor.cpp277 …if (StringStartWith(hapPath, Constants::ABS_CODE_PATH, std::string(Constants::ABS_CODE_PATH).lengt… in GetLoadFilePath()
/ohos5.0/foundation/ability/ability_runtime/js_environment/frameworks/js_environment/src/
H A Dsource_map.cpp87 bool StringStartWith(const std::string& str, const std::string& startStr) in StringStartWith() function
210 if (StringStartWith(tmp.c_str(), FLAG_SOURCES)) { in SplitSourceMap()
215 if (StringStartWith(tmp.c_str(), FLAG_MAPPINGS)) { in SplitSourceMap()
219 if (StringStartWith(tmp.c_str(), FLAG_END)) { in SplitSourceMap()
/ohos5.0/foundation/ability/ability_runtime/test/unittest/file_path_utils_test/
H A Dfile_path_utils_test.cpp57 EXPECT_FALSE(StringStartWith(longStr, shortStr, startStrLenInvalid1));
59 EXPECT_FALSE(StringStartWith(longStr, shortStr, startStrLenInvalid2));
61 EXPECT_TRUE(StringStartWith(longStr, shortStr, startStrLen));
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/extractortool/include/
H A Dfile_path_utils.h23 bool StringStartWith(const std::string& str, const char* startStr, size_t startStrLen);