Lines Matching refs:bptr
2005 char *temp, *tptr, *bptr, *line_end, *limit; in php_fgetcsv() local
2019 bptr = buf; in php_fgetcsv()
2039 inc_len = (bptr < limit ? (*bptr == '\0' ? 1 : php_mblen(bptr, limit - bptr)): 0); in php_fgetcsv()
2041 char *tmp = bptr; in php_fgetcsv()
2046 bptr = tmp; in php_fgetcsv()
2050 if (first_field && bptr == line_end) { in php_fgetcsv()
2056 if (inc_len != 0 && *bptr == enclosure) { in php_fgetcsv()
2059 bptr++; /* move on to first character in field */ in php_fgetcsv()
2060 hunk_begin = bptr; in php_fgetcsv()
2068 memcpy(tptr, hunk_begin, bptr - hunk_begin - 1); in php_fgetcsv()
2069 tptr += (bptr - hunk_begin - 1); in php_fgetcsv()
2070 hunk_begin = bptr; in php_fgetcsv()
2074 memcpy(tptr, hunk_begin, bptr - hunk_begin); in php_fgetcsv()
2075 tptr += (bptr - hunk_begin); in php_fgetcsv()
2076 hunk_begin = bptr; in php_fgetcsv()
2085 memcpy(tptr, hunk_begin, bptr - hunk_begin); in php_fgetcsv()
2086 tptr += (bptr - hunk_begin); in php_fgetcsv()
2087 hunk_begin = bptr; in php_fgetcsv()
2115 bptr = buf = new_buf; in php_fgetcsv()
2135 bptr++; in php_fgetcsv()
2139 if (*bptr != enclosure) { in php_fgetcsv()
2141 memcpy(tptr, hunk_begin, bptr - hunk_begin - 1); in php_fgetcsv()
2142 tptr += (bptr - hunk_begin - 1); in php_fgetcsv()
2143 hunk_begin = bptr; in php_fgetcsv()
2146 memcpy(tptr, hunk_begin, bptr - hunk_begin); in php_fgetcsv()
2147 tptr += (bptr - hunk_begin); in php_fgetcsv()
2148 bptr++; in php_fgetcsv()
2149 hunk_begin = bptr; in php_fgetcsv()
2153 if (*bptr == enclosure) { in php_fgetcsv()
2155 } else if (escape_char != PHP_CSV_NO_ESCAPE && *bptr == escape_char) { in php_fgetcsv()
2158 bptr++; in php_fgetcsv()
2167 memcpy(tptr, hunk_begin, bptr - hunk_begin - 1); in php_fgetcsv()
2168 tptr += (bptr - hunk_begin - 1); in php_fgetcsv()
2169 hunk_begin = bptr; in php_fgetcsv()
2172 bptr += inc_len; in php_fgetcsv()
2173 memcpy(tptr, hunk_begin, bptr - hunk_begin); in php_fgetcsv()
2174 tptr += (bptr - hunk_begin); in php_fgetcsv()
2175 hunk_begin = bptr; in php_fgetcsv()
2179 bptr += inc_len; in php_fgetcsv()
2184 inc_len = (bptr < limit ? (*bptr == '\0' ? 1 : php_mblen(bptr, limit - bptr)): 0); in php_fgetcsv()
2200 if (*bptr == delimiter) { in php_fgetcsv()
2207 bptr += inc_len; in php_fgetcsv()
2208 inc_len = (bptr < limit ? (*bptr == '\0' ? 1 : php_mblen(bptr, limit - bptr)): 0); in php_fgetcsv()
2212 memcpy(tptr, hunk_begin, bptr - hunk_begin); in php_fgetcsv()
2213 tptr += (bptr - hunk_begin); in php_fgetcsv()
2214 bptr += inc_len; in php_fgetcsv()
2219 hunk_begin = bptr; in php_fgetcsv()
2231 if (*bptr == delimiter) { in php_fgetcsv()
2238 bptr += inc_len; in php_fgetcsv()
2239 inc_len = (bptr < limit ? (*bptr == '\0' ? 1 : php_mblen(bptr, limit - bptr)): 0); in php_fgetcsv()
2242 memcpy(tptr, hunk_begin, bptr - hunk_begin); in php_fgetcsv()
2243 tptr += (bptr - hunk_begin); in php_fgetcsv()
2246 if (*bptr == delimiter) { in php_fgetcsv()
2247 bptr++; in php_fgetcsv()