Jameo Core Library
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
jm::Char Class Reference

This datatype presents a 16 bit unicode character. More...

Public Member Functions

 Char ()
 
 Char (int character)
 
 Char (uint16 character)
 
 Char (char character)
 
uint16 unicode () const
 
Char toLowerCase () const
 Returns the character as lower case (if possible).
 
Char toUpperCase () const
 Returns the character as upper case (if possible).
 
bool isWhitespace () const
 Returns true, if the character is a white space.
 
bool isDigit () const
 Returns true, if the character is a digit (0-9)
 
bool isLetter () const
 Returns true, if the character is a letter.
 
bool isUpperCase () const
 Returns true, if the character is upper case.
 
bool isLowerCase () const
 Returns true, if the character is lower case.
 
int32 digitValue () const
 Returns the digit value (0-9) or -1 if the character is no digit.
 

Friends

DllExport friend bool operator== (Char ch1, Char ch2)
 Implementation of ==.
 
DllExport friend bool operator!= (Char ch1, Char ch2)
 Implementation of !=.
 
DllExport friend bool operator< (Char ch1, Char ch2)
 Implementation of <.
 
DllExport friend bool operator<= (Char ch1, Char ch2)
 Implementation of <=.
 
DllExport friend bool operator> (Char ch1, Char ch2)
 Implementation of >
 
DllExport friend bool operator>= (Char ch1, Char ch2)
 Implementation of >=.
 

Detailed Description

This datatype presents a 16 bit unicode character.

Constructor & Destructor Documentation

◆ Char() [1/4]

jm::Char::Char ( )

◆ Char() [2/4]

jm::Char::Char ( int  character)

◆ Char() [3/4]

jm::Char::Char ( uint16  character)

◆ Char() [4/4]

jm::Char::Char ( char  character)

Member Function Documentation

◆ digitValue()

int32 jm::Char::digitValue ( ) const

Returns the digit value (0-9) or -1 if the character is no digit.

◆ isDigit()

bool jm::Char::isDigit ( ) const

Returns true, if the character is a digit (0-9)

◆ isLetter()

bool jm::Char::isLetter ( ) const

Returns true, if the character is a letter.

◆ isLowerCase()

bool jm::Char::isLowerCase ( ) const

Returns true, if the character is lower case.

◆ isUpperCase()

bool jm::Char::isUpperCase ( ) const

Returns true, if the character is upper case.

◆ isWhitespace()

bool jm::Char::isWhitespace ( ) const

Returns true, if the character is a white space.

◆ toLowerCase()

Char jm::Char::toLowerCase ( ) const

Returns the character as lower case (if possible).

◆ toUpperCase()

Char jm::Char::toUpperCase ( ) const

Returns the character as upper case (if possible).

◆ unicode()

uint16 jm::Char::unicode ( ) const

Friends And Related Symbol Documentation

◆ operator!=

DllExport friend bool operator!= ( Char  ch1,
Char  ch2 
)
friend

Implementation of !=.

◆ operator<

DllExport friend bool operator< ( Char  ch1,
Char  ch2 
)
friend

Implementation of <.

◆ operator<=

DllExport friend bool operator<= ( Char  ch1,
Char  ch2 
)
friend

Implementation of <=.

◆ operator==

DllExport friend bool operator== ( Char  ch1,
Char  ch2 
)
friend

Implementation of ==.

◆ operator>

DllExport friend bool operator> ( Char  ch1,
Char  ch2 
)
friend

Implementation of >

◆ operator>=

DllExport friend bool operator>= ( Char  ch1,
Char  ch2 
)
friend

Implementation of >=.