Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

iRegExp Struct Reference

Interface definition for a bytecode regular expression. More...

#include <lexan.h>

Inheritance diagram for iRegExp:

iBase List of all members.

Public Methods

virtual bool GetOp (unsigned index, unsigned char &op)=0
 Gets an opcode at the given index. Returns false if the index is invalid.

virtual bool SetOp (unsigned index, unsigned char op)=0
 Sets the opcode at the given index. More...

virtual bool Compact ()=0
 Fixes the code buffer so that it fits the size of the regular expression exactly. More...


Detailed Description

Interface definition for a bytecode regular expression.


Member Function Documentation

bool iRegExp::Compact ( ) [pure virtual]
 

Fixes the code buffer so that it fits the size of the regular expression exactly.

Returns true on success

bool iRegExp::SetOp ( unsigned index,
unsigned char op ) [pure virtual]
 

Sets the opcode at the given index.

Grows the code buffer if the index is greater than the length. Returns true on success. Returns false if index is an absurd value (currently > 0xfff)


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000