Lines Matching refs:subStr
94 bool RustStringExistsInFile(const rust::String& fileName, const rust::String& subStr, bool caseSensitive)
97 std::string tmpStr(subStr);
101 int RustCountStrInFile(const rust::String& fileName, const rust::String& subStr, bool caseSensitive)
104 std::string tmpStr(subStr);
357 bool StringExistsInFile(const string& fileName, const string& subStr, bool caseSensitive /*= true*/)
359 if (subStr.empty()) {
371 return (str.find(subStr) != string::npos);
375 string sublower(subStr);
377 transform(subStr.begin(), subStr.end(), sublower.begin(), ::tolower);
381 int CountStrInStr(const string& str, const string& subStr)
383 if (subStr.empty()) {
384 UTILS_LOGD("subStr is empty");
390 size_t length = subStr.length();
391 while ((position = str.find(subStr, position)) != string::npos) {
399 int CountStrInFile(const string& fileName, const string& subStr, bool caseSensitive /*= true*/)
401 if (subStr.empty()) {
414 return CountStrInStr(str, subStr);
418 string sublower(subStr);
420 transform(subStr.begin(), subStr.end(), sublower.begin(), ::tolower);