Home
last modified time | relevance | path

Searched refs:rfind (Results 1 - 25 of 252) sorted by relevance

1234567891011

/foundation/multimedia/media_library/frameworks/services/media_cloud_sync_notify_handle/src/
H A Dcloud_sync_notify_handler.cpp82 auto dateTakenPos = uriString.rfind('/'); in HandleDeleteEvent()
86 auto fileIdPos = uriString.rfind('/', dateTakenPos - 1); in HandleDeleteEvent()
107 auto newDateTakenPos = uriString.rfind('/'); in HandleTimeUpdateEvent()
111 auto formerDateTakenPos = uriString.rfind('/', newDateTakenPos - 1); in HandleTimeUpdateEvent()
115 auto fileIdPos = uriString.rfind('/', formerDateTakenPos - 1); in HandleTimeUpdateEvent()
/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()
/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()
/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/utils/
H A Dfile_utils.cpp160 size_t lastSlash = path.rfind('/'); in DealPicture()
190 string tempPath = filePath.substr(0, filePath.rfind('.')) + "_tmp" + filePath.substr(filePath.rfind('.')); in SaveVideo()
211 string tempPath = filePath.substr(0, filePath.rfind('.')) + "_tmp" + filePath.substr(filePath.rfind('.')); in DeleteTempVideoFile()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmedia_file_uri.cpp182 auto index = path.rfind('/'); in ParsePathWithExtrPara()
189 index = uriTempNext.rfind('/'); in ParsePathWithExtrPara()
201 index = preStr.rfind('/'); in ParsePathWithExtrPara()
222 std::size_t index = path.rfind("/"); in CalFileId()
224 MEDIA_ERR_LOG("failed to rfind /, path is %{private}s", path.c_str()); in CalFileId()
491 auto index = uri.rfind(ML_URI_TIME_ID); in GetTimeIdFromUri()
512 auto indexStart = uri.rfind(ML_URI_TIME_ID); in GetTimeIdFromUri()
517 auto indexEnd = uri.rfind(ML_URI_OFFSET); in GetTimeIdFromUri()
562 size_t index = uri.rfind('/'); in GetPathFromUri()
568 index = realTitle.rfind('/'); in GetPathFromUri()
[all...]
/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()
/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()
/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()
/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()
H A Dzip_util.cpp97 auto pos = file.rfind("/"); in GetDestFilePath()
101 pos = parent.rfind("/"); in GetDestFilePath()
/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()
/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()
/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()
/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()
/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()
/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.length()) { in GetHapticUriForAudioUri()
128 hapticUri.replace(hapticUri.rfind(AUDIO_FORMAT_STR), AUDIO_FORMAT_STR.length(), HAPTIC_FORMAT_STR); in GetHapticUriForAudioUri()
/foundation/graphic/graphic_3d/lume/LumeEcsSerializer/Util/src/util/
H A Dpath_util.cpp71 const size_t separatorPos = path.rfind('/'); in GetParentPath()
169 size_t fileExtCut = path.rfind('.'); in GetExtension()
184 size_t fileExtCut = filename.rfind("."); in GetBaseName()
/foundation/ability/ability_runtime/frameworks/native/ability/native/child_process_manager/
H A Djs_child_process.cpp55 if (srcPath.rfind(".") != std::string::npos) { in Init()
56 srcPath.erase(srcPath.rfind(".")); in Init()
/foundation/ability/ability_runtime/frameworks/native/ability/native/
H A Ddata_uri_utils.cpp82 auto lastPathPos = uriString.rfind(tempLastPath); in AttachId()
207 int lastPathPos = (int)uriString.rfind(string(SEPARATOR) + lastPath); in UriUpateLastPath()
/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/frame_rate_manager/
H A Dhgm_idle_detector.cpp69 if (surfaceName.rfind(supportedAppBuffer, 0) == 0) { in GetUnknownFrameworkState()
81 if (surfaceName.rfind(supportedAppBuffer, 0) == 0) { in GetSurfaceFrameworkState()
/foundation/filemanagement/app_file_service/utils/src/b_hiaudit/
H A Dzip_util.cpp96 auto pos = file.rfind("/"); in GetDestFilePath()
100 pos = parent.rfind("/"); in GetDestFilePath()
/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 + info1->testName; in Cmp()
79 std::string s2 = info2->filePath.substr(0, info2->filePath.rfind("/") + 1) + info2->testCaseName + info2->testName; in Cmp()
/foundation/filemanagement/storage_service/services/storage_daemon/utils/
H A Dzip_util.cpp97 auto pos = file.rfind("/"); in GetDestFilePath()
101 pos = parent.rfind("/"); in GetDestFilePath()
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/src/
H A Dbundle_file_utils.cpp178 if (rootDir.find(PATH_SEPARATOR) != 0 || rootDir.rfind(PATH_SEPARATOR) != (rootDir.size() - 1) || in IsValidPath()
190 std::size_t pos = path.rfind(PATH_SEPARATOR); in GetPathDir()
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/benchmarks/benchmark_dcl/
H A Dskia_recording.cpp42 if (captureFileName_.rfind(fileExtension) == (captureFileName_.size() - fileExtension.size())) { in InitConfigsFromParam()
160 if (captureFileName_.rfind(fileExtension) == (captureFileName_.size() - fileExtension.size())) { in EndCapture()

Completed in 13 milliseconds

1234567891011