Home
last modified time | relevance | path

Searched refs:slashIndex (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dfscrypt_key_v1_ext.cpp296 auto slashIndex = dir_.rfind('/'); in GetUserIdFromDir() local
297 if (slashIndex != std::string::npos) { in GetUserIdFromDir()
298 std::string last = dir_.substr(slashIndex + 1); in GetUserIdFromDir()
318 auto slashIndex = dir_.rfind('/'); in GetTypeFromDir() local
319 if (slashIndex == std::string::npos) { in GetTypeFromDir()
324 if (slashIndex == 0) { in GetTypeFromDir()
329 slashIndex = dir_.rfind('/', slashIndex - 1); in GetTypeFromDir()
330 if (slashIndex == std::string::npos) { in GetTypeFromDir()
335 std::string el = dir_.substr(slashIndex + 1); // el string is like `el1/100` in GetTypeFromDir()
H A Dbase_key.cpp1065 auto slashIndex = dir_.rfind('/'); in StoreKey() local
1066 if (slashIndex == std::string::npos) { in StoreKey()
1071 if (slashIndex == 0) { in StoreKey()
1076 slashIndex = dir_.rfind('/', slashIndex - 1); in StoreKey()
1077 if (slashIndex == std::string::npos) { in StoreKey()
1082 std::string el = dir_.substr(slashIndex + 1); // el string is like `el1/100` in StoreKey()
1098 auto slashIndex = dir_.rfind('/'); in StoreKey() local
1099 if (slashIndex != std::string::npos) { in StoreKey()
1100 std::string last = dir_.substr(slashIndex + 1); in StoreKey()
H A Dkey_backup.cpp171 auto slashIndex = origDir.rfind("/"); in GetBackupDir() local
172 if (slashIndex == std::string::npos || slashIndex == 0) { in GetBackupDir()
175 std::string prefixStr = origDir.substr(0, slashIndex); in GetBackupDir()
176 std::string endStr = origDir.substr(slashIndex); in GetBackupDir()
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dnative_album_asset.cpp139 size_t slashIndex; in ModifyAlbumAsset() local
143 slashIndex = albumUri.rfind("/"); in ModifyAlbumAsset()
144 if (slashIndex != string::npos) { in ModifyAlbumAsset()
145 newAlbumUri = albumUri.substr(0, slashIndex) + SLASH_CHAR + albumName_; in ModifyAlbumAsset()
/ohos5.0/foundation/filemanagement/user_file_service/services/native/file_access_service/src/
H A Dfile_access_service.cpp110 size_t slashIndex = srcUriStr.rfind("/"); in IsParentUri() local
111 if (slashIndex != string::npos) { in IsParentUri()
112 if (comparedUriStr.compare(srcUriStr.substr(0, slashIndex)) == 0) { in IsParentUri()
125 size_t slashIndex = comparedUriStr.rfind("/"); in IsChildUri() local
126 if (slashIndex != string::npos) { in IsChildUri()
127 if (srcUriStr.compare(comparedUriStr.substr(0, slashIndex)) == 0) { in IsChildUri()
603 size_t slashIndex = uriStr.rfind("/"); in OnChange() local
604 if (slashIndex == string::npos) { in OnChange()
608 string parentUri = uriStr.substr(0, slashIndex); in OnChange()
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/photo_album_test/src/
H A Dphoto_album_test.cpp99 size_t slashIndex = path.rfind('/'); in GetLastDentry() local
100 if (slashIndex != string::npos) { in GetLastDentry()
101 dentry = path.substr(slashIndex + 1); in GetLastDentry()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/deferred_processing/
H A Dmultistages_capture_deferred_photo_proc_session_callback.cpp226 size_t slashIndex = imageId.rfind("/"); in GetCommandByImageId() local
229 if (slashIndex != string::npos) { in GetCommandByImageId()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_mtp/src/
H A Dmtp_data_utils.cpp469 size_t slashIndex = path.rfind('/'); in GetFormatByPath() local
471 if (slashIndex != std::string::npos) { in GetFormatByPath()
472 displayName = path.substr(slashIndex + 1); in GetFormatByPath()
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_object_utils.cpp318 size_t slashIndex = lastPath.rfind(SLASH_CHAR); in GetLastDirExistInDb() local
319 if (slashIndex == string::npos || lastPath.length() <= ROOT_MEDIA_DIR.length()) { in GetLastDirExistInDb()
322 lastPath = lastPath.substr(0, slashIndex); in GetLastDirExistInDb()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_file_extension/src/
H A Dmedia_file_extention_utils.cpp1207 size_t slashIndex = srcPath.rfind(SLASH_CHAR); in HandleAlbumRename() local
1208 string destPath = srcPath.substr(0, slashIndex) + SLASH_CHAR + fileAsset->GetDisplayName(); in HandleAlbumRename()