Searched refs:slashIndex (Results 1 – 10 of 10) sorted by relevance
296 auto slashIndex = dir_.rfind('/'); in GetUserIdFromDir() local297 if (slashIndex != std::string::npos) { in GetUserIdFromDir()298 std::string last = dir_.substr(slashIndex + 1); in GetUserIdFromDir()318 auto slashIndex = dir_.rfind('/'); in GetTypeFromDir() local319 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()
1065 auto slashIndex = dir_.rfind('/'); in StoreKey() local1066 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() local1099 if (slashIndex != std::string::npos) { in StoreKey()1100 std::string last = dir_.substr(slashIndex + 1); in StoreKey()
171 auto slashIndex = origDir.rfind("/"); in GetBackupDir() local172 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()
139 size_t slashIndex; in ModifyAlbumAsset() local143 slashIndex = albumUri.rfind("/"); in ModifyAlbumAsset()144 if (slashIndex != string::npos) { in ModifyAlbumAsset()145 newAlbumUri = albumUri.substr(0, slashIndex) + SLASH_CHAR + albumName_; in ModifyAlbumAsset()
110 size_t slashIndex = srcUriStr.rfind("/"); in IsParentUri() local111 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() local126 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() local604 if (slashIndex == string::npos) { in OnChange()608 string parentUri = uriStr.substr(0, slashIndex); in OnChange()
99 size_t slashIndex = path.rfind('/'); in GetLastDentry() local100 if (slashIndex != string::npos) { in GetLastDentry()101 dentry = path.substr(slashIndex + 1); in GetLastDentry()
226 size_t slashIndex = imageId.rfind("/"); in GetCommandByImageId() local229 if (slashIndex != string::npos) { in GetCommandByImageId()
469 size_t slashIndex = path.rfind('/'); in GetFormatByPath() local471 if (slashIndex != std::string::npos) { in GetFormatByPath()472 displayName = path.substr(slashIndex + 1); in GetFormatByPath()
318 size_t slashIndex = lastPath.rfind(SLASH_CHAR); in GetLastDirExistInDb() local319 if (slashIndex == string::npos || lastPath.length() <= ROOT_MEDIA_DIR.length()) { in GetLastDirExistInDb()322 lastPath = lastPath.substr(0, slashIndex); in GetLastDirExistInDb()
1207 size_t slashIndex = srcPath.rfind(SLASH_CHAR); in HandleAlbumRename() local1208 string destPath = srcPath.substr(0, slashIndex) + SLASH_CHAR + fileAsset->GetDisplayName(); in HandleAlbumRename()