LOOS  v2.3.2
loos::internal::matchStringAsRegex Class Reference

Regular expression matching: ARG1 regexp(ARG2) More...

#include <KernelActions.hpp>

Inheritance diagram for loos::internal::matchStringAsRegex:
Collaboration diagram for loos::internal::matchStringAsRegex:

Public Member Functions

void execute (void)
 
- Public Member Functions inherited from loos::internal::Action
 Action (const std::string s)
 
void setStack (ValueStack *)
 
void setAtom (pAtom &)
 
virtual std::string name (void) const
 

Additional Inherited Members

- Protected Member Functions inherited from loos::internal::Action
int binComp (void)
 Compare the top two items on the stack...
 
bool negativeOperand (void)
 
void binaryFalseResult (void)
 
void requireAtom (void)
 Check to make sure an atom has been set...
 
- Protected Attributes inherited from loos::internal::Action
ValueStackstack
 Pointer to the data stack.
 
pAtom atom
 Pointer to the atom we'll be working on...
 
std::string my_name
 Record of command-name (for printing)
 

Detailed Description

Regular expression matching: ARG1 regexp(ARG2)

Takes the top item on the stack and compiles this into a regular expression, then matches it against the next item on the stack. This is likely to be pretty inefficient, so it's better to use matchRegex instead if you can.

Definition at line 205 of file KernelActions.hpp.


The documentation for this class was generated from the following files: