Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/locale/isgraph"

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 graphic, {{cpp|false}} otherwise.
 
Returns {{cpp|true}} if the character is classified as graphic, {{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 isgraph( charT ch, const locale& loc );

Checks if the given character classified as a graphic character (i.e. printable, excluding space) 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 graphic, Template:cpp otherwise.

Possible implementation

Template:eq fun cpp

Example

Template:example cpp

See also

Template:cpp/string/byte/dcl list isgraphTemplate:cpp/string/wide/dcl list iswgraph