std::ispunct(std::locale) (3) - Linux Manuals
std::ispunct(std::locale): std::ispunct(std::locale)
NAME
std::ispunct(std::locale) - std::ispunct(std::locale)
Synopsis
Defined in header <locale>
template< class charT >
bool ispunct( charT ch, const locale& loc );
Checks if the given character is classified as an punctuation character by the given locale's std::ctype facet.
Parameters
ch - character
loc - locale
Return value
Returns true if the character is classified as punctuation, false otherwise.
Possible implementation
Example
Demonstrates the use of ispunct() with different locales (OS-specific).
// Run this code
Output:
See also
ispunct (function)
iswpunct (function)