Lines Matching refs:subStr
94 bool RustStringExistsInFile(const rust::String& fileName, const rust::String& subStr, bool caseSens… in RustStringExistsInFile() argument
97 std::string tmpStr(subStr); in RustStringExistsInFile()
101 int RustCountStrInFile(const rust::String& fileName, const rust::String& subStr, bool caseSensitiv… 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.end(), sublower.begin(), ::tolower); in StringExistsInFile()
381 int CountStrInStr(const string& str, const string& subStr) in CountStrInStr() argument
383 if (subStr.empty()) { in CountStrInStr()
390 size_t length = subStr.length(); in CountStrInStr()
391 while ((position = str.find(subStr, position)) != string::npos) { in CountStrInStr()
399 int CountStrInFile(const string& fileName, const string& subStr, bool caseSensitive /*= true*/) in CountStrInFile() argument
401 if (subStr.empty()) { in CountStrInFile()
414 return CountStrInStr(str, subStr); in CountStrInFile()
418 string sublower(subStr); in CountStrInFile()
420 transform(subStr.begin(), subStr.end(), sublower.begin(), ::tolower); in CountStrInFile()