nlib
|
Class used to normalize a unicode string. More...
#include "nn/nlib/unicode/UnicodeNormalizer.h"
Public Types | |
enum | NormalizationForm { kNfc, kNfd, kNfkc, kNfkd } |
Specifies the unicode normalization format. More... | |
Static Public Member Functions | |
static errno_t | Normalize (InputStream *istr, OutputStream *ostr, NormalizationForm form) |
Normalizes unicode (UTF-8) strings. More... | |
Class used to normalize a unicode string.
Definition at line 29 of file UnicodeNormalizer.h.
Specifies the unicode normalization format.
UnicodeNormalizer::Normalize
function. Definition at line 31 of file UnicodeNormalizer.h.
|
static |
Normalizes unicode (UTF-8) strings.
[in] | istr | Input stream to read the UTF-8 string to be normalized. |
[in] | ostr | Output stream where the normalized UTF-8 string is written to. |
[in] | form | Specifies the normalization method. |
0 | No error occurred. |
EINVAL | Indicates that istr or ostr is NULL . |
EILSEQ | Umlaut and similar characters are too long. (See UAX #15, Section 13.) |
An | error has occurred in another stream. |
© 2012-2017 Nintendo Co., Ltd. All rights reserved.