PrevNextUpHome SophiaFramework UNIVERSE 5.3
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 )
Get the lower-case character of the specified character.
static
WChar
AsLower( WChar param )
Get the lower-case character of the specified character.
static
AChar
AsUpper( AChar param )
Get the upper-case character of the specified character.
static
WChar
AsUpper( WChar param )
Get the upper-case character of the specified character.
static
Bool
IsAlpha( AChar param )
Check whether or not the specified character is alphabetic.
static
Bool
IsAlpha( WChar param )
Check whether or not the specified character is alphabetic.
static
Bool
IsAlphaDigit( AChar param )
Check whether or not the specified character is alphanumeric.
static
Bool
IsAlphaDigit( WChar param )
Check whether or not the specified character is alphanumeric.
static
Bool
IsAscii( AChar param )
Check whether or not the specified character is Ascii.
static
Bool
IsAscii( WChar param )
Check whether or not the specified character is Ascii.
static
Bool
IsControl( AChar param )
Check whether or not the specified character is a control character.
static
Bool
IsControl( WChar param )
Check whether or not the specified character is a control character.
static
Bool
IsDigit( AChar param )
Check whether or not the specified character is digit.
static
Bool
IsDigit( WChar param )
Check whether or not the specified character is digit.
static
Bool
IsGraph( AChar param )
Check whether or not the specified character is graphic.
static
Bool
IsGraph( WChar param )
Check whether or not the specified character is graphic.
static
Bool
IsHexDigit( AChar param )
Check whether or not the specified character is Hex digit.
static
Bool
IsHexDigit( WChar param )
Check whether or not the specified character is Hex digit.
static
Bool
IsLower( AChar param )
Check whether or not the specified character is lower-case.
static
Bool
IsLower( WChar param )
Check whether or not the specified character is lower-case.
static
Bool
IsNull( AChar param )
Check whether or not the specified character is null('\0').
static
Bool
IsNull( WChar param )
Check whether or not the specified character is null('\0').
static
Bool
IsPrint( AChar param )
Check whether or not the specified character is printable.
static
Bool
IsPrint( WChar param )
Check whether or not the specified character is printable.
static
Bool
IsPunct( AChar param )
Check whether or not the specified character is not blank nor alphanumeric but printable.
static
Bool
IsPunct( WChar param )
Check whether or not the specified character is not blank nor alphanumeric but printable.
static
Bool
IsSpace( AChar param )
Check whether or not the specified character is space.
static
Bool
IsSpace( WChar param )
Check whether or not the specified character is space.
static
Bool
IsUpper( AChar param )
Check whether or not the specified character is upper-case.
static
Bool
IsUpper( WChar param )
Check whether or not the specified character is upper-case.

SFXAscii::AsLower
Get the lower-case character of the specified character.
[ public, static ]
AChar AsLower(
    AChar param   // character to convert
);
[ public, static ]
WChar AsLower(
    WChar param   // character to convert
);

Return value

Lower-case character of the specified character

Description

This function gets the lower-case character of the specified character.


SFXAscii::AsUpper
Get the upper-case character of the specified character.
[ public, static ]
AChar AsUpper(
    AChar param   // character to convert
);
[ public, static ]
WChar AsUpper(
    WChar param   // character to convert
);

Return value

Upper-case character of the specified character

Description

This function gets the upper-case character of the specified character.


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

Return value

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

Description

This function checks whether or not the specified character is alphabetic.


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

Return value

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

Description

This function checks whether or not the specified character is alphanumeric.


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

Return value

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

Description

This function checks whether or not the code of the specified character is less than 0x7F.

[Note] ASCII character

The code of the ASCII character is greater than or equals 0x00 and less than or equals 0x7F.


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

Return value

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

Description

This function checks whether or not the code of the specified character is a control character.

[Note] Control character

The code of the control character is less than 0x20, or equals 0x7F.


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

Return value

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

Description

This function checks whether or not the specified character is digit.


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

Return value

  • If the specified character is graphic: true
  • Otherwise: false

Description

This function checks whether or not the character code is graphic.

[Note] Graphic character

The graphic character is a printable character except the space character( 0x20 ).

The code of the graphic character is greater than 0x20 and less than 0x7E.


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

Return value

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

Description

This function checks whether or not the specified character is digit, or, a, b, c, d, e, f, A, B, C, D, E, F.


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

Return value

  • If the specified character is lower-case: true
  • Otherwise: false

Description

This function checks whether or not the specified character is lower-case.


SFXAscii::IsNull
Check whether or not the specified character is null('\0').
[ public, static ]
Bool IsNull(
    AChar param   // character to check
);
[ public, static ]
Bool IsNull(
    WChar param   // character to check
);

Return value

  • If the specified character is null('\0'): true
  • Otherwise: false

Description

This function checks whether or not the specified character is null('\0').


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

Return value

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

Description

This function checks whether or not the code of the specified character is printable.

[Note] Printable character

The printable character is the character that can be displayed.

The code of the printable character is greater than or equals 0x20 and less than 0x7E.


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

Return value

  • If the specified character is not blank nor alphanumeric but printable: true
  • Otherwise: false

Description

This function checks whether or not the specified character is not blank nor alphanumeric but printable.


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

Return value

  • If the specified character is space or line-feed: true
  • Otherwise: false

Description

This function checks whether or not the code of the specified character is space.

[Note] Space character

The code of the space character including tab, line-feed, and carriage return is from 0x09 to 0x0D or 0x20.


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

Return value

  • If the specified character is upper-case: true
  • Otherwise: false

Description

This function checks whether or not the specified character is upper-case.