Home
last modified time | relevance | path

Searched refs:rfind (Results 1 – 25 of 313) sorted by relevance

12345678910>>...13

/ohos5.0/drivers/hdf_core/framework/tools/hc-gen/src/
H A Dfile.cpp32 auto sepPos = path.rfind(OS_SEPARATOR); in StripSuffix()
33 auto dotPos = path.rfind('.'); in StripSuffix()
43 auto separatorPos = path.rfind(OS_SEPARATOR); in GetDir()
52 auto sepPos = path.rfind(OS_SEPARATOR); in FileNameBase()
53 auto dotPos = path.rfind('.'); in FileNameBase()
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/
H A Dtheme_pack_resource.cpp61 auto lastIndex = jsonPath.rfind('/'); in GetResKey()
65 auto secondLastIndex = jsonPath.rfind('/', lastIndex - 1); in GetResKey()
69 auto thirdLastIndex = jsonPath.rfind('/', secondLastIndex - 1); in GetResKey()
187 auto pos1 = iconPath.rfind('.'); in ParseIcon()
188 auto pos2 = iconPath.rfind('/'); in ParseIcon()
257 auto pos = rootDir.rfind('/'); in GetBundleInfo()
286 auto pos = path.rfind('.'); in LoadThemeResource()
303 auto pos = themePath.rfind('/'); in GetThemeResBundleName()
317 auto pos = iconPath.rfind('/'); in GetIconsBundleName()
334 auto pos1 = path.rfind('.'); in LoadThemeIconResource()
[all …]
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_cloud_sync_notify_handle/src/
H A Dcloud_sync_notify_handler.cpp101 auto dateTakenPos = uriString.rfind('/'); in HandleDeleteEvent()
105 auto fileIdPos = uriString.rfind('/', dateTakenPos - 1); in HandleDeleteEvent()
131 auto newDateTakenPos = uriString.rfind('/'); in HandleTimeUpdateEvent()
135 auto formerDateTakenPos = uriString.rfind('/', newDateTakenPos - 1); in HandleTimeUpdateEvent()
139 auto fileIdPos = uriString.rfind('/', formerDateTakenPos - 1); in HandleTimeUpdateEvent()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/
H A Dmultistages_video_capture_manager.cpp70 string dirPath = filePath.substr(0, filePath.rfind('/')); in AddVideoInternal()
78 string tempPath = realDirPath + filePath.substr(filePath.rfind('/'), in AddVideoInternal()
79 filePath.rfind('.') - filePath.rfind('/')) + "_tmp" + filePath.substr(filePath.rfind('.')); in AddVideoInternal()
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmedia_file_uri.cpp180 auto index = path.rfind('/'); in ParsePathWithExtrPara()
187 index = uriTempNext.rfind('/'); in ParsePathWithExtrPara()
199 index = preStr.rfind('/'); in ParsePathWithExtrPara()
220 std::size_t index = path.rfind("/"); in CalFileId()
489 auto index = uri.rfind(ML_URI_TIME_ID); in GetTimeIdFromUri()
510 auto indexStart = uri.rfind(ML_URI_TIME_ID); in GetTimeIdFromUri()
515 auto indexEnd = uri.rfind(ML_URI_OFFSET); in GetTimeIdFromUri()
559 size_t index = uri.rfind('/'); in GetPathFromUri()
565 index = realTitle.rfind('/'); in GetPathFromUri()
571 index = realTitle.rfind('_'); in GetPathFromUri()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/platform/utils/
H A Ddirectory_ex.cpp54 return string(fileFullName).substr(0, fileFullName.rfind("/") + 1); in ExtractFilePath()
59 return string(fileFullName).substr(fileFullName.rfind("/") + 1, fileFullName.size()); in ExtractFileName()
64 string::size_type pos = fileName.rfind("."); in ExtractFileExt()
74 if (path.rfind("/") != path.size() - 1) { in ExcludeTrailingPathDelimiter()
87 if (path.rfind("/") != path.size() - 1) { in IncludeTrailingPathDelimiter()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/utils/
H A Dfile_utils.cpp163 size_t lastSlash = path.rfind('/'); in DealPicture()
194 …string tempPath = filePath.substr(0, filePath.rfind('.')) + "_tmp" + filePath.substr(filePath.rfin… in SaveVideo()
215 …string tempPath = filePath.substr(0, filePath.rfind('.')) + "_tmp" + filePath.substr(filePath.rfin… in DeleteTempVideoFile()
/ohos5.0/foundation/multimedia/ringtone_library/services/ringtone_scanner/src/
H A Dringtone_scanner_utils.cpp42 size_t lastSlashPosition = path.rfind("/"); in GetFileNameFromUri()
58 size_t dotIndex = path.rfind("."); in GetFileExtension()
116 size_t lastSlashPosition = path.rfind("/"); in GetParentPath()
/ohos5.0/base/startup/init/services/modules/seccomp/scripts/tools/
H A Dlibc_static_analysis.py69 nr_tmp, is_digit = gen_policy.str_convert_to_int(line[line.rfind('#') + 1:])
124 func_name = line[line.find('<') + 1: line.rfind('>')]
162 nr, is_digit = gen_policy.str_convert_to_int(line[line.rfind('#') + 1:])
172 func_name = line[line.find('<') + 1: line.rfind('>')]
205 caller_func_name = line[line.find('<') + 1: line.rfind('>')]
/ohos5.0/drivers/hdf_core/framework/tools/hdi-gen/ast/
H A Dast.cpp40 size_t index = idlFilePath_.rfind('\\'); in SetIdlFile()
42 size_t index = idlFilePath_.rfind('/'); in SetIdlFile()
45 size_t end = idlFilePath_.rfind(".idl"); in SetIdlFile()
55 size_t index = fullName.rfind('.'); in SetFullName()
/ohos5.0/foundation/ability/idl_tool/idl_tool_2/ast/
H A Dast.cpp50 size_t index = idlFilePath_.rfind('\\'); in SetIdlFile()
52 size_t index = idlFilePath_.rfind('/'); in SetIdlFile()
55 size_t end = idlFilePath_.rfind(".idl"); in SetIdlFile()
66 size_t start = fullName.rfind(".."); in SetFullName()
70 size_t index = name.rfind('.'); in SetFullName()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/common/
H A Ddistributeddb_tools_test.cpp46 if (dir.rfind("/") == std::string::npos && dir.rfind("\\") == std::string::npos) { in GetCurrentDir()
51 if (dir.rfind("/") != std::string::npos) { in GetCurrentDir()
52 dir.erase(dir.rfind("/") + 1); in GetCurrentDir()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_scanner/src/scanner/
H A Dscanner_utils.cpp47 size_t lastSlashPosition = path.rfind("/"); in GetFileNameFromUri()
63 size_t dotIndex = path.rfind("."); in GetFileExtension()
121 size_t lastSlashPosition = path.rfind("/"); in GetParentPath()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/plugin/
H A Dplugin_pattern.cpp243 if (packagePathStr.rfind(".hap") != std::string::npos) { in CreatePluginSubContainer()
374 size_t pos_ets = info.pluginName.rfind(ETS_EXT); in GetPackagePath()
379 size_t pos = info.pluginName.rfind(JS_EXT); in GetPackagePath()
414 size_t posAssets = info.pluginName.rfind(assets); in GetPackagePathByAbsolutePath()
427 size_t pos = info.pluginName.rfind("/"); in GetPackagePathByAbsolutePath()
446 auto pos = info.pluginName.rfind(JS_EXT); in GetAbilityNameByWant()
453 size_t pos_ets = strList[0].rfind(ETS_EXT); in GetAbilityNameByWant()
458 auto pos = strList[0].rfind(JS_EXT); in GetAbilityNameByWant()
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_data_manager_utils.cpp47 size_t found = uri.rfind('/'); in GetOperationType()
58 size_t lastSlashPosition = path.rfind("/"); in GetDisPlayNameFromPath()
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Dstring_utils.cpp65 return std::string(fileFullName).substr(0, fileFullName.rfind("/") + 1); in ExtractFilePath()
70 return std::string(fileFullName).substr(fileFullName.rfind("/") + 1, fileFullName.size()); in ExtractFileName()
/ohos5.0/build/ohos/packages/rules/
H A Dcategorized_libraries_utils.py71 pos = item.rfind("/")
80 dir_name = dir_name[:dir_name.rfind("/")]
/ohos5.0/commonlibrary/c_utils/base/src/
H A Ddirectory_ex.cpp110 return string(fileFullName).substr(0, fileFullName.rfind("/") + 1); in ExtractFilePath()
115 return string(fileFullName).substr(fileFullName.rfind("/") + 1, fileFullName.size()); in ExtractFileName()
120 string::size_type pos = fileName.rfind("."); in ExtractFileExt()
130 if (path.rfind("/") != path.size() - 1) { in ExcludeTrailingPathDelimiter()
146 if (path.rfind("/") != path.size() - 1) { in IncludeTrailingPathDelimiter()
/ohos5.0/build/lite/testfwk/
H A Dgen_testfwk_info.py43 platform_name = platform_json_file[(platform_json_file.rfind("/") + 1):]
44 platform_name = platform_name[0: platform_name.rfind(".")]
H A Dgen_module_list_files.py65 options.source_dir[(options.source_dir.rfind("../") + len("../")):])
68 sources_file_name = fold[fold.rfind("/") + len("/"):] + ".sources"
/ohos5.0/foundation/graphic/graphic_2d/graphic_test/graphic_test_framework/src/
H A Drs_graphic_test_ext.cpp78 …std::string s1 = info1->filePath.substr(0, info1->filePath.rfind("/") + 1) + info1->testCaseName +… in Cmp()
79 …std::string s2 = info2->filePath.substr(0, info2->filePath.rfind("/") + 1) + info2->testCaseName +… in Cmp()
/ohos5.0/foundation/multimedia/image_framework/mock/native/src/
H A Ddirectory_ex.cpp27 string::size_type pos = fileName.rfind("."); in ExtractFileExt()
63 if (path.rfind("/") != path.size() - 1) { in IncludeTrailingPathDelimiter()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/plugin/
H A Dplugin_element.cpp275 size_t pos = info.pluginName.rfind(".js"); in GetPackagePath()
295 size_t posAssets = info.pluginName.rfind(assets); in GetPackagePathByAbsolutePath()
308 size_t pos = info.pluginName.rfind("/"); in GetPackagePathByAbsolutePath()
347 if (info.pluginName.rfind(".js") != std::string::npos) { in GetModuleNameByWant()
353 if (strList[0].rfind(".js") != std::string::npos) { in GetModuleNameByWant()
470 if (packagePathStr.rfind(".hap") != std::string::npos) { in RunPluginTask()
/ohos5.0/foundation/multimedia/player_framework/frameworks/native/system_sound_manager/ringtone_player/
H A Dringtone_player_impl.cpp91 hapticUri.rfind(AUDIO_FORMAT_STR) == hapticUri.length() - AUDIO_FORMAT_STR.length()) { in GetNewHapticUriForAudioUri()
92 …hapticUri.replace(hapticUri.rfind(AUDIO_FORMAT_STR), AUDIO_FORMAT_STR.length(), HAPTIC_FORMAT_STR); in GetNewHapticUriForAudioUri()
115 audioUri.rfind(AUDIO_FORMAT_STR) == audioUri.length() - AUDIO_FORMAT_STR.length()) { in GetHapticUriForAudioUri()
118 …hapticUri.replace(hapticUri.rfind(AUDIO_FORMAT_STR), AUDIO_FORMAT_STR.length(), HAPTIC_FORMAT_STR); in GetHapticUriForAudioUri()
125 …defaultRingtoneUri.rfind(AUDIO_FORMAT_STR) == defaultRingtoneUri.length() - AUDIO_FORMAT_STR.lengt… in GetHapticUriForAudioUri()
128 …hapticUri.replace(hapticUri.rfind(AUDIO_FORMAT_STR), AUDIO_FORMAT_STR.length(), HAPTIC_FORMAT_STR); in GetHapticUriForAudioUri()
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/backtrace/
H A Ddfx_kernel_stack.cpp78 auto pos = kernelStack.rfind("pid=" + result[result.size() - 1].str()); in FormatThreadKernelStack()
86 …if ((*it)[2].str().rfind(".elf") != std::string::npos) { // 2 : second of searched element is map … in FormatThreadKernelStack()

12345678910>>...13