Expand description
UTF-16 string helpers.
Structs§
- Fixed
Length String - A fixed-length UTF-16 string, stored as a
u16array with a lazily cachedString. - U16String
- A UTF-16 string with no length limit, terminated by a
0, with a lazily cachedString.
Functions§
- cast_
to_ c_ array - Transform string to [u16] without length limit but a \0 in the end.
- cast_
to_ fix_ length_ array - Transform string to [u16] with a fixed size.
Differennt from ygopro, it will keeps 0 for residual part. - cast_
to_ string - transform [u16] to string.
returnNoneif it’s illegal.