[][src]Crate arf_strings

Functions

bytes_to_host

Convert a byte sequence which is either plain UTF-8 or an ARF encoding into a CString ready for use in POSIX-style APIs.

host_c_str_to_bytes

Convert an &CStr produced by POSIX-style APIs into a Cow<[u8]> which is either plain UTF-8 or an ARF encoding.

host_c_str_to_str

Convert an &CStr produced by POSIX-style APIs into a Cow<str> which is either plain UTF-8 or an ARF encoding.

host_os_str_to_bytes

Convert an &OsStr produced by POSIX-style APIs into a Cow<[u8]> which is either plain UTF-8 or an ARF encoding. Returns an error if the input string contains NUL bytes.

host_os_str_to_str

Convert an &OsStr produced by POSIX-style APIs into a Cow<str> which is either plain UTF-8 or an ARF encoding. Returns an error if the input string contains NUL bytes.

str_to_host

Convert a &str which is either plain UTF-8 or an ARF encoding into a CString ready for use in POSIX-style APIs.