Struct AString

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

Fields§

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

Implementations§

Source§

impl AString

Source

pub unsafe fn SetFromWStr_if_Ascii(&mut self, s: *const u32)

Source

pub unsafe fn Add_Space(&mut self)

Source

pub unsafe fn Add_Space_if_NotEmpty(&mut self)

Source

pub unsafe fn Add_OptSpaced(&mut self, s: *const c_char)

Source

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

Source

pub unsafe fn Add_LF(&mut self)

Source

pub unsafe fn Add_Slash(&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 AddFrom(&mut self, s: *const c_char, len: c_uint)

Source

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

Source

pub unsafe fn SetFrom_Chars_SizeT(&mut self, s: *const c_char, len: usize)

Source

pub unsafe fn SetFrom_CalcLen(&mut self, s: *const c_char, len: c_uint)

Source

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

Source

pub unsafe fn ReverseFind_PathSepar(&self) -> c_int

Source

pub unsafe fn Find(&self, s: *const c_char, 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: c_char)

Source

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

Source

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

Source

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

Source

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

Source

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

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: c_char) -> Self

Source

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

Source

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

Trait Implementations§

Source§

impl Debug for AString

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.