File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 66
77namespace {
88
9+ const auto floatPattern = " (-?\\ d+\\ .?(\\ d+)?)" ; // Can be negative
10+
911const auto signalIdentifierPattern = " (SG_)" ;
1012const auto namePattern = " (\\ w+)" ;
1113const auto bitStartPattern = " (\\ d+)" ; // Cannot be negative
1214const auto lengthPattern = " (\\ d+)" ; // Cannot be negative
1315const auto byteOrderPattern = " ([0-1])" ;
1416const auto signPattern = " (\\ +|\\ -)" ;
15- const auto scalePattern = " (\\ d+\\ .?(\\ d+)?)" ;
16- const auto offsetPattern = " (-? \\ d+ \\ .?( \\ d+)?) " ; // Can be negative
17+ const auto scalePattern = " (\\ d+\\ .?(\\ d+)?)" ; // Non negative float
18+ const auto offsetPattern = floatPattern;
1719const auto offsetScalePattern = std::string(" \\ (" ) + scalePattern + " \\ ," + offsetPattern + " \\ )" ;
18- const auto minPattern = " (-? \\ d+ \\ .?( \\ d+)?) " ;
19- const auto maxPattern = " (-? \\ d+ \\ .?( \\ d+)?) " ;
20+ const auto minPattern = floatPattern ;
21+ const auto maxPattern = floatPattern ;
2022const auto minMaxPattern = std::string(" \\ [" ) + minPattern + " \\ |" + maxPattern + " \\ ]" ;
21- const auto unitPattern = " \" (\\ w*)\" " ;
23+ const auto unitPattern = " \" (\\ w*)\" " ; // Random string
2224const auto receiverPattern = " ([\\ w\\ ,]+|Vector__XXX)*" ;
2325const auto whiteSpace = " \\ s" ;
2426
You can’t perform that action at this time.
0 commit comments