| 123 | } |
| 124 | |
| 125 | static void GetAlphaWord(char* buf, int bufSize, QIStream& in) |
| 126 | { |
| 127 | int len = 0; |
| 128 | int c = in.get(); |
| 129 | while (isspace(c)) |
| 130 | { |
| 131 | c = in.get(); |
| 132 | } |
| 133 | while (isalnum(c) || c == '_') |
| 134 | { |
| 135 | if (len < bufSize) |
| 136 | { |
| 137 | buf[len++] = c; |
| 138 | } |
| 139 | c = in.get(); |
| 140 | } |
| 141 | in.unget(); |
| 142 | buf[len] = 0; |
| 143 | } |
| 144 | |
| 145 | // Meyer's singleton for access string constant - no global constructor! |
| 146 | #pragma clang diagnostic push |
no test coverage detected