Lines Matching refs:line
103 static int MatchRegex(const char* line, const regex_t* regex, regmatch_t* match);
178 ParseLine(NdkCrashParser* parser, const char* line) in ParseLine() argument
183 if (line == NULL || *line == '\0') { in ParseLine()
189 if (strstr(line, _crash_dump_header) != NULL) { in ParseLine()
204 if (strstr(line, _build_fingerprint_header) != NULL) { in ParseLine()
206 strstr(line, _build_fingerprint_header)); in ParseLine()
213 if (MatchRegex(line, &parser->re_pid_header, &match)) { in ParseLine()
214 fprintf(parser->out_handle, "%s\n", line + match.rm_so); in ParseLine()
222 if (MatchRegex(line, &parser->re_sig_header, &match)) { in ParseLine()
223 fprintf(parser->out_handle, "%s\n", line + match.rm_so); in ParseLine()
230 if (!MatchRegex(line, &parser->re_frame_header, &match)) in ParseLine()
241 if (!(find_pc(line))) in ParseLine()
245 return ParseFrame(parser, line + match.rm_so); in ParseLine()
253 MatchRegex(const char* line, const regex_t* regex, regmatch_t* match) in MatchRegex() argument
255 int err = regexec(regex, line, 1, match, 0x00400/*REG_TRACE*/); in MatchRegex()
260 fprintf(stderr, "regexec(%s, %s) has failed: %s\n", line, regex, rerr); in MatchRegex()