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 的每個項目 firstI[],在間隔 [0, last – first),)。

範例

toupper"範例"一節,呼叫 do_toupper

需求

標題: <locale>

命名空間: std

請參閱

參考

ctype Class