PrevNextUpHome BREW C++ Class Library & GUI Framework & XML Middleware : SophiaFramework 4.1
SFXAscii
Class for processing an ASCII character.
#include <SFXAscii.h.hpp>
class SFXAscii;
SFMTYPEDEFCLASS(SFXAscii)

Description

The SFXAscii class is used to check the character type, convert a small character into a captal one and vice versa, etc. And the SFXAscii class has only static functions.

Member

Public Functions
static
AChar
AsLower( AChar param )
Convert the character into lower character.
static
WChar
AsLower( WChar param )
Convert the character into lower character.
static
AChar
AsUpper( AChar param )
Convert the character into capital character.
static
WChar
AsUpper( WChar param )
Convert the character into capital character.
static
Bool
IsAlpha( AChar param )
IsAlpha( WChar param )
Check whether the character is alphabetic or not.
static
Bool
IsAlphaDigit( AChar param )
IsAlphaDigit( WChar param )
Check whether the character is alphanumeric or not.
static
Bool
IsAscii( AChar param )
IsAscii( WChar param )
Check whether the character is Ascii or not.
static
Bool
IsControl( AChar param )
IsControl( WChar param )
Check whether the character is control or not.
static
Bool
IsDigit( AChar param )
IsDigit( WChar param )
Check whether the character is digit or not.
static
Bool
IsGraph( AChar param )
IsGraph( WChar param )
Check whether the character is graph or not.
static
Bool
IsHexDigit( AChar param )
IsHexDigit( WChar param )
Check whether the character is Hex digit or not.
static
Bool
IsLower( AChar param )
IsLower( WChar param )
Check whether the character is lower or not.
static
Bool
IsPrint( AChar param )
IsPrint( WChar param )
Check whether the character is printable or not.
static
Bool
IsPunct( AChar param )
IsPunct( WChar param )
Check whether the character is printable(not blank nor alphanumeric).
static
Bool
IsSpace( AChar param )
IsSpace( WChar param )
Check whether or not the character is blank or line-feed.
static
Bool
IsUpper( AChar param )
IsUpper( WChar param )
Check whether the character is capital or not.
static
Bool
Isnull( AChar param )
Isnull( WChar param )
Check whether the character is "null" or not.

SFXAscii::AsLower
Convert the character into lower character.
[ public, static ]
AChar AsLower(
    AChar param   // character to convert
);
[ public, static ]
WChar AsLower(
    WChar param   // character to convert
);

SFXAscii::AsUpper
Convert the character into capital character.
[ public, static ]
AChar AsUpper(
    AChar param   // character to convert
);
[ public, static ]
WChar AsUpper(
    WChar param   // character to convert
);

SFXAscii::IsAlpha
Check whether the character is alphabetic or not.
[ public, static ]
Bool IsAlpha(
    AChar param   // character to check
);
[ public, static ]
Bool IsAlpha(
    WChar param   // character to check
);

Return value

  • If the character is alphabetic : true
  • Otherwise : false

SFXAscii::IsAlphaDigit
Check whether the character is alphanumeric or not.
[ public, static ]
Bool IsAlphaDigit(
    AChar param   // character to check
);
[ public, static ]
Bool IsAlphaDigit(
    WChar param   // character to check
);

Return value

  • If the character is alphanumeric : true
  • Otherwise : false

SFXAscii::IsAscii
Check whether the character is Ascii or not.
[ public, static ]
Bool IsAscii(
    AChar param   // character to check
);
[ public, static ]
Bool IsAscii(
    WChar param   // character to check
);

Return value

  • If the character is Ascii : true
  • Otherwise : false

Description

The SFXAscii::IsAscii function checks whether the character code is less than 0x7F or not.


SFXAscii::IsControl
Check whether the character is control or not.
[ public, static ]
Bool IsControl(
    AChar param   // character to check
);
[ public, static ]
Bool IsControl(
    WChar param   // character to check
);

Return value

  • If the character is control : true
  • Otherwise : false

Description

The SFXAscii::IsControl function checks whether or not the character code is less than 0x20, or equals 0x7F.


SFXAscii::IsDigit
Check whether the character is digit or not.
[ public, static ]
Bool IsDigit(
    AChar param   // character to check
);
[ public, static ]
Bool IsDigit(
    WChar param   // character to check
);

Return value

  • If the character is digit : true
  • Otherwise : false

SFXAscii::IsGraph
Check whether the character is graph or not.
[ public, static ]
Bool IsGraph(
    AChar param   // character to check
);
[ public, static ]
Bool IsGraph(
    WChar param   // character to check
);

Return value

  • If the character is graph : true
  • Otherwise : false

Description

The SFXAscii::IsGraph function checks whether or not the character code is greater than 0x21 and less than 0x7E.

[Note] What is the graph character?

The printable character except the space character( 0x20 ). The printable character is the character that can be displayed other than control character.


SFXAscii::IsHexDigit
Check whether the character is Hex digit or not.
[ public, static ]
Bool IsHexDigit(
    AChar param   // character to check
);
[ public, static ]
Bool IsHexDigit(
    WChar param   // character to check
);

Return value

  • If the character is Hex digit or not : true
  • Otherwise : false

Description

The SFXAscii::IsHexDigit function checks whether or not the character is digit, or, a, b, c, d, e, f, A, B, C, D, E, F.


SFXAscii::IsLower
Check whether the character is lower or not.
[ public, static ]
Bool IsLower(
    AChar param   // character to check
);
[ public, static ]
Bool IsLower(
    WChar param   // character to check
);

Return value

  • If the character is lower : true
  • Otherwise : false

SFXAscii::Isnull
Check whether the character is "null" or not.
[ public, static ]
Bool Isnull(
    AChar param   // character to check
);
[ public, static ]
Bool Isnull(
    WChar param   // character to check
);

Return value

  • If the character is "null" : true
  • Otherwise : false

SFXAscii::IsPrint
Check whether the character is printable or not.
[ public, static ]
Bool IsPrint(
    AChar param   // character to check
);
[ public, static ]
Bool IsPrint(
    WChar param   // character to check
);

Return value

  • If the character is printable : true
  • Otherwise : false

Description

The SFXAscii::IsPrint function checks whether or not the character code is greater than 0x20 and less than 0x7E.

[Note] What is the printable character?

The printable character is the character that can be displayed other than the control character.


SFXAscii::IsPunct
Check whether the character is printable(not blank nor alphanumeric).
[ public, static ]
Bool IsPunct(
    AChar param   // character to check
);
[ public, static ]
Bool IsPunct(
    WChar param   // character to check
);

Return value

  • If the character is printable(not blank nor alphanumeric) : true
  • Otherwise : false

SFXAscii::IsSpace
Check whether or not the character is blank or line-feed.
[ public, static ]
Bool IsSpace(
    AChar param   // character to check
);
[ public, static ]
Bool IsSpace(
    WChar param   // character to check
);

Return value

  • Space or line-feed character : true
  • Otherwise : false

Description

The SFXAscii::IsSpace function checks whether or not the character code is greater than 0x09 and less than 0x0D, or equals 0x20.


SFXAscii::IsUpper
Check whether the character is capital or not.
[ public, static ]
Bool IsUpper(
    AChar param   // character to check
);
[ public, static ]
Bool IsUpper(
    WChar param   // character to check
);

Return value

  • If the character is capital : true
  • Otherwise : false