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

Function Upper

src/utils/StringUtils.h:37–45  ·  view source on GitHub ↗

Return the upper case character, without taking into account locale.

Source from the content-addressed store, hash-verified

35
36// Return the upper case character, without taking into account locale.
37inline unsigned char Upper(unsigned char c)
38{
39 if(c >= 'a' && c <= 'z') {
40 return c - ('a' - 'A');
41 }
42 else {
43 return c;
44 }
45}
46
47// Checks if character is whitespace (space, tab, newline or other
48// non-printable char). Does not take locale into account.

Callers 2

startswithUFunction · 0.85
OCIO_ADD_TESTFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 1

OCIO_ADD_TESTFunction · 0.68