std::isgraph(std::locale)
From cppreference.com
| 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 std::ctype facet.
Parameters
| ch | - | character |
| loc | - | locale |
Return value
Returns true if the character is classified as graphic, false otherwise.
Possible implementation
template< class charT > bool isgraph( charT ch, const std::locale& loc ) { return std::use_facet<std::ctype<charT>>(loc).is(std::ctype_base::graph, ch); } |