ctype::do_toupper

调用虚函数将字符或字符范围转换为大写。

virtual CharType do_toupper(
    CharType ch
) const;
virtual const CharType *do_toupper(
    CharType* first, 
    const CharType* last
) const;

参数

  • ch
    要转换的字符转换为大写。

  • first
    对于第一个字符的指针将转换大小写的字符范围内。

  • last
    指向字符的指针在将转换大小写的字符范围内的最后一个字符之后。

返回值

第一个受保护的成员函数返回参数 ch的大写形式。 如果大写形式不存在,则返回 ch。 第二个受保护的成员函数返回 last。

备注

第二个受保护的成员模板函数。do_toupper(first []I替换 I 的每个元素 first []I,在[0,last – first),)。

示例

toupper参见示例,调用 do_toupper

要求

标头: <locale>

命名空间: std

请参见

参考

ctype Class