Namespace
Varianti

Null-terminated multibyte strings

Da cppreference.com.
< cpp‎ | string

 
 
Stringhe libreria
Null-stringhe terminate
Original:
Null-terminated strings
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Byte stringhe
Multibyte stringhe
Stringhe larghe
Classi
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_string
char_traits
 
Stringhe multibyte null-terminated
Wide / multibyte conversioni
Original:
Wide/multibyte conversions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
mbsinit
Tipi
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
mbstate_t
 
Una stringa null-terminated multibyte (NTMBS), o "stringa multibyte", è una sequenza di byte diversi da zero seguito da un byte con valore pari a zero (il carattere nullo di terminazione).
Original:
A null-terminated multibyte string (NTMBS), or "multibyte string", is a sequence of nonzero bytes followed by a byte with value zero (the terminating null character).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Ogni personaggio memorizzata nella stringa può occupare più di un byte. La codifica utilizzata per rappresentare i caratteri di una stringa di caratteri multibyte è specifica delle impostazioni locali: può essere UTF-8, GB18030, EUC-JP, Shift-JIS, ecc Per esempio, l'array char {'\xe4','\xbd','\xa0','\xe5','\xa5','\xbd','\0'} è un NTMBS tengono la stringa "你好" nella codifica UTF-8 multibyte: i primi tre byte codificare il 你 carattere, i prossimi tre byte codificare l'好 carattere. La stessa stringa codificata in GB18030 è il {'\xc4', '\xe3', '\xba', '\xc3', '\0' char}, in cui è codificato ciascuno dei due personaggi come una sequenza a due byte.
Original:
Each character stored in the string may occupy more than one byte. The encoding used to represent characters in a multibyte character string is locale-specific: it may be UTF-8, GB18030, EUC-JP, Shift-JIS, etc. For example, the char array {'\xe4','\xbd','\xa0','\xe5','\xa5','\xbd','\0'} is an NTMBS holding the string "你好" in UTF-8 multibyte encoding: the first three bytes encode the character 你, the next three bytes encode the character 好. The same string encoded in GB18030 is the char array {'\xc4', '\xe3', '\xba', '\xc3', '\0'}, where each of the two characters is encoded as a two-byte sequence.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
In alcune codifiche multibyte, ogni dato sequenza di caratteri multi-byte può rappresentare caratteri diversi a seconda delle sequenze di byte precedenti, noti come "sequenze di spostamento". Codifiche sono noti come stato-dipendente: la conoscenza dello stato attuale cambiamento deve interpretare ogni personaggio. Un NTMBS è valida solo se si inizia e finisce nello stato di spostamento iniziale: se una sequenza di spostamento è stato utilizzato, la sequenza unshift corrispondente deve essere presente prima che il carattere nullo di terminazione. Esempi di tali codifiche sono i 7-bit, JIS BOCU-1 e SCSI.
Original:
In some multibyte encodings, any given multibyte character sequence may represent different characters depending on the previous byte sequences, known as "shift sequences". Such encodings are known as state-dependent: knowledge of the current shift state is required to interpret each character. An NTMBS is only valid if it begins and ends in the initial shift state: if a shift sequence was used, the corresponding unshift sequence has to be present before the terminating null character. Examples of such encodings are the 7-bit JIS, BOCU-1 and SCSU.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Una stringa di caratteri multibyte è layout compatibile con terminazione null stringa di byte (NTB), che è, può essere memorizzato, copiato, e sono esaminati con le stesse strutture, fatta eccezione per il calcolo del numero di caratteri. Se le impostazioni internazionali corrette è in vigore, funzioni I / O anche gestire le stringhe multibyte. Stringhe multibyte possono essere convertiti in e da stringhe larghe usando le funzioni std::codecvt membri, std::wstring_convert, o le seguenti funzioni dipendenti dalle impostazioni internazionali di conversione:
Original:
A multibyte character string is layout-compatible with null-terminated byte string (NTBS), that is, can be stored, copied, and examined using the same facilities, except for calculating the number of characters. If the correct locale is in effect, I/O functions also handle multibyte strings. Multibyte strings can be converted to and from wide strings using the std::codecvt member functions, std::wstring_convert, or the following locale-dependent conversion functions:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica] Multibyte / conversioni di caratteri larghi

