Macros defined in the exi
library.
More...
|
#define | NLIB_EXI_LITERAL(x) NLIB_EXI_STR(x) |
| Adjusts string literals so that they can be passed as string types within the XML parser. More...
|
|
#define | NLIB_EXI_UTF8(x) ::nlib_ns::unicode::ToUtf8Obj(x).c_str() |
| Adjusts string literals within the XML parser so that they can be passed as UTF-8 strings. More...
|
|
#define | NLIB_EXI_STRING(x) ::nlib_ns::unicode::ToWideObj(x).c_str() |
| Adjusts strings encoded in UTF-8, UTF-16, or UTF-32 so that they can be passed as string types within the XML parser. More...
|
|
Macros defined in the exi
library.
Adjusts string literals so that they can be passed as string types within the XML parser.
- Parameters
-
[in] | x | Specifies the string literal. |
- Description
- For example, if you write
NLIB_EXI_LITERAL("string")
, it becomes L"string"
if the internal string type was a wide string, or "string"
otherwise. Note that in Windows, wide string (UTF-16) literals are dynamically converted to UTF-8.
Definition at line 97 of file Types.h.
#define NLIB_EXI_STRING |
( |
|
x | ) |
::nlib_ns::unicode::ToWideObj(x).c_str() |
Adjusts strings encoded in UTF-8, UTF-16, or UTF-32 so that they can be passed as string types within the XML parser.
- Parameters
-
[in] | x | Specifies the string. |
- Description
- For different string types, convert them to the types that can be passed. Note that Shift-JIS is not converted to UTF-8 or UTF-16.
Definition at line 100 of file Types.h.
#define NLIB_EXI_UTF8 |
( |
|
x | ) |
::nlib_ns::unicode::ToUtf8Obj(x).c_str() |
Adjusts string literals within the XML parser so that they can be passed as UTF-8 strings.
- Parameters
-
[in] | x | Internal string within the XML parser. |
- Description
- If the internal strings within the XML parser are wide strings (UTF-16 or UTF-32), they are converted to and retrieved as UTF-8.
Definition at line 99 of file Types.h.