std::islower(std::locale) - cppreference.com (original) (raw)

| | | | | --------------------------------------------------------------------- | | | | template< class CharT > bool islower( CharT ch, const locale& loc ); | | |

Checks if the given character is classified as a lowercase alphabetic character by the given locale's std::ctype facet.

[edit] Parameters

ch - character
loc - locale

[edit] Return value

Returns true if the character is classified as lowercase, false otherwise.

[edit] Possible implementation

[edit] Example

Demonstrates the use of islower() with different locales (OS-specific).

Possible output:

islower('π', C locale) returned false isupper('π', C locale) returned false islower('π', Unicode locale) returned true isupper('π', Unicode locale) returned false

[edit] See also