![]() This was intended for Unicode but it is increasingly common to use UTF-8 in normal strings for Unicode instead. C90 defines wide strings which use a code unit of type wchar_t, which is 16 or 32 bits on modern machines. ![]() ![]() Generally, the term string means a string where the code unit is of type char, which is exactly 8 bits on all modern machines. The memory occupied by a string is always one more code unit than the length, as space is needed to store the zero terminator. The length of a string is the number of code units before the zero code unit. This means a string cannot contain the zero code unit, as the first one seen marks the end of the string. A string is defined as a contiguous sequence of code units terminated by the first zero code unit (often called the NUL code unit).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |