character
Section: OATH Reference Manual (3O)
Updated: 26 August 1991
Index
Return to Main Contents
NAME
character (characterA, characterG) - a member of the C++ char values
SYNOPSIS
#include <oath/character.h>
DESCRIPTION
The character is a token which represents one of the values of the
built-in unsigned char type. The operators ==, !=, <=, <, >, and >= are
inexpensive; all characterA's with the same character value point to the
same object; and creation of a "new" character is not slow, as is common
in other tokenized classes.
DERIVATION
character : token : obj
character is an abstract implementation type.
STATIC OPERATIONS
- characterA characterA:: isa (objA)
-
characterA::isa(O) returns O if it is truly a character; otherwise it
returns Nil.
- characterA characterA:: make (unsigned char)
-
characterA::make(C) returns the character object corresponding to the
unsigned char C.
MEMBER OPERATIONS
- unsigned char characterA:: value ()
-
C.value() returns the unsigned char that it represents.
- int characterA:: operator <= (characterA)
-
C1 <= C2 is the same as C1.value() <= C2.value().
- int characterA:: operator < (characterA)
-
C1 < C2 is the same as C1.value() < C2.value().
- int characterA:: operator > (characterA)
-
C1 > C2 is the same as C1.value() > C2.value().
- int characterA:: operator >= (characterA)
-
C1 >= C2 is the same as C1.value() >= C2.value().
- int characterA:: isSpace ()
-
- int characterA:: isLetter ()
-
- int characterA:: isDigit ()
-
- int characterA:: isHexDigit ()
-
- int characterA:: isAlphaNum ()
-
- int characterA:: isUppercase ()
-
- int characterA:: isLowercase ()
-
- int characterA:: isPunctuation ()
-
- int characterA:: isPrinting ()
-
- int characterA:: isGraphic ()
-
- int characterA:: isControl ()
-
- characterA characterA:: uppercase ()
-
- characterA characterA:: lowercase ()
-
INTERNAL OPERATIONS
- unsigned char characterG:: value () const
-
- int characterG:: isSpace () const
-
- int characterG:: isLetter () const
-
- int characterG:: isDigit () const
-
- int characterG:: isHexDigit () const
-
- int characterG:: isAlphaNum () const
-
- int characterG:: isUppercase () const
-
- int characterG:: isLowercase () const
-
- int characterG:: isPunctuation () const
-
- int characterG:: isPrinting () const
-
- int characterG:: isGraphic () const
-
- int characterG:: isControl () const
-
- const characterG* characterG:: uppercase () const
-
- const characterG* characterG:: lowercase () const
-
SEE ALSO
OATH(3O), token(3O)
AUTHOR
Brian M. Kennedy (Computer Science Center, Texas Instruments Incorporated)
BUGS
member function name() should be removed -- it is bogus.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- DERIVATION
-
- STATIC OPERATIONS
-
- MEMBER OPERATIONS
-
- INTERNAL OPERATIONS
-
- SEE ALSO
-
- AUTHOR
-
- BUGS
-
This document was created by
man2html,
using the manual pages.
Time: 20:37:50 GMT, July 24, 2024