x_cstr_to_wcstr
Utility for null-terminated C-strings.
X_STRING_API size_t x_cstr_to_wcstr(
const char *src,
wchar_t *dest,
size_t max
);
Parameters
const char *src
- Source buffer or string.
wchar_t *dest
- Destination buffer.
size_t max
- Capacity of the destination buffer (in elements).
Returns
Number of units written or measured (excluding the final terminator, if any).
x_utf8_to_wcstr
Converts between string encodings.
X_STRING_API size_t x_utf8_to_wcstr(
const char *utf8,
wchar_t *wide,
size_t max
);
Parameters
const char *utf8
- Source UTF-8 string.
wchar_t *wide
- Destination wide-character buffer.
size_t max
- Capacity of the destination buffer (in elements).
Returns
Number of units written or measured (excluding the final terminator, if any).
x_wcstr_to_cstr
Utility for null-terminated wide C-strings.
X_STRING_API size_t x_wcstr_to_cstr(
const wchar_t *src,
char *dest,
size_t max
);
Parameters
const wchar_t *src
- Source buffer or string.
char *dest
- Destination buffer.
size_t max
- Capacity of the destination buffer (in elements).
Returns
Number of units written or measured (excluding the final terminator, if any).
x_wcstr_to_utf8
Converts between string encodings.
X_STRING_API size_t x_wcstr_to_utf8(
const wchar_t *wide,
char *utf8,
size_t max
);
Parameters
const wchar_t *wide
- Destination wide-character buffer.
char *utf8
- Source UTF-8 string.
size_t max
- Capacity of the destination buffer (in elements).
Returns
Number of units written or measured (excluding the final terminator, if any).