Home
last modified time | relevance | path

Searched refs:searchFor (Results 1 - 3 of 3) sorted by relevance

/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/src/
H A Dzip_utils.cpp50 bool StartsWith(const std::string &str, const std::string &searchFor) in StartsWith() argument
52 if (searchFor.size() > str.size()) { in StartsWith()
56 std::string source = str.substr(0, searchFor.size()); in StartsWith()
57 return source == searchFor; in StartsWith()
59 bool EndsWith(const std::string &str, const std::string &searchFor) in EndsWith() argument
61 if (searchFor.size() > str.size()) { in EndsWith()
65 std::string source = str.substr(str.size() - searchFor.size(), searchFor.size()); in EndsWith()
66 return source == searchFor; in EndsWith()
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/include/
H A Dzip_utils.h132 bool StartsWith(const std::string &str, const std::string &searchFor);
133 bool EndsWith(const std::string &str, const std::string &searchFor);
/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/
H A Dbpf_loader.cpp137 inline bool EndsWith(const std::string &str, const std::string &searchFor) in EndsWith() argument
139 if (searchFor.size() > str.size()) { in EndsWith()
143 std::string source = str.substr(str.size() - searchFor.size(), searchFor.size()); in EndsWith()
144 return source == searchFor; in EndsWith()

Completed in 3 milliseconds