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

std::isgraph

De cppreference.com
 
 
 
Cadenas de bytes terminadas en nulo
Funciones
Manipulación de caracteres
Conversiones a formatos numéricos
(C++11)(C++11)
(C++11)(C++11)
Manipulación de cadenas
Examinación de cadenas
Manipulación de memoria
Misceláneos
 
Definido en el archivo de encabezado <cctype>
int isgraph( int ch );
Comprueba si el carácter dado tiene una representación gráfica, i. e. o bien es un número (0123456789), una letra mayúscula (ABCDEFGHIJKLMNOPQRSTUVWXYZ), una letra minúscula (abcdefghijklmnopqrstuvwxyz), o un carácter puntuacion (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~), o cualquier carácter gráfico específico para la actual configuración regional C. .
Original:
Checks if the given character has a graphical representation, i. e. it is either a number (0123456789), an uppercase letter (ABCDEFGHIJKLMNOPQRSTUVWXYZ), a lowercase letter (abcdefghijklmnopqrstuvwxyz), or 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
Original:
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 personaje tiene un carácter representación gráfica, 0 (false) de otra manera .
Original:
Non-zero value (true) if the 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 <cctype>
#include <clocale>

int main()
{
    char c = '\xb6'; // the character ¶ in ISO-8859-1

    std::cout << "isgraph(\'\\xb6\', default C locale) returned "
               << std::boolalpha << (bool)std::isgraph(c) << '\n';

    std::setlocale(LC_ALL, "en_GB.iso88591");
    std::cout << "isgraph(\'\\xb6\', ISO-8859-1 locale) returned "
              << std::boolalpha << (bool)std::isgraph(c) << '\n';
}

Salida:

isgraph('\xb6', default C locale) returned false
isgraph('\xb6', ISO-8859-1 locale) returned 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 ancho es un carácter gráfico
Original:
checks if a wide 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 isgraph