Home
last modified time | relevance | path

Searched refs:substr (Results 1 - 25 of 29) sorted by relevance

12

/drivers/hdf_core/framework/tools/hdi-gen/util/
H A 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()
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 Doptions.cpp214 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 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/
H A 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()
H A Dstartup_cfg_gen.cpp191 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 Dcode_emitter.cpp42 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 Djava_code_emitter.cpp40 return StringHelper::Format("%c%s", tolower(name[0]), name.substr(1).c_str()); in MethodName()
H A Dcpp_code_emitter.cpp299 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 Dtoken.cpp32 (index == std::string::npos) ? token.location.filePath : token.location.filePath.substr(index + 1); in LocInfo()
/drivers/peripheral/usb/test/moduletest/common/
H A Dusb_utils.cpp41 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 Ddcamera.cpp71 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 Dast_interface_type.cpp214 (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 Dast_type.cpp385 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 Ddevice.cpp33 return bundleInfo.substr(0, pos); in GetBundleName()
44 return bundleInfo.substr(pos + stiching_.length()); in GetAbilityName()
H A Detx_device_mgr.cpp171 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 Dstream_pipeline_builder.cpp48 nodeName = it.name_.substr(0, pos); in Build()
/drivers/hdf_core/adapter/uhdf2/hdi/src/
H A Dhdi_support.cpp113 interface = interfaceName[0] == 'I' ? interfaceName.substr(1) : interfaceName; in ParseInterface()
/drivers/hdf_core/adapter/uhdf2/hdi/test/smq_test/
H A Dsmq_test.cpp72 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 Ddaudio_utils.cpp94 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 Ddcamera_provider.cpp336 (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 Dpreprocessor.cpp334 std::string parentDir = filePath.substr(0, index); in CheckPackageName()
/drivers/peripheral/camera/vdi_base/common/pipeline_core/pipeline_impl/src/dispatcher/
H A Dstream_pipeline_dispatcher.cpp240 if (name == (*it)->GetName().substr(0, 3)) { // 3:Copy length in GetNode()
/drivers/peripheral/camera/vdi_base/common/dump/src/
H A Dcamera_dump.cpp352 std::string userPerStr = infos[4].substr(0, infos[4].length() - 1); in CheckDiskInfo()
/drivers/peripheral/codec/test/demo/heif/src/
H A Dbuffer_helper.cpp54 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 Dhibernate.cpp125 auto partitionNum = fileSystemInfo.substr(index + 1); in GetResumeInfo()

Completed in 16 milliseconds

12