Struct UString

Source
#[repr(C)]
pub struct UString { pub _chars: *mut u32, pub _len: c_uint, pub _limit: c_uint, }

Fields§

§_chars: *mut u32§_len: c_uint§_limit: c_uint

Implementations§

Source§

impl UString

Source

pub unsafe fn SetFrom(&mut self, s: *const u32, len: c_uint)

Source

pub unsafe fn SetFromBstr(&mut self, s: LPCOLESTR)

Source

pub unsafe fn Add_Char(&mut self, c: c_char)

Source

pub unsafe fn Add_Space(&mut self)

Source

pub unsafe fn Add_Space_if_NotEmpty(&mut self)

Source

pub unsafe fn Add_LF(&mut self)

Source

pub unsafe fn Add_Dot(&mut self)

Source

pub unsafe fn Add_Minus(&mut self)

Source

pub unsafe fn Add_Colon(&mut self)

Source

pub unsafe fn Add_UInt32(&mut self, v: UInt32)

Source

pub unsafe fn Add_UInt64(&mut self, v: UInt64)

Source

pub unsafe fn ReverseFind(&self, c: u32) -> c_int

Source

pub unsafe fn ReverseFind_PathSepar(&self) -> c_int

Source

pub unsafe fn Find(&self, s: *const u32, startIndex: c_uint) -> c_int

Source

pub unsafe fn TrimLeft(&mut self)

Source

pub unsafe fn TrimRight(&mut self)

Source

pub unsafe fn InsertAtFront(&mut self, c: u32)

Source

pub unsafe fn Insert(&mut self, index: c_uint, s: *const u32)

Source

pub unsafe fn Insert1(&mut self, index: c_uint, s: *const UString)

Source

pub unsafe fn RemoveChar(&mut self, ch: u32)

Source

pub unsafe fn Replace(&mut self, oldChar: u32, newChar: u32)

Source

pub unsafe fn Replace1( &mut self, oldString: *const UString, newString: *const UString, )

Source

pub unsafe fn Delete(&mut self, index: c_uint)

Source

pub unsafe fn Delete1(&mut self, index: c_uint, count: c_uint)

Source

pub unsafe fn DeleteFrontal(&mut self, num: c_uint)

Source

pub unsafe fn new() -> Self

Source

pub unsafe fn new1(c: u32) -> Self

Source

pub unsafe fn new2(c: c_char) -> Self

Source

pub unsafe fn new3(s: *const c_char) -> Self

Source

pub unsafe fn new4(s: *const AString) -> Self

Source

pub unsafe fn new5(s: *const u32) -> Self

Source

pub unsafe fn new6(s: *const UString) -> Self

Trait Implementations§

Source§

impl Debug for UString

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.