MCPcopy Create free account
hub / github.com/ElementsProject/elements / ToUpper

Function ToUpper

src/util/strencodings.h:313–316  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

311 * if no conversion is possible.
312 */
313constexpr 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.

Callers 4

FeeModeFromStringFunction · 0.70
BOOST_AUTO_TEST_CASEFunction · 0.50
FUZZ_TARGET_INITFunction · 0.50
FUZZ_TARGETFunction · 0.50

Calls

no outgoing calls

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.40
FUZZ_TARGET_INITFunction · 0.40
FUZZ_TARGETFunction · 0.40