◐ Shell
clean mode source ↗

Null-terminated byte strings - cppreference.com

Da cppreference.com.

Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.

La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui.

Click here for the English version of this page

Terminazione Null stringa di byte (NTB) è una sequenza di byte diversi da zero seguito da un byte con valore pari a zero (il carattere nullo di terminazione). Ogni byte in una stringa di byte codifica un carattere di alcuni set di caratteri. Ad esempio, il {'\x63','\x61','\x74','\0' array di caratteri} è un NTB che fissano la "cat" stringa in codifica 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.

Funzioni

Carattere classificazione

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.

Definizione nell'header <cctype>

Verifica se un carattere è alfanumerico

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.


(funzione) [modifica]

Verifica se un carattere è alfabetico

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.


(funzione) [modifica]

Verifica se un carattere è minuscolo

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.


(funzione) [modifica]

Verifica se un carattere è un carattere maiuscolo

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.


(funzione) [modifica]

Verifica se un carattere è una cifra

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.


(funzione) [modifica]

controlla se un carattere è un carattere esadecimale

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.


(funzione) [modifica]

Verifica se un carattere è un carattere di controllo

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.


(funzione) [modifica]

Verifica se un carattere è un carattere grafico

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.


(funzione) [modifica]

Verifica se un carattere è un carattere di spazio

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.


(funzione) [modifica]

(C++11)

Verifica se un carattere è un carattere vuoto

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.


(funzione) [modifica]

Verifica se un carattere è un carattere di stampa

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.


(funzione) [modifica]

Verifica se un carattere è un carattere di punteggiatura

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.


(funzione) [modifica]

Carattere manipolazione

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.

converte un carattere in minuscolo

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.


(funzione) [modifica]

converte un carattere in maiuscolo

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.


(funzione) [modifica]
ASCII values
(hex)
characters

iscntrl
iswcntrl

isprint
iswprint

isspace
iswspace

isblank
iswblank

isgraph
iswgraph

ispunct
iswpunct

isalnum
iswalnum

isalpha
iswalpha

isupper
iswupper

islower
iswlower

isdigit
iswdigit

isxdigit
iswxdigit

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

Le conversioni in formati numerici

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.

Definizione nell'header <cstdlib>

converte una stringa di byte in un valore in virgola mobile

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.


(funzione) [modifica]

converte una stringa di byte in un valore intero

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.


(funzione) [modifica]

converte una stringa di byte in un valore intero

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.


(funzione) [modifica]

converte una stringa di byte in un valore intero senza segno

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.


(funzione) [modifica]

converte una stringa di byte in un valore in virgola mobile

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.


(funzione) [modifica]

Definizione nell'header <cinttypes>

(C++11)
(C++11)

converte una stringa di byte di std::intmax_t o std::uintmax_t

Original:

converts a byte string to std::intmax_t or std::uintmax_t

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(funzione) [modifica]

Della gestione delle stringhe

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.

Definizione nell'header <cstring>

copia una stringa in un'altra

Original:

copies one string to another

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(funzione) [modifica]

copia un certo numero di caratteri da una stringa ad un altro

Original:

copies a certain amount of characters from one string to another

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(funzione) [modifica]

concatena due stringhe

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.


(funzione) [modifica]

concatena una certa quantità di caratteri di due stringhe

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.


(funzione) [modifica]

trasformare una stringa in modo che strcmp produrrebbe lo stesso risultato strcoll

Original:

transform a string so that strcmp would produce the same result as strcoll

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(funzione) [modifica]

String esame

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.

Definizione nell'header <cstring>

restituisce la lunghezza di una stringa data

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.


(funzione) [modifica]

confronta due stringhe

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.


(funzione) [modifica]

confronta una certa quantità di caratteri di due stringhe

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.


(funzione) [modifica]

confronta due stringhe in accordo con i parametri locali

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.


(funzione) [modifica]

trova la prima occorrenza di un carattere

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.


(funzione) [modifica]

trova l'ultima occorrenza di un carattere

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.


(funzione) [modifica]

restituisce la lunghezza massima del segmento iniziale che consiste
dei soli caratteri trovati in un'altra stringa di byte

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.


(funzione) [modifica]

restituisce la lunghezza massima del segmento iniziale che consiste
dei soli caratteri non trovati in un'altra stringa di byte

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.


(funzione) [modifica]

trova la prima posizione di carattere in una stringa, in un'altra stringa

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.


(funzione) [modifica]

trova la prima occorrenza di una sottostringa di caratteri

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.


(funzione) [modifica]

trova il prossimo token in una stringa di byte

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.


(funzione) [modifica]

Carattere matrice manipolazione

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.

Definizione nell'header <cstring>

cerca una matrice per la prima occorrenza di un carattere

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.


(funzione) [modifica]

mette a confronto due buffer

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.


(funzione) [modifica]

riempie un buffer con un carattere

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.


(funzione) [modifica]

copia un buffer all'altro

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.


(funzione) [modifica]

sposta un buffer all'altro

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.


(funzione) [modifica]

Varie

Original:

Miscellaneous

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Definizione nell'header <cstring>

restituisce una versione di testo di un codice di errore visualizzato

Original:

returns a text version of a given error code

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(funzione) [modifica]