/commonlibrary/c_utils/base/test/benchmarktest/string_benchmark_test/ |
H A D | string_benchmark_test.cpp | 77 string strTemp = "STRBASE"; in BENCHMARK_F() local 79 AssertEqual(result, strTemp, "result did not equal strTemp as expected.", state); in BENCHMARK_F() 83 AssertEqual(result, strTemp, "result did not equal strTemp as expected.", state); in BENCHMARK_F() 93 string strTemp = ""; in BENCHMARK_F() local 95 AssertEqual(result, strTemp, "result did not equal strTemp as expected.", state); in BENCHMARK_F() 113 string strTemp = "strbase"; in BENCHMARK_F() local 115 AssertEqual(result, strTemp, "resul in BENCHMARK_F() 129 string strTemp = ""; BENCHMARK_F() local 151 string strTemp = "test with replace"; BENCHMARK_F() local 188 string strTemp = "test for trim"; BENCHMARK_F() local 200 string strTemp = "es"; BENCHMARK_F() local [all...] |
/commonlibrary/c_utils/base/test/unittest/common/ |
H A D | utils_string_test.cpp | 63 string strTemp = "STRBASE"; in HWTEST_F() local 65 EXPECT_EQ(result, strTemp); in HWTEST_F() 69 EXPECT_EQ(result, strTemp); in HWTEST_F() 75 string strTemp = ""; in HWTEST_F() local 77 EXPECT_EQ(result, strTemp); in HWTEST_F() 91 string strTemp = "strbase"; in HWTEST_F() local 93 EXPECT_EQ(result, strTemp); in HWTEST_F() 97 EXPECT_EQ(result, strTemp); in HWTEST_F() 103 string strTemp = ""; in HWTEST_F() local 105 EXPECT_EQ(result, strTemp); in HWTEST_F() 121 string strTemp = "test with replace"; HWTEST_F() local 154 string strTemp = "test for trim"; HWTEST_F() local 162 string strTemp = "es"; HWTEST_F() local [all...] |
/commonlibrary/ets_utils/js_api_module/convertxml/ |
H A D | js_convertxml.cpp | 589 std::string strTemp = reinterpret_cast<char*>(curContent);
in DealCDataInfo() local 590 Replace(strTemp, " ", "");
in DealCDataInfo() 591 Replace(strTemp, "\v", "");
in DealCDataInfo() 592 Replace(strTemp, "\t", "");
in DealCDataInfo() 593 Replace(strTemp, "\n", "");
in DealCDataInfo() 594 if (strTemp == "") {
in DealCDataInfo()
|
/commonlibrary/ets_utils/js_api_module/xml/ |
H A D | js_xml.cpp | 973 void XmlPullParser::Replace(std::string& strTemp, std::string strSrc, std::string strDes) const in Replace() argument 976 while ((iPos = strTemp.find(strSrc)) != std::string::npos) { in Replace() 977 strTemp.replace(iPos, strSrc.size(), strDes); in Replace() 1330 std::string strTemp = ParseDelimiterInfo(tagText_.END_COMMENT, returnText); in ParseComment() local 1332 text_ = strTemp; in ParseComment() 1575 std::string strTemp = text_; in ParseText() local 1576 Replace(strTemp, "\r", ""); in ParseText() 1577 Replace(strTemp, "\n", ""); in ParseText() 1578 Replace(strTemp, " ", ""); in ParseText() 1579 if ((depth == 0 && bWhitespace_) || strTemp in ParseText() [all...] |
H A D | js_xml.h | 307 SrcLinkList(SrcLinkList* pNext, const std::string &strTemp, int iPos, int iMax) :next(pNext), in SrcLinkList() 308 strBuffer(strTemp), position(iPos), max(iMax) {} in SrcLinkList() 337 void Replace(std::string &strTemp, std::string strSrc, std::string strDes) const;
|
/commonlibrary/ets_utils/js_api_module/xml/test/ |
H A D | test_xml.cpp | 1810 std::string strTemp = "xml version"; in HWTEST_F() local 1811 xmlPullParser.Replace(strTemp, "xml", "convert"); in HWTEST_F() 1812 ASSERT_STREQ(strTemp.c_str(), "convert version"); in HWTEST_F()
|