P4C
The P4 Compiler
|
'Result' is used to report how a match has proceeded. More...
#include <bf_gtest_helpers.h>
Public Member Functions | |
Result (bool success, size_t pos, size_t count) | |
Result (bool success, size_t pos, size_t count, std::smatch match) | |
Public Attributes | |
size_t | count |
std::vector< std::string > | matches |
Match strings. | |
size_t | pos |
bool | success |
true if the 'CheckList' was completed. | |
Friends | |
bool | operator== (const Result &l, const Result &r) |
'Result' is used to report how a match has proceeded.
size_t P4::Test::Match::Result::count |
tHe number of 'CheckList' item successfully matched.
size_t P4::Test::Match::Result::pos |
the position in 'str' the match was successful to. N.B. 'pos' may be (one) beyond the end of 'str'!