Skip to content

0.4.0

Compare
Choose a tag to compare
@starkat99 starkat99 released this 18 Aug 06:38

Added

  • New U32String, U32Str, U32CString, and U32CStr types for dealing with UTF-32 FFI. These
    new types are roughly equivalent to the existing UTF-16 types.
  • WideChar is a type alias to u16 on Windows but u32 on non-Windows platforms.
  • The generic types UString, UStr, UCString and UCStr are used to implement the string
    types.

Changed

  • Breaking Change Existing wide string types have been renamed to U16String, U16Str,
    U16CString, and U16CStr (previously WideString, WideStr, etc.). Some function have
    also been renamed to reflect this change (wide_str to u16_str, etc.).
  • Breaking Change WideString, WideStr, WideCString, and WideCStr are now type aliases
    that vary between platforms. On Windows, these are aliases to the U16 types and are equivalent
    to the previous version, but on non-Windows platforms these alias the new U32 types instead.
    See crate documentation for more details.