| 78 | } |
| 79 | |
| 80 | unsigned GetLineNumber(std::string& script, unsigned char_pos) { |
| 81 | unsigned line_number = 1; |
| 82 | for (unsigned i = 0; i < char_pos; i++) { |
| 83 | if (script[i] == '\n') { |
| 84 | line_number++; |
| 85 | } |
| 86 | } |
| 87 | return line_number; |
| 88 | } |
| 89 | |
| 90 | unsigned GetNumLines(std::string& script) { |
| 91 | unsigned line_number = 1; |
no outgoing calls
no test coverage detected