Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

grammar::to_upper

Return c converted to uppercase.

Synopsis

Defined in header <boost/url/grammar/ci_string.hpp>

constexpr char
to_upper(
    char c);
Description

This function returns the character, converting it to uppercase if it is lowercase. The function is defined only for low-ASCII characters.

Example
assert( to_upper( 'a' ) == 'A' );
Exception Safety

Throws nothing.

Return Value

The converted character

Parameters

Name

Description

c

The character to convert

See Also

to_lower.

Convenience header <boost/url/grammar.hpp>


PrevUpHomeNext