Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/locale/isalpha"

From cppreference.com
< cpp‎ | locale
m (Text replace - "cpp/string/narrow" to "cpp/string/byte")
m (Text replace - "===Equivalent function===" to "===Possible implementation===")
Line 19: Line 19:
 
Returns {{cpp|true}} if the character is classified as alphabetic, {{cpp|false}} otherwise.
 
Returns {{cpp|true}} if the character is classified as alphabetic, {{cpp|false}} otherwise.
  
===Equivalent function===
+
===Possible implementation===
 
{{eq fun cpp
 
{{eq fun cpp
 
  | 1=
 
  | 1=

Revision as of 11:58, 19 March 2012

Template:cpp/locale/sidebar

Defined in header <locale>
template< class charT >
bool isalpha( charT ch, const locale& loc );

Checks if the given character classified as an alphabetic character by the given locale's Template:cpp facet.

Contents

Parameters

ch - character
loc - locale

Return value

Returns Template:cpp if the character is classified as alphabetic, Template:cpp otherwise.

Possible implementation

Template:eq fun cpp

Example

Template:example cpp

See also

Template:cpp/string/byte/dcl list isalphaTemplate:cpp/string/wide/dcl list iswalpha