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 | 11108752 | const boost::regex& whitespaceOnlyLine() { | |
| 12 |
4/7✓ Branch 0 taken 999 times.
✓ Branch 1 taken 11107753 times.
✓ Branch 3 taken 999 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 999 times.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
|
11108752 | static const boost::regex result("^[\\h]*$"); |
| 13 | 11108752 | return result; | |
| 14 | } | ||
| 15 | |||
| 16 | 8623971 | const boost::regex& commentWhitespaceOnlyLine() { | |
| 17 |
4/7✓ Branch 0 taken 331 times.
✓ Branch 1 taken 8623640 times.
✓ Branch 3 taken 331 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 331 times.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
|
8623971 | static const boost::regex result("^[\\h]*(?:!([^\\n\\r\\v]*))?$"); |
| 18 | 8623971 | return result; | |
| 19 | } | ||
| 20 | |||
| 21 | 24572837 | const boost::regex& editorCommentWhitespaceOnlyLine() { | |
| 22 |
4/7✓ Branch 0 taken 993 times.
✓ Branch 1 taken 24571844 times.
✓ Branch 3 taken 993 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 993 times.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
|
24572837 | static const boost::regex result("^[\\h]*(?:!-([^\\n\\r\\v]*))?$"); |
| 23 | 24572837 | return result; | |
| 24 | } | ||
| 25 | |||
| 26 | 16314157 | const boost::regex& whitespaceOnlyBlock() { | |
| 27 |
4/7✓ Branch 0 taken 4052 times.
✓ Branch 1 taken 16310105 times.
✓ Branch 3 taken 4052 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 4052 times.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
|
16314157 | static const boost::regex result("[\\s]*"); |
| 28 | 16314157 | return result; | |
| 29 | } | ||
| 30 | |||
| 31 | 1733 | const boost::regex& commentWhitespaceOnlyBlock() { | |
| 32 |
4/7✓ Branch 0 taken 968 times.
✓ Branch 1 taken 765 times.
✓ Branch 3 taken 968 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 968 times.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
|
1733 | static const boost::regex result("(?:^[\\h]*(?:![^\\v\\n]*)?[\\v\\n]?)*"); |
| 33 | 1733 | return result; | |
| 34 | } | ||
| 35 | |||
| 36 | 8623655 | const boost::regex& editorCommentWhitespaceOnlyBlock() { | |
| 37 |
4/7✓ Branch 0 taken 251 times.
✓ Branch 1 taken 8623404 times.
✓ Branch 3 taken 251 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 251 times.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
|
8623655 | static const boost::regex result("(?:^[\\h]*(?:!-[^\\v\\n]*)?[\\v\\n]?)*"); |
| 38 | 8623655 | return result; | |
| 39 | } | ||
| 40 | |||
| 41 | } // namespace commentRegex | ||
| 42 | } // namespace openstudio | ||
| 43 |