MCPcopy Create free account
hub / github.com/CyanogenMod/android_frameworks_base / endsWith

Function endsWith

tools/aapt/Package.cpp:658–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656}
657
658bool endsWith(const char* haystack, const char* needle)
659{
660 size_t a = strlen(haystack);
661 size_t b = strlen(needle);
662 if (a < b) return false;
663 return strcasecmp(haystack+(a-b), needle) == 0;
664}
665
666ssize_t processJarFile(ZipFile* jar, ZipFile* out)
667{

Callers 3

slurpResourceZipMethod · 0.85
processOverlayFileFunction · 0.85
processJarFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected