Lines Matching refs:bptr
2039 char *temp, *tptr, *bptr, *line_end, *limit; in php_fgetcsv() local
2051 bptr = buf; in php_fgetcsv()
2071 inc_len = (bptr < limit ? (*bptr == '\0' ? 1 : php_mblen(bptr, limit - bptr)): 0); in php_fgetcsv()
2073 char *tmp = bptr; in php_fgetcsv()
2078 bptr = tmp; in php_fgetcsv()
2082 if (first_field && bptr == line_end) { in php_fgetcsv()
2088 if (inc_len != 0 && *bptr == enclosure) { in php_fgetcsv()
2091 bptr++; /* move on to first character in field */ in php_fgetcsv()
2092 hunk_begin = bptr; in php_fgetcsv()
2100 memcpy(tptr, hunk_begin, bptr - hunk_begin - 1); in php_fgetcsv()
2101 tptr += (bptr - hunk_begin - 1); in php_fgetcsv()
2102 hunk_begin = bptr; in php_fgetcsv()
2106 memcpy(tptr, hunk_begin, bptr - hunk_begin); in php_fgetcsv()
2107 tptr += (bptr - hunk_begin); in php_fgetcsv()
2108 hunk_begin = bptr; in php_fgetcsv()
2117 memcpy(tptr, hunk_begin, bptr - hunk_begin); in php_fgetcsv()
2118 tptr += (bptr - hunk_begin); in php_fgetcsv()
2119 hunk_begin = bptr; in php_fgetcsv()
2147 bptr = buf = new_buf; in php_fgetcsv()
2167 bptr++; in php_fgetcsv()
2171 if (*bptr != enclosure) { in php_fgetcsv()
2173 memcpy(tptr, hunk_begin, bptr - hunk_begin - 1); in php_fgetcsv()
2174 tptr += (bptr - hunk_begin - 1); in php_fgetcsv()
2175 hunk_begin = bptr; in php_fgetcsv()
2178 memcpy(tptr, hunk_begin, bptr - hunk_begin); in php_fgetcsv()
2179 tptr += (bptr - hunk_begin); in php_fgetcsv()
2180 bptr++; in php_fgetcsv()
2181 hunk_begin = bptr; in php_fgetcsv()
2185 if (*bptr == enclosure) { in php_fgetcsv()
2187 } else if (*bptr == escape_char) { in php_fgetcsv()
2190 bptr++; in php_fgetcsv()
2199 memcpy(tptr, hunk_begin, bptr - hunk_begin - 1); in php_fgetcsv()
2200 tptr += (bptr - hunk_begin - 1); in php_fgetcsv()
2201 hunk_begin = bptr; in php_fgetcsv()
2204 bptr += inc_len; in php_fgetcsv()
2205 memcpy(tptr, hunk_begin, bptr - hunk_begin); in php_fgetcsv()
2206 tptr += (bptr - hunk_begin); in php_fgetcsv()
2207 hunk_begin = bptr; in php_fgetcsv()
2211 bptr += inc_len; in php_fgetcsv()
2216 inc_len = (bptr < limit ? (*bptr == '\0' ? 1 : php_mblen(bptr, limit - bptr)): 0); in php_fgetcsv()
2232 if (*bptr == delimiter) { in php_fgetcsv()
2239 bptr += inc_len; in php_fgetcsv()
2240 inc_len = (bptr < limit ? (*bptr == '\0' ? 1 : php_mblen(bptr, limit - bptr)): 0); in php_fgetcsv()
2244 memcpy(tptr, hunk_begin, bptr - hunk_begin); in php_fgetcsv()
2245 tptr += (bptr - hunk_begin); in php_fgetcsv()
2246 bptr += inc_len; in php_fgetcsv()
2251 hunk_begin = bptr; in php_fgetcsv()
2263 if (*bptr == delimiter) { in php_fgetcsv()
2270 bptr += inc_len; in php_fgetcsv()
2271 inc_len = (bptr < limit ? (*bptr == '\0' ? 1 : php_mblen(bptr, limit - bptr)): 0); in php_fgetcsv()
2274 memcpy(tptr, hunk_begin, bptr - hunk_begin); in php_fgetcsv()
2275 tptr += (bptr - hunk_begin); in php_fgetcsv()
2278 if (*bptr == delimiter) { in php_fgetcsv()
2279 bptr++; in php_fgetcsv()