|
JUK1
|
#include <string>#include <sstream>#include <regex>

Go to the source code of this file.
Functions | |
| std::regex | generateRegex (std::string indentifier, std::string simplifiedMatching, bool startAnchor=true, bool endAnchor=true) |
| a helper function to aid in the construction of regexes for parsing netlist files More... | |
| std::regex generateRegex | ( | std::string | indentifier, |
| std::string | simplifiedMatching, | ||
| bool | startAnchor = true, |
||
| bool | endAnchor = true |
||
| ) |
a helper function to aid in the construction of regexes for parsing netlist files
| indentifier | The designator for the component. e.g. "R" for resistor |
| simplifiedMatching | The string that contains the data for what we want matched. For example: n = int/size_t w = word (works for floats etc) ? = everything after is optional c = char s = space |
| startAnchor | What prepends the regex, defaults to "^". |
| endAnchor | What appends the regex, defaults to "$". |
Definition at line 22 of file ElementsRegexBuilder.cpp.
