Lines Matching refs:b
42 const char *c, *e, *b; in xml_tokenize() local
86 b = c + 1; in xml_tokenize()
88 if (startswith(b, "!--")) { in xml_tokenize()
90 e = strstr(b + 3, "-->"); in xml_tokenize()
94 inc_lines(line, b, e + 3 - b); in xml_tokenize()
100 if (*b == '?') { in xml_tokenize()
103 e = strstr(b + 1, "?>"); in xml_tokenize()
107 inc_lines(line, b, e + 2 - b); in xml_tokenize()
113 if (*b == '!') { in xml_tokenize()
116 e = strchr(b + 1, '>'); in xml_tokenize()
120 inc_lines(line, b, e + 1 - b); in xml_tokenize()
126 if (*b == '/') { in xml_tokenize()
129 b++; in xml_tokenize()
133 e = strpbrk(b, WHITESPACE "/>"); in xml_tokenize()
137 ret = strndup(b, e - b); in xml_tokenize()
150 b = c + strspn(c, WHITESPACE); in xml_tokenize()
151 if (*b == 0) in xml_tokenize()
154 inc_lines(line, c, b - c); in xml_tokenize()
156 e = b + strcspn(b, WHITESPACE "=/>"); in xml_tokenize()
157 if (e > b) { in xml_tokenize()
160 ret = strndup(b, e - b); in xml_tokenize()
171 if (startswith(b, "/>")) { in xml_tokenize()
175 *p = b + 2; in xml_tokenize()
181 if (*b != '>') in xml_tokenize()
184 c = b + 1; in xml_tokenize()
216 b = strpbrk(c, WHITESPACE ">"); in xml_tokenize()
217 if (!b) in xml_tokenize()
218 b = c; in xml_tokenize()
220 ret = strndup(c, b - c); in xml_tokenize()
225 *p = b; in xml_tokenize()