A (possibly empty) criteria for deciding to execute a line in a sed script. The criteria include. More...
#include <muSED.h>

Public Types | |
| enum | type { none, regex, lineNumber, lastLine } |
Public Member Functions | |
| virtual std::string | debugString () const |
| Filter () | |
| Filter & | operator= (Filter const &rhs) |
| template<class StringIterator > | |
| bool | parse (StringIterator &first, StringIterator const &last) |
| parse a string into *this. | |
| bool | passes (size_t lineNo, bool isLast, std::string const &line) |
| filter. If the filter type is none, all of them do. | |
Public Attributes | |
| size_t | line_ |
| SimpleRegex | regex_ |
| type | type_ |
A (possibly empty) criteria for deciding to execute a line in a sed script. The criteria include.
The filter can be any of the above, or none.
Definition at line 133 of file muSED.h.
| std::string debugString | ( | ) | const [virtual] |
| bool parse | ( | StringIterator & | first, | |
| StringIterator const & | last | |||
| ) |
parse a string into *this.
| [in,out] | first | Pointer to the next input character; |
| [in] | last | Pointer past the end of valid input |
Note that returning false only means that there was no filter, not that an error occurred -- although it might mean that!
Leading blanks will be skipped. If an actual error occurrs, The first non-blank character will be the location where this function leaves 'first', which is an in/out parameter.
Definition at line 197 of file muSED.h.


| bool passes | ( | size_t | lineNo, | |
| bool | isLast, | |||
| std::string const & | line | |||
| ) |
filter. If the filter type is none, all of them do.
| [in] | lineNo | The number of the current line of text |
| [in] | isLast | A boolean indicating that this line is the last line of the input stream |
| [in] | line | The text of the current line |
| line | Determine if the current line of text passes the |
Definition at line 67 of file muSED.cxx.

1.6.3