stringToken
Section: OATH Reference Manual (3O)
Updated: 26 August 1991
Index
Return to Main Contents
NAME
stringToken (stringTokenA, stringTokenG) - a tokenized string
SYNOPSIS
#include <oath/stringTable.h>
DESCRIPTION
The stringToken is a token-ized string or char*. The same token is produced
from equal strings or char*'s. The stringToken will commonly be used to
represent names or "symbols".
DERIVATION
stringToken : token : obj
stringToken is an abstract implementation type.
STATIC OPERATIONS
- stringTokenA stringTokenA:: isa (objA)
-
stringTokenA::isa(O) returns O if it is truly a stringToken; otherwise it
returns Nil.
- stringTokenA stringTokenA:: make (stringA)
-
stringTokenA::make(S) returns the stringToken object corresponding to the
string S.
- stringTokenA stringTokenA:: make (const char*)
-
stringTokenA::make(S) returns the stringToken object corresponding to the
string S.
- stringTokenA stringTokenA:: make (stringPosA, stringPosA)
-
stringTokenA::make(Start, Beyond) returns the stringToken object corresponding
to the string of characters between pos's Start and Beyond.
- stringTokenA stringTokenA:: make (int, stringA)
-
stringTokenA::make(Upper, S) is the same as make(S), except that all lowercase
characters are converted to upper if Upper is TRUE; otherwise, all uppercase
characters are converted to lower.
- stringTokenA stringTokenA:: make (int, const char*)
-
stringTokenA::make(Upper, S) is the same as make(S), except that all lowercase
characters are converted to upper if Upper is TRUE; otherwise, all uppercase
characters are converted to lower.
- stringTokenA stringTokenA:: make (int, stringPosA, stringPosA)
-
stringTokenA::make(Upper, Start, Beyond) is the same as make(Start, Beyond),
except that all lowercase characters are converted to upper if Upper is TRUE;
otherwise, all uppercase characters are converted to lower.
MEMBER OPERATIONS
- stringA stringTokenA:: string ()
-
T.string() returns the string that it represents. Note that this will be a
const string (shared).
- const char* stringTokenA:: charStar ()
-
T.charStar() is the same as T.string().charStar().
- int stringTokenA:: hash (int)
-
T.hash(K) is the same as T.string().hash(K).
- int stringTokenA:: hash ()
-
T.hash() will yield the same result as T.string().hash(), but this is a cached
value (ie no computation is required).
INTERNAL OPERATIONS
- const stringG* stringTokenG:: string () const
-
- const char* stringTokenG:: charStar () const
-
- int stringTokenG:: hash (int) const
-
- int stringTokenG:: hash () const
-
SEE ALSO
OATH(3O), token(3O), string(3O), stringTable(3O)
AUTHOR
Brian M. Kennedy (Computer Science Center, Texas Instruments Incorporated)
BUGS
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:51 GMT, July 24, 2024