/drivers/hdf_core/framework/tools/hdi-gen/util/ |
H A D | string_helper.cpp | 32 std::string element = sources.substr(begin, pos - begin);
in Split() 41 std::string element = sources.substr(begin);
in Split() 103 const std::string &value, size_t position, const std::string &substr, const std::string &newstr)
in Replace() 109 std::string prefix = value.substr(0, position);
in Replace() 110 std::string suffix = value.substr(position);
in Replace() 111 return prefix + Replace(suffix, substr, newstr);
in Replace() 120 std::string prefix = value.substr(0, position);
in Replace() 121 std::string suffix = value.substr(position);
in Replace() 130 return (end == std::string::npos) ? value.substr(start) : value.substr(star in SubStr() 102 Replace( const std::string &value, size_t position, const std::string &substr, const std::string &newstr) Replace() argument [all...] |
H A D | options.cpp | 214 std::string package = packagePath.substr(0, index); in AddPackagePath() 215 std::string path = File::AdapterRealPath(packagePath.substr(index + 1)); in AddPackagePath() 217 Logger::E(TAG, "invalid path '%s'.", packagePath.substr(index + 1).c_str()); in AddPackagePath() 342 return package.substr(rootPackage.size() + 1); in GetSubPackage() 372 std::string subPath = StringHelper::Replace(package.substr(rootPackage.size() + 1), '.', SEPARATOR); in GetPackagePath() 389 std::string className = import.substr(index + 1); in GetImportFilePath()
|
H A D | string_helper.h | 35 const std::string &value, size_t position, const std::string &substr, const std::string &newstr);
|
/drivers/hdf_core/framework/tools/hc-gen/src/ |
H A D | file.cpp | 35 return path.substr(0, dotPos); in StripSuffix() 47 return path.substr(0, separatorPos + 1); in GetDir() 69 return path.substr(sepPos, len); in FileNameBase()
|
H A D | startup_cfg_gen.cpp | 191 configedKeywords.insert(info.substr(firstQuotePos + 1, secondQuotePos - (firstQuotePos + 1))); in HostInfoOutput() 364 std::string malloptKey = mallocOption.substr(0, separatorPos); 365 std::string malloptValue = mallocOption.substr(separatorPos + 1,
|
/drivers/hdf_core/framework/tools/hdi-gen/codegen/ |
H A D | code_emitter.cpp | 42 baseName_ = StringHelper::StartWith(interfaceName_, "I") ? interfaceName_.substr(1) : interfaceName_;
in Reset() 60 std::string prefix = StringHelper::Format("%c%s", tolower(baseName_[0]), baseName_.substr(1).c_str());
in Reset() 120 std::string outPath = StringHelper::EndWith(outDir, SEPARATOR) ? outDir.substr(0, outDir.size() - 1) : outDir;
in GetFileParentPath() 148 fullName = fullName.substr(0, fullName.find("["));
in InterfaceToFilePath() 151 std::string prefix = fullName.substr(0, index + 1);
in InterfaceToFilePath() 152 std::string suffix = fullName.substr(index + 1);
in InterfaceToFilePath() 153 std::string fileName = prefix + (StringHelper::StartWith(suffix, "I") ? suffix.substr(1) : suffix) + "Proxy";
in InterfaceToFilePath()
|
H A D | java_code_emitter.cpp | 40 return StringHelper::Format("%c%s", tolower(name[0]), name.substr(1).c_str());
in MethodName()
|
H A D | cpp_code_emitter.cpp | 299 return (index == std::string::npos) ? value.substr(0) : value.substr(0, index + 1);
in GetNameSpaceByInterface()
|
/drivers/hdf_core/framework/tools/hdi-gen/lexer/ |
H A D | token.cpp | 32 (index == std::string::npos) ? token.location.filePath : token.location.filePath.substr(index + 1);
in LocInfo()
|
/drivers/peripheral/usb/test/moduletest/common/ |
H A D | usb_utils.cpp | 41 logTs = stod(lineStr.substr(pos + tsStartPos, tsLength)); in HasLog() 160 logTs = stod(lineStr.substr(tsStartPos, tsLength)); in GetTsFromLog()
|
/drivers/peripheral/distributed_camera/hdi_service/src/utils/ |
H A D | dcamera.cpp | 71 tokens.push_back(str.substr(lastPos, pos - lastPos)); in SplitString() 76 tokens.push_back(str.substr(lastPos)); in SplitString()
|
/drivers/hdf_core/framework/tools/hdi-gen/ast/ |
H A D | ast_interface_type.cpp | 214 (StringHelper::StartWith(name_, "I") ? name_.substr(1) : name_) + "Proxy").c_str(), name.c_str()); in EmitCppReadVar() 230 std::string stubName = StringHelper::StartWith(name_, "I") ? (name_.substr(1) + "Stub") : (name_ + "Stub"); in EmitJavaReadVar() 238 std::string stubName = StringHelper::StartWith(name_, "I") ? (name_.substr(1) + "Stub") : (name_ + "Stub"); in EmitJavaReadInnerVar()
|
H A D | ast_type.cpp | 385 return (index == std::string::npos) ? value.substr(0) : value.substr(0, index + 1); in GetNamespaceWithColon()
|
/drivers/external_device_manager/services/native/driver_extension_manager/src/device_manager/ |
H A D | device.cpp | 33 return bundleInfo.substr(0, pos);
in GetBundleName() 44 return bundleInfo.substr(pos + stiching_.length());
in GetAbilityName()
|
H A D | etx_device_mgr.cpp | 171 if (startStr.compare(iter->first.substr(0, startStr.size())) == 0) { in DeleteBundlesOfBundleInfoMap()
|
/drivers/peripheral/camera/vdi_base/common/pipeline_core/pipeline_impl/src/builder/ |
H A D | stream_pipeline_builder.cpp | 48 nodeName = it.name_.substr(0, pos); in Build()
|
/drivers/hdf_core/adapter/uhdf2/hdi/src/ |
H A D | hdi_support.cpp | 113 interface = interfaceName[0] == 'I' ? interfaceName.substr(1) : interfaceName; in ParseInterface()
|
/drivers/hdf_core/adapter/uhdf2/hdi/test/smq_test/ |
H A D | smq_test.cpp | 72 std::string element = src.substr(begin, pos - begin);
in Split() 81 std::string element = src.substr(begin);
in Split()
|
/drivers/peripheral/distributed_audio/hdi_service/common/utils/src/ |
H A D | daudio_utils.cpp | 94 value = params.substr(pos + step + 1, splitPosEnd - pos - step - 1); in GetAudioParamStr() 96 value = params.substr(pos + step + 1); in GetAudioParamStr()
|
/drivers/peripheral/distributed_camera/hdi_service/src/dcamera_provider/ |
H A D | dcamera_provider.cpp | 336 (idString.empty() ? idString.c_str() : (idString.substr(0, idString.length() - INGNORE_STR_LEN)).c_str()), in StartCapture() 358 idString.empty() ? idString.c_str() : (idString.substr(0, idString.length() - INGNORE_STR_LEN)).c_str()); in StopCapture()
|
/drivers/hdf_core/framework/tools/hdi-gen/preprocessor/ |
H A D | preprocessor.cpp | 334 std::string parentDir = filePath.substr(0, index);
in CheckPackageName()
|
/drivers/peripheral/camera/vdi_base/common/pipeline_core/pipeline_impl/src/dispatcher/ |
H A D | stream_pipeline_dispatcher.cpp | 240 if (name == (*it)->GetName().substr(0, 3)) { // 3:Copy length in GetNode()
|
/drivers/peripheral/camera/vdi_base/common/dump/src/ |
H A D | camera_dump.cpp | 352 std::string userPerStr = infos[4].substr(0, infos[4].length() - 1); in CheckDiskInfo()
|
/drivers/peripheral/codec/test/demo/heif/src/ |
H A D | buffer_helper.cpp | 54 int ret = sscanf_s(filePath.substr(pos).c_str(), "[%ux%u][%ux%u][fmt0x%x].yuv", in ExtractPixelInfoFromFilePath()
|
/drivers/peripheral/power/interfaces/hdi_service/src/ |
H A D | hibernate.cpp | 125 auto partitionNum = fileSystemInfo.substr(index + 1); in GetResumeInfo()
|