[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/locale/islower [Back]  [Original]

std::islower<div class="t-tr-text">(STD :: )<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">:</div><div class="t-tr-dropdown-orig">(std::locale)</div><div class="t-tr-dropdown-notes"> [http://translate.google.com Google].<br/> . [http://en.cppreference.com/w/Cppreference:MachineTranslations ].</div></div></div></div></div> cppreference.com
cppreference.com

std::islower<div class="t-tr-text">(STD :: )<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">:</div><div class="t-tr-dropdown-orig">(std::locale)</div><div class="t-tr-dropdown-notes"> [http://translate.google.com Google].<br/> . [http://en.cppreference.com/w/Cppreference:MachineTranslations ].</div></div></div></div></div>

cppreference.com

<metanoindex/>

<tbody> </tbody>
template< class charT > bool islower( charT ch, const locale& loc );


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

ch
:
character
Google.
. .
loc
:
locale
Google.
. .

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

template< class charT >
bool islower( charT ch, const std::locale& loc ) {
    return std::use_facet<std::ctype<charT>>(loc).is(std::ctype_base::lower, ch);
}

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

#include <iostream>
#include <locale>
int main()
{
    const wchar_t c = L'\u03c0'; // greek small letter pi

    std::locale loc1("C");
    std::cout << "islower('', C locale) returned "
               << std::boolalpha << std::islower(c, loc1) << '\n';

    std::locale loc2("en_US.UTF8");
    std::cout << "islower('', Unicode locale) returned "
              << std::boolalpha << std::islower(c, loc2) << '\n';
}

:

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

.

,
() []
,
() []

Web Proxy Viewer  |  New URL  |  Original Page