MCPcopy Create free account
hub / github.com/android/ndk-samples / StringToUpper

Function StringToUpper

teapots/textured-teapot/src/main/cpp/AssetUtil.cpp:26–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#define IS_LOW_CHAR(c) ((c) >= 'a' && (c) <= 'z')
25#define TO_UPPER_CHAR(c) (c + 'A' - 'a')
26void StringToUpper(std::string& str) {
27 for (auto& ch : str) {
28 if (IS_LOW_CHAR(ch)) ch = TO_UPPER_CHAR(ch);
29 }
30}
31bool AssetEnumerateFileType(AAssetManager* assetManager, const char* type,
32 std::vector<std::string>& files) {
33 if (!assetManager || !type || !*type) return false;

Callers 1

AssetEnumerateFileTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected