LOOS 4.1.0
The Lightweight Object Oriented Structural analysis library/toolkit
Loading...
Searching...
No Matches
Public Member Functions | List of all members
loos::internal::matchStringAsRegex Class Reference

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

#include <KernelActions.hpp>

Inheritance diagram for loos::internal::matchStringAsRegex:
Inheritance graph
[legend]
Collaboration diagram for loos::internal::matchStringAsRegex:
Collaboration graph
[legend]

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.

Member Function Documentation

◆ execute()

void loos::internal::matchStringAsRegex::execute ( void )
virtual

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