Skip to main content

QChar

Struct QChar 

Source
pub struct QChar { /* private fields */ }
Expand description

C++ class: QChar.

Implementations§

Source§

impl QChar

Source

pub unsafe fn category_0a(&self) -> Category

Calls C++ function: QChar::Category QChar::category() const.

Source

pub unsafe fn category_1a(ucs4: c_uint) -> Category

Calls C++ function: static QChar::Category QChar::category(unsigned int ucs4).

Source

pub unsafe fn cell(&self) -> c_uchar

Calls C++ function: unsigned char QChar::cell() const.

Source

pub unsafe fn combining_class_0a(&self) -> c_uchar

Calls C++ function: unsigned char QChar::combiningClass() const.

Source

pub unsafe fn combining_class_1a(ucs4: c_uint) -> c_uchar

Calls C++ function: static unsigned char QChar::combiningClass(unsigned int ucs4).

Source

pub unsafe fn copy_from(&self, other: impl CastInto<Ref<QChar>>) -> Ref<QChar>

Calls C++ function: QChar& QChar::operator=(const QChar& other).

Source

pub unsafe fn current_unicode_version() -> UnicodeVersion

Calls C++ function: static QChar::UnicodeVersion QChar::currentUnicodeVersion().

Source

pub unsafe fn decomposition_0a(&self) -> CppBox<QString>

Calls C++ function: QString QChar::decomposition() const.

Source

pub unsafe fn decomposition_1a(ucs4: c_uint) -> CppBox<QString>

Calls C++ function: static QString QChar::decomposition(unsigned int ucs4).

Source

pub unsafe fn decomposition_tag_0a(&self) -> Decomposition

Calls C++ function: QChar::Decomposition QChar::decompositionTag() const.

Source

pub unsafe fn decomposition_tag_1a(ucs4: c_uint) -> Decomposition

Calls C++ function: static QChar::Decomposition QChar::decompositionTag(unsigned int ucs4).

Source

pub unsafe fn digit_value_0a(&self) -> c_int

Calls C++ function: int QChar::digitValue() const.

Source

pub unsafe fn digit_value_1a(ucs4: c_uint) -> c_int

Calls C++ function: static int QChar::digitValue(unsigned int ucs4).

Source

pub unsafe fn direction_0a(&self) -> Direction

Calls C++ function: QChar::Direction QChar::direction() const.

Source

pub unsafe fn direction_1a(ucs4: c_uint) -> Direction

Calls C++ function: static QChar::Direction QChar::direction(unsigned int ucs4).

Source

pub unsafe fn from_latin1(c: c_char) -> CppBox<QChar>

Calls C++ function: static QChar QChar::fromLatin1(char c).

Source

pub unsafe fn has_mirrored_0a(&self) -> bool

Calls C++ function: bool QChar::hasMirrored() const.

Source

pub unsafe fn has_mirrored_1a(ucs4: c_uint) -> bool

Calls C++ function: static bool QChar::hasMirrored(unsigned int ucs4).

Source

pub unsafe fn high_surrogate(ucs4: c_uint) -> c_ushort

Calls C++ function: static unsigned short QChar::highSurrogate(unsigned int ucs4).

Source

pub unsafe fn is_digit_0a(&self) -> bool

Calls C++ function: bool QChar::isDigit() const.

Source

pub unsafe fn is_digit_1a(ucs4: c_uint) -> bool

Calls C++ function: static bool QChar::isDigit(unsigned int ucs4).

Source

pub unsafe fn is_high_surrogate_0a(&self) -> bool

Calls C++ function: bool QChar::isHighSurrogate() const.

Source

pub unsafe fn is_high_surrogate_1a(ucs4: c_uint) -> bool

Calls C++ function: static bool QChar::isHighSurrogate(unsigned int ucs4).

Source

pub unsafe fn is_letter_0a(&self) -> bool

Calls C++ function: bool QChar::isLetter() const.

Source

pub unsafe fn is_letter_1a(ucs4: c_uint) -> bool

Calls C++ function: static bool QChar::isLetter(unsigned int ucs4).

Source

pub unsafe fn is_letter_or_number_0a(&self) -> bool

Calls C++ function: bool QChar::isLetterOrNumber() const.

Source

pub unsafe fn is_letter_or_number_1a(ucs4: c_uint) -> bool

Calls C++ function: static bool QChar::isLetterOrNumber(unsigned int ucs4).

Source

pub unsafe fn is_low_surrogate_0a(&self) -> bool

Calls C++ function: bool QChar::isLowSurrogate() const.

Source

pub unsafe fn is_low_surrogate_1a(ucs4: c_uint) -> bool

Calls C++ function: static bool QChar::isLowSurrogate(unsigned int ucs4).

Source

pub unsafe fn is_lower_0a(&self) -> bool

Calls C++ function: bool QChar::isLower() const.

Source

pub unsafe fn is_lower_1a(ucs4: c_uint) -> bool

Calls C++ function: static bool QChar::isLower(unsigned int ucs4).

Source

pub unsafe fn is_mark_0a(&self) -> bool

Calls C++ function: bool QChar::isMark() const.

Source

pub unsafe fn is_mark_1a(ucs4: c_uint) -> bool

Calls C++ function: static bool QChar::isMark(unsigned int ucs4).

Source

pub unsafe fn is_non_character_0a(&self) -> bool

Calls C++ function: bool QChar::isNonCharacter() const.

Source

pub unsafe fn is_non_character_1a(ucs4: c_uint) -> bool

Calls C++ function: static bool QChar::isNonCharacter(unsigned int ucs4).

Source

pub unsafe fn is_null(&self) -> bool

Calls C++ function: bool QChar::isNull() const.

Source

pub unsafe fn is_number_0a(&self) -> bool

Calls C++ function: bool QChar::isNumber() const.

Source

pub unsafe fn is_number_1a(ucs4: c_uint) -> bool

Calls C++ function: static bool QChar::isNumber(unsigned int ucs4).

Source

pub unsafe fn is_print_0a(&self) -> bool

Calls C++ function: bool QChar::isPrint() const.

Source

pub unsafe fn is_print_1a(ucs4: c_uint) -> bool

Calls C++ function: static bool QChar::isPrint(unsigned int ucs4).

Source

pub unsafe fn is_punct_0a(&self) -> bool

Calls C++ function: bool QChar::isPunct() const.

Source

pub unsafe fn is_punct_1a(ucs4: c_uint) -> bool

Calls C++ function: static bool QChar::isPunct(unsigned int ucs4).

Source

pub unsafe fn is_space_0a(&self) -> bool

Calls C++ function: bool QChar::isSpace() const.

Source

pub unsafe fn is_space_1a(ucs4: c_uint) -> bool

Calls C++ function: static bool QChar::isSpace(unsigned int ucs4).

Source

pub unsafe fn is_surrogate_0a(&self) -> bool

Calls C++ function: bool QChar::isSurrogate() const.

Source

pub unsafe fn is_surrogate_1a(ucs4: c_uint) -> bool

Calls C++ function: static bool QChar::isSurrogate(unsigned int ucs4).

Source

pub unsafe fn is_symbol_0a(&self) -> bool

Calls C++ function: bool QChar::isSymbol() const.

Source

pub unsafe fn is_symbol_1a(ucs4: c_uint) -> bool

Calls C++ function: static bool QChar::isSymbol(unsigned int ucs4).

Source

pub unsafe fn is_title_case_0a(&self) -> bool

Calls C++ function: bool QChar::isTitleCase() const.

Source

pub unsafe fn is_title_case_1a(ucs4: c_uint) -> bool

Calls C++ function: static bool QChar::isTitleCase(unsigned int ucs4).

Source

pub unsafe fn is_upper_0a(&self) -> bool

Calls C++ function: bool QChar::isUpper() const.

Source

pub unsafe fn is_upper_1a(ucs4: c_uint) -> bool

Calls C++ function: static bool QChar::isUpper(unsigned int ucs4).

Source

pub unsafe fn joining_0a(&self) -> Joining

Calls C++ function: QChar::Joining QChar::joining() const.

Source

pub unsafe fn joining_1a(ucs4: c_uint) -> Joining

Calls C++ function: static QChar::Joining QChar::joining(unsigned int ucs4).

Source

pub unsafe fn joining_type_0a(&self) -> JoiningType

Calls C++ function: QChar::JoiningType QChar::joiningType() const.

Source

pub unsafe fn joining_type_1a(ucs4: c_uint) -> JoiningType

Calls C++ function: static QChar::JoiningType QChar::joiningType(unsigned int ucs4).

Source

pub unsafe fn low_surrogate(ucs4: c_uint) -> c_ushort

Calls C++ function: static unsigned short QChar::lowSurrogate(unsigned int ucs4).

Source

pub unsafe fn mirrored_char_0a(&self) -> CppBox<QChar>

Calls C++ function: QChar QChar::mirroredChar() const.

Source

pub unsafe fn mirrored_char_1a(ucs4: c_uint) -> c_uint

Calls C++ function: static unsigned int QChar::mirroredChar(unsigned int ucs4).

Source

pub unsafe fn new() -> CppBox<QChar>

Calls C++ function: [constructor] void QChar::QChar().

Source

pub unsafe fn from_ushort(rc: c_ushort) -> CppBox<QChar>

Calls C++ function: [constructor] void QChar::QChar(unsigned short rc).

Source

pub unsafe fn from_2_uchar(c: c_uchar, r: c_uchar) -> CppBox<QChar>

Calls C++ function: [constructor] void QChar::QChar(unsigned char c, unsigned char r).

Source

pub unsafe fn from_short(rc: c_short) -> CppBox<QChar>

Calls C++ function: [constructor] void QChar::QChar(short rc).

Source

pub unsafe fn from_uint(rc: c_uint) -> CppBox<QChar>

Calls C++ function: [constructor] void QChar::QChar(unsigned int rc).

Source

pub unsafe fn from_int(rc: c_int) -> CppBox<QChar>

Calls C++ function: [constructor] void QChar::QChar(int rc).

Source

pub unsafe fn from_special_character(s: SpecialCharacter) -> CppBox<QChar>

Calls C++ function: [constructor] void QChar::QChar(QChar::SpecialCharacter s).

Source

pub unsafe fn from_q_latin1_char( ch: impl CastInto<Ref<QLatin1Char>>, ) -> CppBox<QChar>

Calls C++ function: [constructor] void QChar::QChar(QLatin1Char ch).

Source

pub unsafe fn from_char16_t(ch: char16_t) -> CppBox<QChar>

Calls C++ function: [constructor] void QChar::QChar(char16_t ch).

Source

pub unsafe fn from_char(c: c_char) -> CppBox<QChar>

Calls C++ function: [constructor] void QChar::QChar(char c).

Source

pub unsafe fn from_uchar(c: c_uchar) -> CppBox<QChar>

Calls C++ function: [constructor] void QChar::QChar(unsigned char c).

Source

pub unsafe fn new_copy(other: impl CastInto<Ref<QChar>>) -> CppBox<QChar>

Calls C++ function: [constructor] void QChar::QChar(const QChar& other).

Source

pub unsafe fn requires_surrogates(ucs4: c_uint) -> bool

Calls C++ function: static bool QChar::requiresSurrogates(unsigned int ucs4).

Source

pub unsafe fn row(&self) -> c_uchar

Calls C++ function: unsigned char QChar::row() const.

Source

pub unsafe fn script_0a(&self) -> Script

Calls C++ function: QChar::Script QChar::script() const.

Source

pub unsafe fn script_1a(ucs4: c_uint) -> Script

Calls C++ function: static QChar::Script QChar::script(unsigned int ucs4).

Source

pub unsafe fn set_cell(&self, acell: c_uchar)

Calls C++ function: void QChar::setCell(unsigned char acell).

Source

pub unsafe fn set_row(&self, arow: c_uchar)

Calls C++ function: void QChar::setRow(unsigned char arow).

Source

pub unsafe fn surrogate_to_ucs4_2_ushort( high: c_ushort, low: c_ushort, ) -> c_uint

Calls C++ function: static unsigned int QChar::surrogateToUcs4(unsigned short high, unsigned short low).

Source

pub unsafe fn surrogate_to_ucs4_2_q_char( high: impl CastInto<Ref<QChar>>, low: impl CastInto<Ref<QChar>>, ) -> c_uint

Calls C++ function: static unsigned int QChar::surrogateToUcs4(QChar high, QChar low).

Source

pub unsafe fn to_case_folded_0a(&self) -> CppBox<QChar>

Calls C++ function: QChar QChar::toCaseFolded() const.

Source

pub unsafe fn to_case_folded_1a(ucs4: c_uint) -> c_uint

Calls C++ function: static unsigned int QChar::toCaseFolded(unsigned int ucs4).

Source

pub unsafe fn to_latin1(&self) -> c_char

Calls C++ function: char QChar::toLatin1() const.

Source

pub unsafe fn to_lower_0a(&self) -> CppBox<QChar>

Calls C++ function: QChar QChar::toLower() const.

Source

pub unsafe fn to_lower_1a(ucs4: c_uint) -> c_uint

Calls C++ function: static unsigned int QChar::toLower(unsigned int ucs4).

Source

pub unsafe fn to_title_case_0a(&self) -> CppBox<QChar>

Calls C++ function: QChar QChar::toTitleCase() const.

Source

pub unsafe fn to_title_case_1a(ucs4: c_uint) -> c_uint

Calls C++ function: static unsigned int QChar::toTitleCase(unsigned int ucs4).

Source

pub unsafe fn to_upper_0a(&self) -> CppBox<QChar>

Calls C++ function: QChar QChar::toUpper() const.

Source

pub unsafe fn to_upper_1a(ucs4: c_uint) -> c_uint

Calls C++ function: static unsigned int QChar::toUpper(unsigned int ucs4).

Source

pub unsafe fn unicode(&self) -> c_ushort

Calls C++ function: unsigned short QChar::unicode() const.

Source

pub unsafe fn unicode_mut(&self) -> *mut c_ushort

Calls C++ function: unsigned short& QChar::unicode().

Source

pub unsafe fn unicode_version_0a(&self) -> UnicodeVersion

Calls C++ function: QChar::UnicodeVersion QChar::unicodeVersion() const.

Source

pub unsafe fn unicode_version_1a(ucs4: c_uint) -> UnicodeVersion

Calls C++ function: static QChar::UnicodeVersion QChar::unicodeVersion(unsigned int ucs4).

Trait Implementations§

Source§

impl Add<Ref<QString>> for &QChar

Source§

fn add(self, s2: Ref<QString>) -> CppBox<QString>

Calls C++ function: QString operator+(QChar s1, const QString& s2).

Source§

type Output = CppBox<QString>

The resulting type after applying the + operator.
Source§

impl Add<Ref<QStringRef>> for &QChar

Source§

fn add(self, s2: Ref<QStringRef>) -> CppBox<QString>

Calls C++ function: QString operator+(QChar s1, const QStringRef& s2).

Source§

type Output = CppBox<QString>

The resulting type after applying the + operator.
Source§

impl CppDeletable for QChar

Source§

unsafe fn delete(&self)

Calls C++ function: [destructor] void QChar::~QChar().

Source§

impl Ge<Ref<QChar>> for QChar

Source§

unsafe fn ge(&self, c2: &Ref<QChar>) -> bool

Calls C++ function: bool operator>=(QChar c1, QChar c2).

Source§

impl Ge<Ref<QLatin1String>> for QChar

Source§

unsafe fn ge(&self, rhs: &Ref<QLatin1String>) -> bool

Calls C++ function: bool operator>=(QChar lhs, QLatin1String rhs).

Source§

impl Ge<Ref<QString>> for QChar

Source§

unsafe fn ge(&self, rhs: &Ref<QString>) -> bool

Calls C++ function: bool operator>=(QChar lhs, const QString& rhs).

Source§

impl Ge<Ref<QStringRef>> for QChar

Source§

unsafe fn ge(&self, rhs: &Ref<QStringRef>) -> bool

Calls C++ function: bool operator>=(QChar lhs, const QStringRef& rhs).

Source§

impl Ge<Ref<QStringView>> for QChar

Source§

unsafe fn ge(&self, rhs: &Ref<QStringView>) -> bool

Calls C++ function: bool operator>=(QChar lhs, QStringView rhs).

Source§

impl Gt<Ref<QChar>> for QChar

Source§

unsafe fn gt(&self, c2: &Ref<QChar>) -> bool

Calls C++ function: bool operator>(QChar c1, QChar c2).

Source§

impl Gt<Ref<QLatin1String>> for QChar

Source§

unsafe fn gt(&self, rhs: &Ref<QLatin1String>) -> bool

Calls C++ function: bool operator>(QChar lhs, QLatin1String rhs).

Source§

impl Gt<Ref<QString>> for QChar

Source§

unsafe fn gt(&self, rhs: &Ref<QString>) -> bool

Calls C++ function: bool operator>(QChar lhs, const QString& rhs).

Source§

impl Gt<Ref<QStringRef>> for QChar

Source§

unsafe fn gt(&self, rhs: &Ref<QStringRef>) -> bool

Calls C++ function: bool operator>(QChar lhs, const QStringRef& rhs).

Source§

impl Gt<Ref<QStringView>> for QChar

Source§

unsafe fn gt(&self, rhs: &Ref<QStringView>) -> bool

Calls C++ function: bool operator>(QChar lhs, QStringView rhs).

Source§

impl Le<Ref<QChar>> for QChar

Source§

unsafe fn le(&self, c2: &Ref<QChar>) -> bool

Calls C++ function: bool operator<=(QChar c1, QChar c2).

Source§

impl Le<Ref<QLatin1String>> for QChar

Source§

unsafe fn le(&self, rhs: &Ref<QLatin1String>) -> bool

Calls C++ function: bool operator<=(QChar lhs, QLatin1String rhs).

Source§

impl Le<Ref<QString>> for QChar

Source§

unsafe fn le(&self, rhs: &Ref<QString>) -> bool

Calls C++ function: bool operator<=(QChar lhs, const QString& rhs).

Source§

impl Le<Ref<QStringRef>> for QChar

Source§

unsafe fn le(&self, rhs: &Ref<QStringRef>) -> bool

Calls C++ function: bool operator<=(QChar lhs, const QStringRef& rhs).

Source§

impl Le<Ref<QStringView>> for QChar

Source§

unsafe fn le(&self, rhs: &Ref<QStringView>) -> bool

Calls C++ function: bool operator<=(QChar lhs, QStringView rhs).

Source§

impl Lt<Ref<QChar>> for QChar

Source§

unsafe fn lt(&self, c2: &Ref<QChar>) -> bool

Calls C++ function: bool operator<(QChar c1, QChar c2).

Source§

impl Lt<Ref<QLatin1String>> for QChar

Source§

unsafe fn lt(&self, rhs: &Ref<QLatin1String>) -> bool

Calls C++ function: bool operator<(QChar lhs, QLatin1String rhs).

Source§

impl Lt<Ref<QString>> for QChar

Source§

unsafe fn lt(&self, rhs: &Ref<QString>) -> bool

Calls C++ function: bool operator<(QChar lhs, const QString& rhs).

Source§

impl Lt<Ref<QStringRef>> for QChar

Source§

unsafe fn lt(&self, rhs: &Ref<QStringRef>) -> bool

Calls C++ function: bool operator<(QChar lhs, const QStringRef& rhs).

Source§

impl Lt<Ref<QStringView>> for QChar

Source§

unsafe fn lt(&self, rhs: &Ref<QStringView>) -> bool

Calls C++ function: bool operator<(QChar lhs, QStringView rhs).

Source§

impl PartialEq<Ref<QChar>> for QChar

Source§

fn eq(&self, c2: &Ref<QChar>) -> bool

Calls C++ function: bool operator==(QChar c1, QChar c2).

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Ref<QLatin1String>> for QChar

Source§

fn eq(&self, rhs: &Ref<QLatin1String>) -> bool

Calls C++ function: bool operator==(QChar lhs, QLatin1String rhs).

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Ref<QString>> for QChar

Source§

fn eq(&self, rhs: &Ref<QString>) -> bool

Calls C++ function: bool operator==(QChar lhs, const QString& rhs).

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Ref<QStringRef>> for QChar

Source§

fn eq(&self, rhs: &Ref<QStringRef>) -> bool

Calls C++ function: bool operator==(QChar lhs, const QStringRef& rhs).

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Ref<QStringView>> for QChar

Source§

fn eq(&self, rhs: &Ref<QStringView>) -> bool

Calls C++ function: bool operator==(QChar lhs, QStringView rhs).

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

§

impl Freeze for QChar

§

impl RefUnwindSafe for QChar

§

impl Send for QChar

§

impl Sync for QChar

§

impl Unpin for QChar

§

impl UnsafeUnpin for QChar

§

impl UnwindSafe for QChar

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, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. 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> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
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.