std::iswgraph - cppreference.com
Espacios de nombres
Variantes

std::iswgraph

De cppreference.com
 
 
 
 
Definido en el archivo de encabezado <cwctype>
int iswgraph( std::wint_t ch );
Comprueba si el carácter dado amplia cuenta con una representación gráfica, i. e. o bien es un número (0123456789), una letra mayúscula (ABCDEFGHIJKLMNOPQRSTUVWXYZ), una letra minúscula (abcdefghijklmnopqrstuvwxyz), un personaje puntuacion (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~) o cualquier otro carácter gráfico específico para la actual configuración regional C. .
Original:
Checks if the given wide character has a graphical representation, i. e. it is either a number (0123456789), an uppercase letter (ABCDEFGHIJKLMNOPQRSTUVWXYZ), a lowercase letter (abcdefghijklmnopqrstuvwxyz), a punctuation character(!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~) or any graphical character specific to the current C locale.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parámetros

ch -
carácter amplio
Original:
wide character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Valor de retorno

Valor distinto de cero (true) si el carácter de ancho tiene un carácter de representación gráfica, 0 (false) de lo contrario .
Original:
Non-zero value (true) if the wide character has a graphical representation character, 0 (false) otherwise.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Ejemplo

#include <iostream>
#include <cwctype>
#include <clocale>

int main()
{
    wchar_t c = L'\u2602'; // the Unicode character Umbrella ('☂')

    std::cout << std::hex << std::showbase << std::boolalpha;
    std::cout << "in the default locale, iswgraph(" << (std::wint_t)c << ") = "
              << (bool)std::iswgraph(c) << '\n';
    std::setlocale(LC_ALL, "en_US.utf8");
    std::cout << "in Unicode locale, iswgraph(" << (std::wint_t)c << ") = "
              << (bool)std::iswgraph(c) << '\n';
}

Salida:

in the default locale, iswgraph(0x2602) = false
in Unicode locale, iswgraph(0x2602) = true

Ver también

Comprueba si un carácter está clasificado como gráfico por una configuración regional.
(plantilla de función) [editar]
Comprueba si un carácter es un carácter gráfico
Original:
checks if a character is a graphical character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [editar]
Documentación de C para iswgraph