Type Definition widestring::ucstr::U16CStr [−][src]
Expand description
C-style string reference for U16CString
.
U16CStr
is aware of nul values. Unless unchecked conversions are used, all U16CStr
strings end with a nul-terminator in the underlying buffer and contain no internal nul values.
The strings may still contain invalid or ill-formed UTF-16 data. These strings are intended to
be used with FFI functions such as Windows API that may require nul-terminated strings.
U16CStr
can be converted to and from many other string types, including
U16String
, OsString
, and String
, making proper
Unicode FFI safe and easy.