Home
last modified time | relevance | path

Searched refs:subStr (Results 1 - 6 of 6) sorted by relevance

/commonlibrary/c_utils/base/src/
H A Dfile_ex.cpp94 bool RustStringExistsInFile(const rust::String& fileName, const rust::String& subStr, bool caseSensitive) in RustStringExistsInFile() argument
97 std::string tmpStr(subStr); in RustStringExistsInFile()
101 int RustCountStrInFile(const rust::String& fileName, const rust::String& subStr, bool caseSensitive) in RustCountStrInFile() argument
104 std::string tmpStr(subStr); in RustCountStrInFile()
357 bool StringExistsInFile(const string& fileName, const string& subStr, bool caseSensitive /*= true*/) in StringExistsInFile() argument
359 if (subStr.empty()) { in StringExistsInFile()
371 return (str.find(subStr) != string::npos); in StringExistsInFile()
375 string sublower(subStr); in StringExistsInFile()
377 transform(subStr.begin(), subStr in StringExistsInFile()
381 CountStrInStr(const string& str, const string& subStr) CountStrInStr() argument
399 CountStrInFile(const string& fileName, const string& subStr, bool caseSensitive ) CountStrInFile() argument
[all...]
/commonlibrary/c_utils/base/include/
H A Dfile_ex.h48 bool RustStringExistsInFile(const rust::String& fileName, const rust::String& subStr, bool caseSensitive);
49 int RustCountStrInFile(const rust::String& fileName, const rust::String& subStr, bool caseSensitive);
137 * @param subStr Indicates the <b>std::string</b> object to check.
142 bool StringExistsInFile(const std::string& fileName, const std::string& subStr, bool caseSensitive = true);
149 * @param subStr Indicates the <b>std::string</b> object to search.
152 * returns <b>0</b> if <b>subStr</b> is null.
154 int CountStrInFile(const std::string& fileName, const std::string& subStr, bool caseSensitive = true);
/commonlibrary/c_utils/base/src/rust/
H A Dfile_ex.rs51 subStr: &String, in RustStringExistsInFile()
56 pub fn RustCountStrInFile(fileName: &String, subStr: &String, caseSensitive: bool) -> i32; in RustCountStrInFile()
/commonlibrary/ets_utils/js_api_module/url/
H A Djs_url.cpp112 std::string subStr = temp.substr(pos + 1, 2); // 2:Truncate the last two digits of the % in DecodeSpecialChars() local
114 if (sscanf_s(subStr.c_str(), "%x", &octNum) == -1) { in DecodeSpecialChars()
532 std::string subStr = num.substr(2); // 2:jump 0x in IsNumber() local
533 if (subStr.empty()) { in IsNumber()
536 return IsRadix(subStr, "0123456789abcdefABCDEF"); in IsNumber()
539 std::string subStr = num.substr(1); in IsNumber() local
540 if (subStr.empty()) { in IsNumber()
/commonlibrary/ets_utils/js_api_module/xml/
H A Djs_xml.cpp72 std::string XmlSerializer::Replace(std::string str, const std::string &subStr, const std::string &repStr) in Replace() argument
75 size_t subLen = subStr.length(); in Replace()
77 while ((iPos = str.find(subStr, iPos)) != std::string::npos) { in Replace()
H A Djs_xml.h149 std::string Replace(std::string str, const std::string &subStr, const std::string &repStr);

Completed in 9 milliseconds