.\" -*- coding: UTF-8 -*- '\" t .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de) .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" Modified Sat Jul 24 19:10:00 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified Sun Aug 21 17:51:50 1994 by Rik Faith (faith@cs.unc.edu) .\" Modified Sat Sep 2 21:52:01 1995 by Jim Van Zandt .\" Modified Mon May 27 22:55:26 1996 by Martin Schulze (joey@linux.de) .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH isalpha 3 "5 Febrero 2023" "Páginas de manual de Linux 6.03" .SH NOMBRE isalnum, isalpha, isascii, isblank, iscntrl, isdigit, isgraph, islower, isprint, ispunct, isspace, isupper, isxdigit, isalnum_l, isalpha_l, isascii_l, isblank_l, iscntrl_l, isdigit_l, isgraph_l, islower_l, isprint_l, ispunct_l, isspace_l, isupper_l, isxdigit_l \- funciones de clasificación de caracteres .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .PP \fBint isalnum(int \fP\fIc\fP\fB);\fP \fBint isalpha(int \fP\fIc\fP\fB);\fP \fBint iscntrl(int \fP\fIc\fP\fB);\fP \fBint isdigit(int \fP\fIc\fP\fB);\fP \fBint isgraph(int \fP\fIc\fP\fB);\fP \fBint islower(int \fP\fIc\fP\fB);\fP \fBint isprint(int \fP\fIc\fP\fB);\fP \fBint ispunct(int \fP\fIc\fP\fB);\fP \fBint isspace(int \fP\fIc\fP\fB);\fP \fBint isupper(int \fP\fIc\fP\fB);\fP \fBint isxdigit(int \fP\fIc\fP\fB);\fP .PP \fBint isascii(int \fP\fIc\fP\fB);\fP \fBint isblank(int \fP\fIc\fP\fB);\fP .PP \fBint isalnum_l(int \fP\fIc\fP\fB, locale_t \fP\fIlocale\fP\fB);\fP \fBint isalpha_l(int \fP\fIc\fP\fB, locale_t \fP\fIlocale\fP\fB);\fP \fBint isblank_l(int \fP\fIc\fP\fB, locale_t \fP\fIlocale\fP\fB);\fP \fBint iscntrl_l(int \fP\fIc\fP\fB, locale_t \fP\fIlocale\fP\fB);\fP \fBint isdigit_l(int \fP\fIc\fP\fB, locale_t \fP\fIlocale\fP\fB);\fP \fBint isgraph_l(int \fP\fIc\fP\fB, locale_t \fP\fIlocale\fP\fB);\fP \fBint islower_l(int \fP\fIc\fP\fB, locale_t \fP\fIlocale\fP\fB);\fP \fBint isprint_l(int \fP\fIc\fP\fB, locale_t \fP\fIlocale\fP\fB);\fP \fBint ispunct_l(int \fP\fIc\fP\fB, locale_t \fP\fIlocale\fP\fB);\fP \fBint isspace_l(int \fP\fIc\fP\fB, locale_t \fP\fIlocale\fP\fB);\fP \fBint isupper_l(int \fP\fIc\fP\fB, locale_t \fP\fIlocale\fP\fB);\fP \fBint isxdigit_l(int \fP\fIc\fP\fB, locale_t \fP\fIlocale\fP\fB);\fP .PP \fBint isascii_l(int \fP\fIc\fP\fB, locale_t \fP\fIlocale\fP\fB);\fP .fi .PP .RS -4 Requisitos de Macros de Prueba de Características para glibc (véase \fBfeature_test_macros\fP(7)): .RE .ad l .PP \fBisascii\fP(): .nf _XOPEN_SOURCE || /* glibc >= 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _SVID_SOURCE .fi .PP \fBisblank\fP(): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L .fi .nh .PP \fBisalnum_l\fP(), \fBisalpha_l\fP(), \fBisblank_l\fP(), \fBiscntrl_l\fP(), \fBisdigit_l\fP(), \fBisgraph_l\fP(), \fBislower_l\fP(), \fBisprint_l\fP(), \fBispunct_l\fP(), \fBisspace_l\fP(), \fBisupper_l\fP(), \fBisxdigit_l\fP(): .hy .nf Desde glibc 2.10: _XOPEN_SOURCE >= 700 Antes de glibc 2.10: _GNU_SOURCE .fi .PP \fBisascii_l\fP(): .nf A partir de glibc 2.10: _XOPEN_SOURCE >= 700 && (_SVID_SOURCE || _BSD_SOURCE) Antes de glibc 2.10: _GNU_SOURCE .fi .ad .SH DESCRIPCIÓN These functions check whether \fIc\fP, which must have the value of an \fIunsigned char\fP or \fBEOF\fP, falls into a certain character class according to the specified locale. The functions without the "_l" suffix perform the check based on the current locale. .PP The functions with the "_l" suffix perform the check based on the locale specified by the locale object \fIlocale\fP. The behavior of these functions is undefined if \fIlocale\fP is the special locale object \fBLC_GLOBAL_LOCALE\fP (see \fBduplocale\fP(3)) or is not a valid locale object handle. .PP The list below explains the operation of the functions without the "_l" suffix; the functions with the "_l" suffix differ only in using the locale object \fIlocale\fP instead of the current locale. .TP \fBisalnum\fP() comprueba si el carácter es alfanumérico; es equivalente a \fB(isalpha(\fP\fIc\fP\fB) || isdigit(\fP\fIc\fP\fB))\fP. .TP \fBisalpha\fP() checks for an alphabetic character; in the standard \fB"C"\fP locale, it is equivalent to \fB(isupper(\fP\fIc\fP\fB) || islower(\fP\fIc\fP\fB))\fP. In some locales, there may be additional characters for which \fBisalpha\fP() is true\[em]letters which are neither uppercase nor lowercase. .TP \fBisascii\fP() comprueba si \fIc\fP es un valor \fIunsigned char\fP de 7 bits, que encaje dentro del conjunto de caracteres ASCII. .TP \fBisblank\fP() comprueba si el carácter es un blanco; esto es, un espacio o un tabulador. .TP \fBiscntrl\fP() comprueba si el carácter es de control. .TP \fBisdigit\fP() comprueba si el carácter es un dígito (de 0 a 9). .TP \fBisgraph\fP() comprueba si el carácter es imprimible, exceptuando el espacio en blanco. .TP \fBislower\fP() comprueba si el carácter es una letra minúscula. .TP \fBisprint\fP() comprueba si el carácter es imprimible, incluyendo el espacio en blanco. .TP \fBispunct\fP() comprueba si el carácter es imprimible sin ser un espacio ni un carácter alfanumérico; o sea, si es un signo de puntuación. .TP \fBisspace\fP() checks for white\-space characters. In the \fB"C"\fP and \fB"POSIX"\fP locales, these are: space, form\-feed (\fB\[aq]\ef\[aq]\fP), newline (\fB\[aq]\en\[aq]\fP), carriage return (\fB\[aq]\er\[aq]\fP), horizontal tab (\fB\[aq]\et\[aq]\fP), and vertical tab (\fB\[aq]\ev\[aq]\fP). .TP \fBisupper\fP() comprueba si el carácter es una letra mayúscula. .TP \fBisxdigit\fP() checks for hexadecimal digits, that is, one of .br \fB0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F\fP. .SH "VALOR DEVUELTO" Los valores devueltos son no\-cero si el carácter \fIc\fP cae dentro de la clase pedida, y cero si no. .SH VERSIONES \fBisalnum_l\fP(), \fBisalpha_l\fP(), \fBisblank_l\fP(), \fBiscntrl_l\fP(), \fBisdigit_l\fP(), \fBisgraph_l\fP(), \fBislower_l\fP(), \fBisprint_l\fP(), \fBispunct_l\fP(), \fBisspace_l\fP(), \fBisupper_l\fP(), \fBisxdigit_l\fP(), and \fBisascii_l\fP() are available since glibc 2.3. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .ad l .nh .TS allbox; lbx lb lb l l l. Interfaz Atributo Valor T{ \fBisalnum\fP(), \fBisalpha\fP(), \fBisascii\fP(), \fBisblank\fP(), \fBiscntrl\fP(), \fBisdigit\fP(), \fBisgraph\fP(), \fBislower\fP(), \fBisprint\fP(), \fBispunct\fP(), \fBisspace\fP(), \fBisupper\fP(), \fBisxdigit\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .hy .ad .sp 1 .\" FIXME: need a thread-safety statement about the *_l functions .SH ESTÁNDARES POSIX.1\-2001 specifies \fBisalnum\fP(), \fBisalpha\fP(), \fBisblank\fP(), \fBiscntrl\fP(), \fBisdigit\fP(), \fBisgraph\fP(), \fBislower\fP(), \fBisprint\fP(), \fBispunct\fP(), \fBisspace\fP(), \fBisupper\fP(), and \fBisxdigit\fP(), and also \fBisascii\fP() (as an XSI extension). C99 specifies all of the preceding functions, except \fBisascii\fP(). .PP POSIX.1\-2008 marks \fBisascii\fP() as obsolete, noting that it cannot be used portably in a localized application. .PP POSIX.1\-2008 specifies \fBisalnum_l\fP(), \fBisalpha_l\fP(), \fBisblank_l\fP(), \fBiscntrl_l\fP(), \fBisdigit_l\fP(), \fBisgraph_l\fP(), \fBislower_l\fP(), \fBisprint_l\fP(), \fBispunct_l\fP(), \fBisspace_l\fP(), \fBisupper_l\fP(), and \fBisxdigit_l\fP(). .PP \fBisascii_l\fP() es una extensión GNU. .SH NOTAS The standards require that the argument \fIc\fP for these functions is either \fBEOF\fP or a value that is representable in the type \fIunsigned char\fP. If the argument \fIc\fP is of type \fIchar\fP, it must be cast to \fIunsigned char\fP, as in the following example: .PP .in +4n .EX char c; \&... res = toupper((unsigned char) c); .EE .in .PP This is necessary because \fIchar\fP may be the equivalent of \fIsigned char\fP, in which case a byte where the top bit is set would be sign extended when converting to \fIint\fP, yielding a value that is outside the range of \fIunsigned char\fP. .PP The details of what characters belong to which class depend on the locale. For example, \fBisupper\fP() will not recognize an A\-umlaut (\(:A) as an uppercase letter in the default \fBC\fP locale. .SH "VÉASE TAMBIÉN" \fBiswalnum\fP(3), \fBiswalpha\fP(3), \fBiswblank\fP(3), \fBiswcntrl\fP(3), \fBiswdigit\fP(3), \fBiswgraph\fP(3), \fBiswlower\fP(3), \fBiswprint\fP(3), \fBiswpunct\fP(3), \fBiswspace\fP(3), \fBiswupper\fP(3), \fBiswxdigit\fP(3), \fBnewlocale\fP(3), \fBsetlocale\fP(3), \fBtoascii\fP(3), \fBtolower\fP(3), \fBtoupper\fP(3), \fBuselocale\fP(3), \fBascii\fP(7), \fBlocale\fP(7) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García , Juan Piernas y Marcos Fouces . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .