| 194 | } |
| 195 | |
| 196 | Containers::StringView AndroidAssetStream::TryGetAssetPath(const Containers::StringView path) |
| 197 | { |
| 198 | if (path.hasPrefix(Prefix)) { |
| 199 | std::size_t prefixLength = Prefix.size(); |
| 200 | if (prefixLength < path.size() && (path[prefixLength] == '/' || path[prefixLength] == '\\')) { |
| 201 | prefixLength++; |
| 202 | } |
| 203 | return path.exceptPrefix(prefixLength); |
| 204 | } |
| 205 | return {}; |
| 206 | } |
| 207 | |
| 208 | const char* AndroidAssetStream::GetInternalDataPath() |
| 209 | { |
nothing calls this directly
no test coverage detected