Home
last modified time | relevance | path

Searched refs:strTemp (Results 1 – 23 of 23) sorted by relevance

/ohos5.0/foundation/multimedia/ringtone_library/services/ringtone_scanner/src/
H A Dringtone_metadata_extractor.cpp53 string strTemp = resultMap.at(Media::AV_KEY_DURATION); in PopulateExtractedAVMetadataOne() local
54 if (strTemp != "") { in PopulateExtractedAVMetadataOne()
55 intTempMeta = stringToNum<int32_t>(strTemp); in PopulateExtractedAVMetadataOne()
59 strTemp = resultMap.at(Media::AV_KEY_MIME_TYPE); in PopulateExtractedAVMetadataOne()
60 if (strTemp != "") { in PopulateExtractedAVMetadataOne()
61 data->SetMimeType(strTemp); in PopulateExtractedAVMetadataOne()
68 string strTemp = resultMap.at(Media::AV_KEY_DATE_TIME_FORMAT); in PopulateExtractedAVMetadataTwo() local
69 if (strTemp != "") { in PopulateExtractedAVMetadataTwo()
81 strTemp = resultMap.at(Media::AV_KEY_TITLE); in PopulateExtractedAVMetadataTwo()
82 if (!strTemp.empty()) { in PopulateExtractedAVMetadataTwo()
[all …]
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_scanner/src/scanner/
H A Dmetadata_extractor.cpp415 if (strTemp != "") { in PopulateExtractedAVMetadataOne()
416 data->SetAlbum(strTemp); in PopulateExtractedAVMetadataOne()
420 if (strTemp != "") { in PopulateExtractedAVMetadataOne()
425 if (strTemp != "") { in PopulateExtractedAVMetadataOne()
431 if (strTemp != "") { in PopulateExtractedAVMetadataOne()
437 if (strTemp != "") { in PopulateExtractedAVMetadataOne()
443 if (strTemp != "") { in PopulateExtractedAVMetadataOne()
454 if (strTemp != "") { in PopulateExtractedAVMetadataTwo()
467 if (strTemp == "") { in PopulateExtractedAVMetadataTwo()
475 if (!strTemp.empty()) { in PopulateExtractedAVMetadataTwo()
[all …]
/ohos5.0/drivers/peripheral/audio/test/sample/
H A Dframework_event.c92 char strTemp[AUDIO_PNP_MSG_LEN_MAX] = {0}; in AudioGetServiceStatus() local
93 …if (memcpy_s(strTemp, AUDIO_PNP_MSG_LEN_MAX, (char *)svcStatus->info, strlen((char *)svcStatus->in… in AudioGetServiceStatus()
96 …if ((AudioPnpMsgReadValue(strTemp, "EVENT_SERVICE_TYPE", &(serviceMsg.eventType)) != HDF_SUCCESS) … in AudioGetServiceStatus()
97 (AudioPnpMsgReadValue(strTemp, "DEVICE_TYPE", &(serviceMsg.deviceType)) != HDF_SUCCESS)) { in AudioGetServiceStatus()
183 char strTemp[AUDIO_PNP_MSG_LEN_MAX] = {0}; in AudioGetLoadStatus() local
184 …if (memcpy_s(strTemp, AUDIO_PNP_MSG_LEN_MAX, (char *)svcStatus->info, strlen((char *)svcStatus->in… in AudioGetLoadStatus()
187 if ((AudioPnpMsgReadValue(strTemp, "EVENT_LOAD_TYPE", &(loadMsg.eventType)) != HDF_SUCCESS) || in AudioGetLoadStatus()
188 (AudioPnpMsgReadValue(strTemp, "DEVICE_TYPE", &(loadMsg.deviceType)) != HDF_SUCCESS)) { in AudioGetLoadStatus()
262 char strTemp[AUDIO_PNP_MSG_LEN_MAX] = {0}; in AudioGetUsbPnpStatus() local
266 if ((AudioPnpMsgReadValue(strTemp, "EVENT_TYPE", &(pnpMsg.eventType)) != HDF_SUCCESS) || in AudioGetUsbPnpStatus()
[all …]
/ohos5.0/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_string_test.cpp62 string strTemp = "STRBASE"; variable
64 EXPECT_EQ(result, strTemp);
68 EXPECT_EQ(result, strTemp);
74 string strTemp = ""; variable
76 EXPECT_EQ(result, strTemp);
90 string strTemp = "strbase"; variable
92 EXPECT_EQ(result, strTemp);
102 string strTemp = ""; variable
126 strTemp = "test";
137 strTemp = "test replace";
[all …]
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/string_benchmark_test/
H A Dstring_benchmark_test.cpp77 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
113 string strTemp = "strbase"; in BENCHMARK_F() local
129 string strTemp = ""; in BENCHMARK_F() local
151 string strTemp = "test with replace"; in BENCHMARK_F() local
157 strTemp = "test"; in BENCHMARK_F()
168 strTemp = "test replace"; in BENCHMARK_F()
188 string strTemp = "test for trim"; in BENCHMARK_F() local
[all …]
/ohos5.0/foundation/communication/dhcp/services/utils/src/
H A Ddhcp_common_utils.cpp43 std::string strTemp = str; in Ipv4Anonymize() local
44 std::string::size_type begin = strTemp.find_last_of('.'); in Ipv4Anonymize()
45 while (begin < strTemp.length()) { in Ipv4Anonymize()
46 if (strTemp[begin] != '.') { in Ipv4Anonymize()
47 strTemp[begin] = '*'; in Ipv4Anonymize()
51 return strTemp; in Ipv4Anonymize()
84 std::string strTemp = ""; in IntIpv4ToAnonymizeStr() local
87 strTemp = Ipv4Anonymize(pIp); in IntIpv4ToAnonymizeStr()
91 return strTemp; in IntIpv4ToAnonymizeStr()
/ohos5.0/base/telephony/sms_mms/utils/
H A Dstring_utils.cpp95 long strTemp = strtol(byte.c_str(), nullptr, hexDecimal); in HexToString() local
96 if (strTemp > 0) { in HexToString()
97 chr = static_cast<char>(strTemp); in HexToString()
141 std::string strTemp = TrimStr(str); in IsEmpty() local
142 return strTemp.empty() || strlen(strTemp.c_str()) == 0; in IsEmpty()
/ohos5.0/foundation/communication/dhcp/services/dhcp_server/src/
H A Ddhcp_function.cpp349 std::string strTemp = ""; in AddFileLineData() local
352 strTemp = tmpLineData; in AddFileLineData()
353 strFileData += strTemp; in AddFileLineData()
355 if (strTemp == prevdata) { in AddFileLineData()
380 std::string strTemp = ""; in DelFileLineData() local
383 strTemp = tmpLineData; in DelFileLineData()
384 if (strTemp != linedata) { in DelFileLineData()
385 strFileData += strTemp; in DelFileLineData()
412 std::string strTemp = ""; in ModifyFileLineData() local
415 strTemp = tmpLineData; in ModifyFileLineData()
[all …]
H A Ddhcp_server_service_impl.cpp595 std::string strTemp = ""; in GetDhcpClientInfos() local
598 strTemp = tmpLineData; in GetDhcpClientInfos()
599 if (!strTemp.empty()) { in GetDhcpClientInfos()
600 leases.push_back(strTemp); in GetDhcpClientInfos()
/ohos5.0/commonlibrary/ets_utils/js_api_module/xml/src/
H A Djs_xml.ts66 let strTemp: string = inputStr;
67 if (strTemp.toLowerCase() !== 'utf-8') {
230 let strTemp: string = inputStr;
231 if (strTemp.toLowerCase() !== 'utf-8') {
/ohos5.0/base/location/services/location_gnss/gnss/source/
H A Dstring_utils.cpp97 long strTemp = strtol(byte.c_str(), nullptr, hexDecimal); in HexToString() local
98 if (strTemp > 0) { in HexToString()
99 chr = static_cast<char>(strTemp); in HexToString()
/ohos5.0/foundation/communication/wifi/wifi/base/utils/
H A Dwifi_app_parser.cpp346 std::string strTemp = ""; in GetCloudPushFileVersion() local
347 while (getline(ifs, strTemp)) { in GetCloudPushFileVersion()
353 int nPos = strTemp.find(VERSION_FILE_KEY_WORD); in GetCloudPushFileVersion()
355 strFileVersion = strTemp.substr(nPos + strlen(VERSION_FILE_KEY_WORD), in GetCloudPushFileVersion()
356 strTemp.length() - nPos - strlen(VERSION_FILE_KEY_WORD)); in GetCloudPushFileVersion()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/property/
H A Dborder_property_test_ng.cpp301 const string strTemp = "leftColor: [NA]rightColor: [NA]topColor: [NA]bottomColor: [NA]"; variable
302 EXPECT_EQ(strTemp, strResult);
308 EXPECT_NE(strTemp, strResult);
/ohos5.0/commonlibrary/ets_utils/js_api_module/convertxml/
H A Djs_convertxml.cpp607 std::string strTemp = reinterpret_cast<char*>(curContent); in DealCDataInfo() local
608 Replace(strTemp, " ", ""); in DealCDataInfo()
609 Replace(strTemp, "\v", ""); in DealCDataInfo()
610 Replace(strTemp, "\t", ""); in DealCDataInfo()
611 Replace(strTemp, "\n", ""); in DealCDataInfo()
612 if (strTemp == "") { in DealCDataInfo()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dtext_style_parser.cpp355 std::stringstream strTemp; in UnParseFontFeatureSetting() local
357 strTemp << kv.first << " " << kv.second << ","; in UnParseFontFeatureSetting()
359 std::string fontFeatures = strTemp.str(); in UnParseFontFeatureSetting()
/ohos5.0/drivers/peripheral/camera/vdi_base/common/dump/src/
H A Dcamera_dump.cpp104 std::string strTemp; in ReadDumpConfig() local
106 while (getline(istr, strTemp, '=')) { in ReadDumpConfig()
107 strVector.push_back(strTemp); in ReadDumpConfig()
/ohos5.0/commonlibrary/ets_utils/js_api_module/xml/
H A Djs_xml.h307 … 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;
H A Djs_xml.cpp1011 void XmlPullParser::Replace(std::string& strTemp, std::string strSrc, std::string strDes) const in Replace() argument
1014 while ((iPos = strTemp.find(strSrc)) != std::string::npos) { in Replace()
1015 strTemp.replace(iPos, strSrc.size(), strDes); in Replace()
1368 std::string strTemp = ParseDelimiterInfo(tagText_.END_COMMENT, returnText); in ParseComment() local
1370 text_ = strTemp; in ParseComment()
1613 std::string strTemp = text_; in ParseText() local
1614 Replace(strTemp, "\r", ""); in ParseText()
1615 Replace(strTemp, "\n", ""); in ParseText()
1616 Replace(strTemp, " ", ""); in ParseText()
1617 if ((depth == 0 && bWhitespace_) || strTemp.size() == 0) { in ParseText()
/ohos5.0/base/telephony/sms_mms/services/sms/
H A Dsms_wap_push_handler.cpp321 std::string strTemp = ""; in DecodeXWapAbandonHeaderValue() local
323 if (!decodeBuffer.DecodeText(strTemp, length)) { in DecodeXWapAbandonHeaderValue()
/ohos5.0/foundation/communication/wifi/wifi/utils/src/
H A Dwifi_common_util.cpp635 int strTemp = CheckDataLegalHex(byte); in HexToString() local
636 if (strTemp > 0) { in HexToString()
637 chr = static_cast<char>(strTemp); in HexToString()
/ohos5.0/commonlibrary/ets_utils/js_api_module/buffer/src/
H A Djs_buffer.ts316 … let strTemp: string = bufArr[i].toString(16); // 16 : convert the element to a hexadecimal string
317 strTemp = (strTemp.length === 1) ? `0${strTemp}` : strTemp;
318 str += ` ${strTemp}`;
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_clock/
H A Dtext_clock_pattern.cpp646 std::string strTemp = ""; in Abstract() local
649 strTemp += str; in Abstract()
652 return strTemp; in Abstract()
/ohos5.0/commonlibrary/ets_utils/js_api_module/xml/test/
H A Dtest_xml.cpp1810 std::string strTemp = "xml version"; variable
1811 xmlPullParser.Replace(strTemp, "xml", "convert");
1812 ASSERT_STREQ(strTemp.c_str(), "convert version");