UprString
UprString Force a Pascal-style string into uppercase #include <OSUtils.h> Operating System Utilities
Str255 theStr ; Pascal-style string to upshift Boolean diacStrip ; Strip diacritical marks? UprString forces all lowercase characters in a string ('a'-'z') into their uppercase equivalents ('A'-'Z'). It can optionally strip diacritical marks from
characters above ASCII 127.
theStr is the address of a Pascal-style length-prefixed string. Upon
return, characters in the string have been upshifted in-place (the
length of theStr does not change).
diacStrip specifies whether to convert characters above ASCII 127 that have
diacritical marks (such as 'å') into their unmarked, uppercase
equivalents. It is one of:
FALSE upshift only ('å' becomes 'Å') TRUE upshift and strip diacritical marks ('å' becomes 'A')
Notes: UprString uses the algorithm that should be used when comparing filenames. Macintosh filenames are considered equal if their upshifted