MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / TryGetAssetPath

Method TryGetAssetPath

Sources/Shared/IO/AndroidAssetStream.cpp:196–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

hasPrefixMethod · 0.45
sizeMethod · 0.45
exceptPrefixMethod · 0.45

Tested by

no test coverage detected