Lines Matching refs:line
125 next_token(char*& line, const char* lineEnd, Token& token) in next_token() argument
128 while (line != lineEnd && isspace(*line)) in next_token()
129 line++; in next_token()
132 if (line == lineEnd || *line == '#') { in next_token()
137 switch (*line) { in next_token()
140 line++; in next_token()
149 line++; in next_token()
150 while (line != lineEnd) { in next_token()
151 if (*line == '"') { in next_token()
153 line++; in next_token()
157 if (*line == '\\') { in next_token()
159 line++; in next_token()
160 if (line == lineEnd) in next_token()
164 token.PushChar(*(line++)); in next_token()
174 while (line != lineEnd && *line != '#' && *line != '=' in next_token()
175 && !isspace(*line)) { in next_token()
176 token.PushChar(*(line++)); in next_token()
245 char* line = descriptor; in parse_vmdk_header() local
246 char* descriptorEnd = line + descriptorSize; in parse_vmdk_header()
247 while (line < descriptorEnd) { in parse_vmdk_header()
249 char* lineEnd = strchr(line, '\n'); in parse_vmdk_header()
256 if (next_token(line, lineEnd, token) == TOKEN_END) { in parse_vmdk_header()
257 line = lineEnd + 1; in parse_vmdk_header()
262 switch (next_token(line, lineEnd, token2)) { in parse_vmdk_header()
267 if (next_token(line, lineEnd, token2) != TOKEN_STRING) { in parse_vmdk_header()
298 if (next_token(line, lineEnd, token) != TOKEN_STRING in parse_vmdk_header()
300 || next_token(line, lineEnd, token) != TOKEN_STRING in parse_vmdk_header()
302 || next_token(line, lineEnd, token2) != TOKEN_STRING) { in parse_vmdk_header()
316 line = lineEnd + 1; in parse_vmdk_header()