MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / Lower

Function Lower

src/utils/StringUtils.h:26–34  ·  view source on GitHub ↗

Return the lower case character without taking into account locale like std::tolower, to avoid the "Turkish I" problem in file parsing.

Source from the content-addressed store, hash-verified

24// Return the lower case character without taking into account locale like
25// std::tolower, to avoid the "Turkish I" problem in file parsing.
26inline unsigned char Lower(unsigned char c)
27{
28 if(c >= 'A' && c <= 'Z') {
29 return c + ('a' - 'A');
30 }
31 else {
32 return c;
33 }
34}
35
36// Return the upper case character, without taking into account locale.
37inline unsigned char Upper(unsigned char c)

Callers 15

CompareFunction · 0.85
mainFunction · 0.85
getIndexMethod · 0.85
removeMethod · 0.85
containsSRGBFunction · 0.85
containsBlockedTransformFunction · 0.85
IsEncodingUsedFunction · 0.85
BoolFromStringFunction · 0.85
LoggingLevelFromStringFunction · 0.85
BitDepthFromStringFunction · 0.85
AllocationFromStringFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 6

OCIO_ADD_TESTFunction · 0.68
mainFunction · 0.68
UnitTestMainFunction · 0.68
OCIO_ADD_TESTFunction · 0.68
mainFunction · 0.68
GetFormatNameFunction · 0.68