* Converts the given character to its uppercase equivalent. * This function is locale independent. It only converts lowercase * characters in the standard 7-bit ASCII range. * This is a feature, not a limitation. * * @param[in] c the character to convert to uppercase. * @return the uppercase equivalent of c; or the argument * if no conversion is possible. */
| 311 | * if no conversion is possible. |
| 312 | */ |
| 313 | constexpr char ToUpper(char c) |
| 314 | { |
| 315 | return (c >= 'a' && c <= 'z' ? (c - 'a') + 'A' : c); |
| 316 | } |
| 317 | |
| 318 | /** |
| 319 | * Returns the uppercase equivalent of the given string. |
no outgoing calls