stringPos

Section: OATH Reference Manual (3O)
Updated: 26 August 1991
Index Return to Main Contents
 

NAME

stringPos (stringPosA, stringPosG) - a position in a string  

SYNOPSIS

#include <oath/string.h>  

DESCRIPTION

The stringPos, a companion class to string, is a pos which has functionality appropriate for a position in a list of characters.  

DERIVATION

stringPos : listPos : pos : obj

stringPos is an abstract type.  

STATIC OPERATIONS

stringPosA stringPosA:: isa (objA)
stringPosA::isa(O) returns O if it is truly a stringPos; otherwise it returns Nil.
 

MEMBER OPERATIONS

characterA stringPosA:: operator * ()
*P returns the character in front of the stringPos P. It is an error if P is "past end".
int stringPosA:: skipSpaces ()
P.skipSpaces() advances stringPos P beyond all subsequent characters that isSpace(). It returns TRUE if P moved.
stringA stringPosA:: match (stringA)
P.match(S) will determine if the characters following it match the characters in string S. If they do, P will be advanced to just beyond the matching characters and S will be returned. Otherwise, P will not move and Nil will be returned.
int stringPosA:: canMatch (stringA)
P.canMatch(S) will return TRUE if the characters following it match the characters in string S.
stringA stringPosA:: find (stringA)
P.find(S) will advance P to the first position for which P.canMatch(S) is TRUE. If there is such a position, then S will be returned. If there is not, P will not be moved and Nil will be returned.
stringA stringPosA:: findMatch (stringA)
P.findMatch(S) is the same as (P.find(S), P.match(S)).
stringA stringPosA:: matchAnyCase (stringA)
P.matchAnyCase(S) is the same as P.match(S), except case insensitive.
int stringPosA:: canMatchAnyCase (stringA)
P.canMatchAnyCase(S) is the same as P.canMatch(S), except case insensitive.
stringA stringPosA:: findAnyCase (stringA)
P.findAnyCase(S) is the same as P.find(S), except case insensitive.
stringA stringPosA:: findMatchAnyCase (stringA)
P.findMatchAnyCase(S) is the same as P.findMatch(S), except case insensitive.
const char* stringPosA:: match (const char*)
P.match(S) is the same as above, except it takes a char* and returns a char* or NULL.
int stringPosA:: canMatch (const char*)
P.canMatch(S) is the same as above, except it takes a char*.
const char* stringPosA:: find (const char*)
P.find(S) is the same as above, except it takes a char* and returns a char* or NULL.
const char* stringPosA:: findMatch (const char*)
P.findMatch(S) is the same as above, except it takes a char* and returns a char* or NULL.
const char* stringPosA:: matchAnyCase (const char*)
P.matchAnyCase(S) is the same as P.match(S), except case insensitive.
int stringPosA:: canMatchAnyCase (const char*)
P.canMatchAnyCase(S) is the same as P.canMatch(S), except case insensitive.
const char* stringPosA:: findAnyCase (const char*)
P.findAnyCase(S) is the same as P.find(S), except case insensitive.
const char* stringPosA:: findMatchAnyCase (const char*)
P.findMatchAnyCase(S) is the same as P.findMatch(S), except case insensitive.
 

INTERNAL OPERATIONS

virtual const characterG* stringPosG:: charIndirection () const
virtual int stringPosG:: skipSpaces ()
virtual const stringG* stringPosG:: match (const stringG*)
virtual int stringPosG:: canMatch (const stringG*)
virtual const stringG* stringPosG:: findString (const stringG*)
virtual const stringG* stringPosG:: findMatch (const stringG*)
virtual const stringG* stringPosG:: matchAnyCase (const stringG*)
virtual int stringPosG:: canMatchAnyCase (const stringG*)
virtual const stringG* stringPosG:: findStringAnyCase (const stringG*)
virtual const stringG* stringPosG:: findMatchAnyCase (const stringG*)
virtual const char* stringPosG:: match (const char*)
virtual int stringPosG:: canMatch (const char*)
virtual const char* stringPosG:: findString (const char*)
virtual const char* stringPosG:: findMatch (const char*)
virtual const char* stringPosG:: matchAnyCase (const char*)
virtual int stringPosG:: canMatchAnyCase (const char*)
virtual const char* stringPosG:: findStringAnyCase (const char*)
virtual const char* stringPosG:: findMatchAnyCase (const char*)
 

SEE ALSO

OATH(3O), listPos(3O), string(3O), character(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:47 GMT, July 24, 2024