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
[] |
Google. . , . , . |
<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.
| ch | ||
| loc |
true, , false .
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-) .
#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
.
| , () | |
| , () |