Home
last modified time | relevance | path

Searched refs:CountStrInFile (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_file_test.cpp719 EXPECT_EQ(CountStrInFile(filename, str, true), -1);
733 EXPECT_EQ(CountStrInFile(filename, str, true), -1);
748 EXPECT_EQ(CountStrInFile(filename, str1, true), 0);
749 EXPECT_EQ(CountStrInFile(filename, str2, true), 1);
765 EXPECT_EQ(CountStrInFile(filename, str1, true), 2);
766 EXPECT_EQ(CountStrInFile(filename, str1, false), 4);
768 EXPECT_EQ(CountStrInFile(filename, str2, true), 1);
769 EXPECT_EQ(CountStrInFile(filename, str2, false), 4);
771 EXPECT_EQ(CountStrInFile(filename, str3, true), 0);
785 EXPECT_EQ(CountStrInFile(filename, str1, true), 2);
[all …]
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/file_benchmark_test/
H A Dfile_benchmark_test.cpp892 AssertEqual(CountStrInFile(filename, str, true), -1, in BENCHMARK_F()
911 AssertEqual(CountStrInFile(filename, str, true), -1, in BENCHMARK_F()
931 AssertEqual(CountStrInFile(filename, str1, true), 0, in BENCHMARK_F()
933 AssertEqual(CountStrInFile(filename, str2, true), 1, in BENCHMARK_F()
954 AssertEqual(CountStrInFile(filename, str1, true), 2, in BENCHMARK_F()
956 AssertEqual(CountStrInFile(filename, str1, false), 4, in BENCHMARK_F()
959 AssertEqual(CountStrInFile(filename, str2, true), 1, in BENCHMARK_F()
961 AssertEqual(CountStrInFile(filename, str2, false), 4, in BENCHMARK_F()
964 AssertEqual(CountStrInFile(filename, str3, true), 0, in BENCHMARK_F()
983 AssertEqual(CountStrInFile(filename, str1, true), 2, in BENCHMARK_F()
[all …]
/ohos5.0/commonlibrary/c_utils/base/include/
H A Dfile_ex.h154 int CountStrInFile(const std::string& fileName, const std::string& subStr, bool caseSensitive = tr…
/ohos5.0/commonlibrary/c_utils/docs/zh-cn/
H A Dc-utils-guide-file.md19 | int | **CountStrInFile**(const std::string& fileName, const std::string& subStr, bool caseSensiti…
/ohos5.0/commonlibrary/c_utils/base/src/
H A Dfile_ex.cpp105 return CountStrInFile(tmpName, tmpStr, caseSensitive); in RustCountStrInFile()
399 int CountStrInFile(const string& fileName, const string& subStr, bool caseSensitive /*= true*/) in CountStrInFile() function
/ohos5.0/foundation/ai/intelligent_voice_framework/llt/hdt/depend_libs/src/
H A Dfile_ex.cpp320 int CountStrInFile(const string& fileName, const string& subStr, bool caseSensitive /* = true */) in CountStrInFile() function