ctype::do_tolower

A virtual function called to convert a character or a range of characters to lower case.

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

Parameters

  • ch
    The character to be converted to lower case.

  • first
    A pointer to the first character in the range of characters whose cases are to be converted.

  • last
    A pointer to the character immediately following the last character in the range of characters whose cases are to be converted.

Return Value

The first protected member function returns the lowercase form of the parameter ch. If no lowercase form exists, it returns ch. The second protected member function returns last.

Remarks

The second protected member template function replaces each element first [I], for I in the interval [0, last – first), with do_tolower(first [I]).

Example

See the example for tolower, which calls do_tolower.

Requirements

Header: <locale>

Namespace: std

See Also

Reference

ctype Class