Null-terminated byte strings
De cppreference.com
![]() |
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
Una cadena terminada en cero byte (ONA) es una secuencia de bytes distintos de cero seguido de un byte con valor cero (el carácter nulo de terminación). Cada byte en una cadena de bytes codifica un carácter de un conjunto de caracteres. Por ejemplo, la matriz de caracteres {'\x63','\x61','\x74','\0'} es una celebración de la NTBS "cat" cadena en la codificación ASCII .
Original:
A null-terminated byte string (NTBS) is a sequence of nonzero bytes followed by a byte with value zero (the terminating null character). Each byte in a byte string encodes one character of some character set. For example, the character array {'\x63','\x61','\x74','\0'} is an NTBS holding the string "cat" in ASCII encoding.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[editar] Funciones
Original: Character classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
Definido en el archivo de encabezado
<ctype.h> | |
Comprueba si un carácter es alfanumérico Original: checks if a character is alphanumeric The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
Comprueba si un carácter es alfabético Original: checks if a character is alphabetic The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
Comprueba si un carácter en minúsculas Original: checks if a character is lowercase The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
Comprueba si un carácter es un carácter en mayúsculas Original: checks if a character is an uppercase 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) | |
Comprueba si un carácter es un dígito Original: checks if a character is a digit The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
comprueba si un carácter es un carácter hexadecimal Original: checks if a character is a hexadecimal 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) | |
Comprueba si un carácter es un carácter de control Original: checks if a character is a control 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) | |
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) | |
Comprueba si un carácter es un carácter de espacio Original: checks if a character is a space 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) | |
(C99) |
Comprueba si un carácter es un carácter en blanco Original: checks if a character is a blank 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) |
Comprueba si un carácter es un carácter imprimible Original: checks if a character is a printing 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) | |
Comprueba si un carácter es un carácter puntuacion Original: checks if a character is a punctuation 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) | |
Original: Character manipulation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
convierte un carácter en minúsculas Original: converts a character to lowercase The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
convierte un carácter en mayúsculas Original: converts a character to uppercase The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |
ASCII values (hex) |
characters | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 - 8 | 0x00-0x08
|
control codes (NUL , etc.)
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
9 | 0x09
|
tab (\t )
|
≠0
|
0
|
≠0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
10 - 13 | 0x0A-0x0D
|
whitespaces (\n ,\v ,\f ,\r )
|
≠0
|
0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
14 - 31 | 0x0E-0x1F
|
control codes | ≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
32 | 0x20
|
space | 0
|
≠0
|
≠0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
33 - 47 | 0x21-0x2F
|
!"#$%&'()*+,-./
|
0
|
≠0
|
0
|
0
|
≠0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
48 - 57 | 0x30-0x39
|
0123456789
|
0
|
≠0
|
0
|
0
|
≠0
|
0
|
≠0
|
0
|
0
|
0
|
≠0
|
≠0
|
58 - 64 | 0x3a-0x40
|
:;<=>?@
|
0
|
≠0
|
0
|
0
|
≠0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
65 - 70 | 0x41-0x46
|
ABCDEF
|
0
|
≠0
|
0
|
0
|
≠0
|
0
|
≠0
|
≠0
|
≠0
|
0
|
0
|
≠0
|
71 - 90 | 0x47-0x5A
|
GHIJKLMNOPQRSTUVWXYZ
|
0
|
≠0
|
0
|
0
|
≠0
|
0
|
≠0
|
≠0
|
≠0
|
0
|
0
|
0
|
91 - 96 | 0x5B-0x60
|
[\]^_`
|
0
|
≠0
|
0
|
0
|
≠0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
97 -102 | 0x61-0x66
|
abcdef
|
0
|
≠0
|
0
|
0
|
≠0
|
0
|
≠0
|
≠0
|
0
|
≠0
|
0
|
≠0
|
103-122 | 0x67-0x7A
|
ghijklmnopqrstuvwxyz
|
0
|
≠0
|
0
|
0
|
≠0
|
0
|
≠0
|
≠0
|
0
|
≠0
|
0
|
0
|
123-126 | 0x7B-0x7E
|
{|}~
|
0
|
≠0
|
0
|
0
|
≠0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
127 | 0x7F
|
backspace character (DEL )
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
Original: Conversions to numeric formats The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
Definido en el archivo de encabezado
<stdlib.h> | |
convierte una cadena de bytes en un valor de punto flotante Original: converts a byte string to a floating point value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
convierte una cadena de bytes en un valor entero Original: converts a byte string to an integer value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
convierte una cadena de bytes en un valor entero Original: converts a byte string to an integer value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
convierte una cadena de bytes en un valor entero sin signo Original: converts a byte string to an unsigned integer value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
convierte una cadena de bytes en un valor de punto flotante Original: converts a byte string to a floating point value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
Definido en el archivo de encabezado
<inttypes.h> | |
(C99)(C99) |
convierte una cadena de bytes a intmax_t o intmax_t Original: The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |
Original: String manipulation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
Definido en el archivo de encabezado
<string.h> | |
(C11) |
copia una cadena a otra (función) |
(C11) |
copia una cierta cantidad de caracteres de una cadena a otra (función) |
concatena dos cadenas Original: concatenates two strings The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
concatena una cierta cantidad de caracteres de dos cadenas Original: concatenates a certain amount of characters of two strings The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
convierte una subcadena de modo que pueda ser utilizado por las funciones de comparación de cadenas Original: converts a substring so that it can be used by string comparison functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
Original: String examination The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
Definido en el archivo de encabezado
<string.h> | |
devuelve la longitud de una cadena dada Original: returns the length of a given string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
compara dos cadenas Original: compares two strings The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
compara una cierta cantidad de caracteres de dos cadenas Original: compares a certain amount of characters of two strings The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
compara dos cadenas de acuerdo a la localización actual Original: compares two strings in accordance to the current locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
encuentra la primera aparición de un carácter Original: finds the first occurrence of a 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) | |
considera que la última aparición de un carácter Original: finds the last occurrence of a 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) | |
devuelve la longitud del segmento inicial máximo que consiste de sólo los caracteres que se encuentran en otra cadena de bytes Original: returns the length of the maximum initial segment that consists of only the characters found in another byte string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
devuelve la longitud del segmento inicial máximo que consiste de sólo los caracteres que no se encuentran en otra cadena de bytes Original: returns the length of the maximum initial segment that consists of only the characters not found in another byte string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
encuentra la primera ubicación de cualquier carácter en una cadena, en otra cadena Original: finds the first location of any character in one string, in another string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
encuentra la primera aparición de una subcadena de caracteres Original: finds the first occurrence of a substring of characters The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
encuentra el siguiente token de una cadena de bytes Original: finds the next token in a byte string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
Original: Character array manipulation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
Definido en el archivo de encabezado
<string.h> | |
busca en una matriz para la primera aparición de un personaje Original: searches an array for the first occurrence of a 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) | |
compara dos buffers Original: compares two buffers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
llena un búfer con un carácter Original: fills a buffer with a 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) | |
copia un tampón a otro Original: copies one buffer to another The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
se mueve un tampón a otro Original: moves one buffer to another The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
Original: Miscellaneous The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
Definido en el archivo de encabezado
<string.h> | |
(C11)(C11) |
retorna una versión de texto de un código de error dado (función) |