pub struct CP(/* private fields */);
kernel
only.Expand description
WideCharToMultiByte
and
MultiByteToWideChar
code_page
identifiers
(u16
).
Originally these functions receive an u32
parameter, but these are in
fact u16
constants.
Implementations§
source§impl CP
impl CP
sourcepub const unsafe fn from_raw(v: u16) -> Self
pub const unsafe fn from_raw(v: u16) -> Self
Constructs a new object by wrapping the given integer value.
§Safety
Be sure the given value is meaningful for the actual type.
sourcepub const fn raw(&self) -> u16
pub const fn raw(&self) -> u16
Returns the primitive integer underlying value.
This method is similar to Into
, but it
is const
, therefore it can be used in
const contexts.
source§impl CP
impl CP
sourcepub const THREAD_ACP: Self = _
pub const THREAD_ACP: Self = _
The Windows ANSI code page for the current thread.
sourcepub const UTF16: Self = _
pub const UTF16: Self = _
Unicode UTF-16 little endian byte order (BMP of ISO 10646); available only to managed applications.
sourcepub const UNICODE_FFFE: Self = _
pub const UNICODE_FFFE: Self = _
Unicode UTF-16 big endian byte order; available only to managed applications.
sourcepub const WINDOWS_1250: Self = _
pub const WINDOWS_1250: Self = _
ANSI Central European; Central European (Windows).
sourcepub const WINDOWS_1251: Self = _
pub const WINDOWS_1251: Self = _
ANSI Cyrillic; Cyrillic (Windows).
sourcepub const WINDOWS_1252: Self = _
pub const WINDOWS_1252: Self = _
ANSI Latin 1; Western European (Windows).
sourcepub const WINDOWS_1253: Self = _
pub const WINDOWS_1253: Self = _
ANSI Greek; Greek (Windows).
sourcepub const WINDOWS_1254: Self = _
pub const WINDOWS_1254: Self = _
ANSI Turkish; Turkish (Windows).
sourcepub const WINDOWS_1255: Self = _
pub const WINDOWS_1255: Self = _
ANSI Hebrew; Hebrew (Windows).
sourcepub const WINDOWS_1256: Self = _
pub const WINDOWS_1256: Self = _
ANSI Arabic; Arabic (Windows).
sourcepub const WINDOWS_1257: Self = _
pub const WINDOWS_1257: Self = _
ANSI Baltic; Baltic (Windows).
sourcepub const WINDOWS_1258: Self = _
pub const WINDOWS_1258: Self = _
ANSI/OEM Vietnamese; Vietnamese (Windows).
Trait Implementations§
source§impl IntUnderlying for CP
impl IntUnderlying for CP
source§impl Ord for CP
impl Ord for CP
source§impl PartialOrd for CP
impl PartialOrd for CP
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more