Defined in header <cparse/Generator.hh>
virtual std::string convertUpperCase( std::string const& base ) const noexcept;
Returns a copy of base with every ASCII letter replaced by its upper-case equivalent. Non-letter bytes and non-ASCII bytes are passed through unchanged.
Implemented via std::transform with std::toupper — locale-free, byte-for-byte.
Parameters
| Parameter | Description |
|---|---|
base | The input string. Not mutated. |
Return value
A new string of the same length as base.
Exceptions
noexcept.
Notes
Same byte-oriented, ASCII-only caveat as convertLowerCase.
See also
- Generator::convertLowerCase — the complementary transformation.
- Generator::generateHeaderGuard — a caller.

