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()
356 bool StringExistsInFile(const string& fileName, const string& subStr, bool caseSensitive /*= true*/) in StringExistsInFile() argument
358 if (subStr.empty()) { in StringExistsInFile()
370 return (str.find(subStr) != string::npos); in StringExistsInFile()
374 string sublower(subStr); in StringExistsInFile()
376 transform(subStr.begin(), subStr.end(), sublower.begin(), ::tolower); in StringExistsInFile()
380 int CountStrInStr(const string& str, const string& subStr) in CountStrInStr() argument
382 if (subStr.empty()) { in CountStrInStr()
389 size_t length = subStr.length(); in CountStrInStr()
390 while ((position = str.find(subStr, position)) != string::npos) { in CountStrInStr()
398 int CountStrInFile(const string& fileName, const string& subStr, bool caseSensitive /*= true*/) in CountStrInFile() argument
400 if (subStr.empty()) { in CountStrInFile()
413 return CountStrInStr(str, subStr); in CountStrInFile()
417 string sublower(subStr); in CountStrInFile()
419 transform(subStr.begin(), subStr.end(), sublower.begin(), ::tolower); in CountStrInFile()