Defined in header <cstdlib>
restituisce il numero di byte nel carattere multibyte successivo
Original:
returns the number of bytes in the next multibyte character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
converte il carattere successivo multibyte a carattere esteso
Original:
converts the next multibyte character to wide character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
converte un carattere esteso alla sua rappresentazione multibyte
Original:
converts a wide character to its multibyte representation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
converte una stringa di caratteri multibyte stretta alla stringa di larghezza
Original:
converts a narrow multibyte character string to wide string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
converte una stringa larga a stretta stringa di caratteri multibyte
Original:
converts a wide string to narrow multibyte character string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
Defined in header <cwchar>
Verifica se l'oggetto mbstate_t rappresenta lo stato iniziale del cambio
Original:
checks if the mbstate_t object represents initial shift state
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
allarga un carattere a singolo byte stretto a carattere esteso, se possibile
Original:
widens a single-byte narrow character to wide character, if possible
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
restringe un carattere esteso ad un carattere a singolo byte stretto, se possibile
Original:
narrows a wide character to a single-byte narrow character, if possible
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
restituisce il numero di byte nel carattere multibyte successivo, determinato stato
Original:
returns the number of bytes in the next multibyte character, given state
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
converte il carattere successivo multibyte a carattere esteso, determinato stato
Original:
converts the next multibyte character to wide character, given state
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
converte un carattere esteso alla sua rappresentazione multibyte, determinato stato
Original:
converts a wide character to its multibyte representation, given state
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
converte una stringa di caratteri multibyte stretta alla stringa di larghezza, determinato stato
Original:
converts a narrow multibyte character string to wide string, given state
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
converte una stringa larga a stretta stringa a caratteri multibyte, determinato stato
Original:
converts a wide string to narrow multibyte character string, given state
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
Defined in header <cuchar>
(C++11)
generare il successivo a 16 bit di caratteri estesi da una stringa multibyte stretta
Original:
generate the next 16-bit wide character from a narrow multibyte string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
(C++11)
convertire un carattere a 16 bit larga a stretta stringa multibyte
Original:
convert a 16-bit wide character to narrow multibyte string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
(C++11)
generare il successivo a 32 bit di caratteri estesi da una stringa multibyte stretta
Original:
generate the next 32-bit wide character from a narrow multibyte string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]
(C++11)
convertire a 32 bit carattere larga a stretta stringa multibyte
Original:
convert a 32-bit wide character to narrow multibyte string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [edit]

[modifica] Tipi

Defined in header <cwchar>
informazioni sullo stato di conversione necessario per scorrere le stringhe di caratteri multibyte
Original:
conversion state information necessary to iterate multibyte character strings
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe) [edit]

[modifica] Macro

Defined in header <climits>
MB_LEN_MAX
numero massimo di byte in un carattere multibyte
Original:
maximum number of bytes in a multibyte character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro costante) [edit]
Defined in header <cstdlib>
MB_CUR_MAX
numero massimo di byte in un carattere multibyte nella corrente C locale
(variabili macro)
Original:
maximum number of bytes in a multibyte character in the current C locale
(variabili macro)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
Defined in header <cuchar>
__STDC_UTF_16__
indica che la codifica UTF-16 è utilizzato da mbrtoc16 e c16rtomb
Original:
indicates that UTF-16 encoding is used by mbrtoc16 and c16rtomb
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro costante)
__STDC_UTF_32__
indica che la codifica UTF-32 è utilizzato da mbrtoc32 e c32rtomb
Original:
indicates that UTF-32 encoding is used by mbrtoc32 and c32rtomb
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(macro costante)