src/utilities/idd/CommentRegex.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*********************************************************************************************************************** | ||
| 2 | * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC. | ||
| 3 | * See also https://openstudio.net/license | ||
| 4 | ***********************************************************************************************************************/ | ||
| 5 | |||
| 6 | #include "CommentRegex.hpp" | ||
| 7 | |||
| 8 | namespace openstudio { | ||
| 9 | namespace commentRegex { | ||
| 10 | |||
| 11 | 11105178 | const boost::regex& whitespaceOnlyLine() { | |
| 12 |
4/7✓ Branch 0 taken 988 times.
✓ Branch 1 taken 11104190 times.
✓ Branch 3 taken 988 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 988 times.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
|
11105178 | static const boost::regex result("^[\\h]*$"); |
| 13 | 11105178 | return result; | |
| 14 | } | ||
| 15 | |||
| 16 | 8621970 | const boost::regex& commentWhitespaceOnlyLine() { | |
| 17 |
4/7✓ Branch 0 taken 331 times.
✓ Branch 1 taken 8621639 times.
✓ Branch 3 taken 331 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 331 times.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
|
8621970 | static const boost::regex result("^[\\h]*(?:!([^\\n\\r\\v]*))?$"); |
| 18 | 8621970 | return result; | |
| 19 | } | ||
| 20 | |||
| 21 | 24544656 | const boost::regex& editorCommentWhitespaceOnlyLine() { | |
| 22 |
4/7✓ Branch 0 taken 982 times.
✓ Branch 1 taken 24543674 times.
✓ Branch 3 taken 982 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 982 times.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
|
24544656 | static const boost::regex result("^[\\h]*(?:!-([^\\n\\r\\v]*))?$"); |
| 23 | 24544656 | return result; | |
| 24 | } | ||
| 25 | |||
| 26 | 16302055 | const boost::regex& whitespaceOnlyBlock() { | |
| 27 |
4/7✓ Branch 0 taken 4003 times.
✓ Branch 1 taken 16298052 times.
✓ Branch 3 taken 4003 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 4003 times.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
|
16302055 | static const boost::regex result("[\\s]*"); |
| 28 | 16302055 | return result; | |
| 29 | } | ||
| 30 | |||
| 31 | 1722 | const boost::regex& commentWhitespaceOnlyBlock() { | |
| 32 |
4/7✓ Branch 0 taken 957 times.
✓ Branch 1 taken 765 times.
✓ Branch 3 taken 957 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 957 times.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
|
1722 | static const boost::regex result("(?:^[\\h]*(?:![^\\v\\n]*)?[\\v\\n]?)*"); |
| 33 | 1722 | return result; | |
| 34 | } | ||
| 35 | |||
| 36 | 8621654 | const boost::regex& editorCommentWhitespaceOnlyBlock() { | |
| 37 |
4/7✓ Branch 0 taken 251 times.
✓ Branch 1 taken 8621403 times.
✓ Branch 3 taken 251 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 251 times.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
|
8621654 | static const boost::regex result("(?:^[\\h]*(?:!-[^\\v\\n]*)?[\\v\\n]?)*"); |
| 38 | 8621654 | return result; | |
| 39 | } | ||
| 40 | |||
| 41 | } // namespace commentRegex | ||
| 42 | } // namespace openstudio | ||
| 43 |