Home
last modified time | relevance | path

Searched refs:substr (Results 1 – 21 of 21) sorted by relevance

/drivers/hdf_core/framework/tools/hdi-gen/util/
Dstring_helper.cpp32 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() argument
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(start, end - start); in SubStr()
Doptions.cpp190 std::string package = packagePath.substr(0, index); in AddPackagePath()
191 std::string path = File::AdapterRealPath(packagePath.substr(index + 1)); in AddPackagePath()
193 Logger::E(TAG, "invalid path '%s'.", packagePath.substr(index + 1).c_str()); in AddPackagePath()
318 return package.substr(rootPackage.size() + 1); in GetSubPackage()
348 …std::string subPath = StringHelper::Replace(package.substr(rootPackage.size() + 1), '.', SEPARATOR… in GetPackagePath()
365 std::string className = import.substr(index + 1); in GetImportFilePath()
Dstring_helper.h35 … const std::string &value, size_t position, const std::string &substr, const std::string &newstr);
/drivers/hdf_core/framework/tools/hc-gen/src/
Dfile.cpp35 return path.substr(0, dotPos); in StripSuffix()
47 return path.substr(0, separatorPos + 1); in GetDir()
69 return path.substr(sepPos, len); in FileNameBase()
/drivers/hdf_core/framework/tools/hdi-gen/lexer/
Dtoken.cpp32 …(index == std::string::npos) ? token.location.filePath : token.location.filePath.substr(index + 1); in LocInfo()
/drivers/external_device_manager/services/native/driver_extension_manager/src/drivers_pkg_manager/
Ddriver_pkg_manager.cpp119 …ret->bundleName = bundleName.substr(0, bundleName.find_first_of(bundleStateCallback_->GetStiching(… in QueryMatchDriver()
120 …ret->abilityName = bundleName.substr(bundleName.find_last_of(bundleStateCallback_->GetStiching()) … in QueryMatchDriver()
Ddrv_bundle_state_callback.cpp345 string bundleName = ele.first.substr(0, ele.first.find_first_of(GetStiching())); in OnBundleDrvAdded()
346 string abilityName = ele.first.substr(ele.first.find_last_of(GetStiching()) + 1); in OnBundleDrvAdded()
362 … string abilityName = iter->first.substr(iter->first.find_last_of(GetStiching()) + 1); in OnBundleDrvRemoved()
/drivers/peripheral/usb/test/moduletest/common/
Dusb_utils.cpp41 logTs = stod(lineStr.substr(pos + tsStartPos, tsLength)); in HasLog()
160 logTs = stod(lineStr.substr(tsStartPos, tsLength)); in GetTsFromLog()
/drivers/hdf_core/framework/tools/hdi-gen/codegen/
Dcode_emitter.cpp42 …baseName_ = StringHelper::StartWith(interfaceName_, "I") ? interfaceName_.substr(1) : interfaceNam… in Reset()
60 …std::string prefix = StringHelper::Format("%c%s", tolower(baseName_[0]), baseName_.substr(1).c_str… in Reset()
117 …std::string outPath = StringHelper::EndWith(outDir, SEPARATOR) ? outDir.substr(0, outDir.size() - … in GetFileParentPath()
Djava_code_emitter.cpp40 return StringHelper::Format("%c%s", tolower(name[0]), name.substr(1).c_str()); in MethodName()
/drivers/peripheral/distributed_camera/hdi_service/src/utils/
Ddcamera.cpp71 tokens.push_back(str.substr(lastPos, pos - lastPos)); in SplitString()
76 tokens.push_back(str.substr(lastPos)); in SplitString()
/drivers/peripheral/camera/vdi_base/common/pipeline_core/pipeline_impl/src/builder/
Dstream_pipeline_builder.cpp35 nodeName = it.name_.substr(0, pos); in Build()
/drivers/external_device_manager/services/native/driver_extension_manager/src/device_manager/
Ddevice.cpp32 return bundleInfo.substr(0, pos); in GetBundleName()
43 return bundleInfo.substr(pos + stiching_.length()); in GetAbilityName()
/drivers/hdf_core/adapter/uhdf2/hdi/test/smq_test/
Dsmq_test.cpp63 std::string element = src.substr(begin, pos - begin); in Split()
72 std::string element = src.substr(begin); in Split()
/drivers/peripheral/distributed_camera/hdi_service/src/dcamera_provider/
Ddcamera_provider.cpp288 …(idString.empty() ? idString.c_str() : (idString.substr(0, idString.length() - INGNORE_STR_LEN)).c… in StartCapture()
310 …idString.empty() ? idString.c_str() : (idString.substr(0, idString.length() - INGNORE_STR_LEN)).c_… in StopCapture()
/drivers/hdf_core/adapter/uhdf2/hdi/src/
Dhdi_support.cpp113 interface = interfaceName[0] == 'I' ? interfaceName.substr(1) : interfaceName; in ParseInterface()
/drivers/peripheral/camera/vdi_base/common/pipeline_core/pipeline_impl/src/dispatcher/
Dstream_pipeline_dispatcher.cpp238 if (name == (*it)->GetName().substr(0, 3)) { // 3:Copy length in GetNode()
/drivers/hdf_core/framework/tools/hdi-gen/ast/
Dast_interface_type.cpp219 …std::string stubName = StringHelper::StartWith(name_, "I") ? (name_.substr(1) + "Stub") : (name_ +… in EmitJavaReadVar()
227 …std::string stubName = StringHelper::StartWith(name_, "I") ? (name_.substr(1) + "Stub") : (name_ +… in EmitJavaReadInnerVar()
/drivers/hdf_core/framework/tools/hdi-gen/preprocessor/
Dpreprocessor.cpp334 std::string parentDir = filePath.substr(0, index); in CheckPackageName()
/drivers/hdf_core/framework/tools/hdi-gen/parser/
Dparser.cpp259 seqType->SetName(seqName.substr(index + 1)); in ParseSequenceableInfo()
260 seqType->SetNamespace(ast_->ParseNamespace(seqName.substr(0, index))); in ParseSequenceableInfo()
1676 std::string parentDir = filePath.substr(0, index); in CheckPackageName()
1781 if (extendsInterfaceName.substr(index + 1).compare(interfaceName) != 0) { in CheckExtendsName()
/drivers/peripheral/camera/vdi_base/common/adapter/platform/mpp/src/device_manager/
Dmpi_device_manager.cpp450 std::string num = controllerName.substr((controllerName.find("#")) + 1); in CheckNodePortNum()