Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Fields
afw_utf8_s Struct Reference

NFC normalized UTF-8 string. More...

#include <afw_common.h>

Data Fields

const afw_utf8_octet_ts
 
afw_size_t len
 

Detailed Description

NFC normalized UTF-8 string.

IMPORTANT: This must match up with afw_utf8_t since it is accepted to cast from afw_utf8_t to afw_memory_t. Don't cast the other way around unless you are positive ptr point to NFC Unicode – use afw_utf8_from_raw() instead.

All UTF-8 strings MUST be NFC normalized. Doing otherwise can cause unintended minor or major errors.

See RFC 5198 and http://unicode.org/reports/tr15/

This string is not null terminated, so it can contain NUL characters. The number of bytes in the sting is stored in len and a pointer to the first byte in s.

See also
afw_utf8_octet_t for more information.

Definition at line 545 of file afw_common.h.


The documentation for this struct was generated from the following file: