UaChar Class Reference
[UA Base Library Classes]

Helper class for modifying UaChar elements. The UaChar class provides a 16-bit Unicode character. It is lightweight, so it can be used everywhere. More...

#include <uachar.h>

List of all members.


Public Member Functions

 UaChar ()
 UaChar (char c)
 UaChar (UaUShort c)
 UaChar (const char *pUtf8)
 ~UaChar ()
UaUShort unicode () const
int size () const
bool operator== (const UaChar &other) const
bool operator!= (const UaChar &other) const

Detailed Description

Helper class for modifying UaChar elements. The UaChar class provides a 16-bit Unicode character. It is lightweight, so it can be used everywhere.

Constructor & Destructor Documentation

UaChar::UaChar (  ) 

construction

UaChar::UaChar ( char  c  )  [explicit]

construction

Parameters:
c a char to create.

UaChar::UaChar ( UaUShort  c  )  [explicit]

construction

Parameters:
c a UaUShort to create.

UaChar::UaChar ( const char *  c  ) 

construction

Parameters:
c a const char to create

UaChar::~UaChar (  ) 

destruction


Member Function Documentation

UaUShort UaChar::unicode (  )  const

Converts data to unicode.

Returns:
unicode data.

int UaChar::size (  )  const [inline]

Get the actual size.

Returns:
the actual size.

bool UaChar::operator== ( const UaChar other  )  const

Compare variables.

Parameters:
other the UaChar to compare.
Returns:
true if similar false if not.

bool UaChar::operator!= ( const UaChar other  )  const

Returns true if other is not equal to this.

See also:
operator==
Parameters:
other the UaString to compare.
Returns:
true if other is not equal to this.


The documentation for this class was generated from the following files:
  • src/uabase/uabasecpp/uachar.h
  • src/uabase/uabasecpp/uachar.cpp