Lines Matching refs:current

35 static const unsigned char* lineHome(const unsigned char* start, const unsigned char* current) {
36 while (current > start && !isPdfEOL(*(current - 1))) {
37 current--;
39 return current;
43 const unsigned char* current) {
44 if (current > start && isPdfEOL(*(current - 1))) {
45 current--;
49 if (current > start && isPdfEOL(*(current - 1)) && *current != *(current - 1)) {
50 current--;
53 while (current > start && !isPdfEOL(*(current - 1))) {
54 current--;
57 return current;
60 static const unsigned char* ignoreLine(const unsigned char* current, const unsigned char* end) {
61 while (current < end && !isPdfEOL(*current)) {
62 current++;
64 current++;
65 if (current < end && isPdfEOL(*current) && *current != *(current - 1)) {
66 current++;
68 return current;
161 const unsigned char* current = fFileContent;
165 current = ignoreLine(current, end);
167 current = skipPdfWhiteSpaces(current, end);
168 while (current < end) {
170 current = nextObject(current, end, &token, NULL, NULL);
175 current = nextObject(current, end, &token, NULL, NULL);
180 current = nextObject(current, end, &token, NULL, NULL);
192 fObjects[id].fOffset = SkToInt(current - fFileContent);
195 current = nextObject(current, end, obj, fAllocator, this);
202 current = readTrailer(current, end, true, &dummy, true);
205 current = nextObject(current, end, &token, NULL, NULL); // ignore startxref
208 current = skipPdfWhiteSpaces(current, end);
244 const unsigned char* current = nextObject(xrefStart, trailerEnd, &xref, NULL, NULL);
253 while (current < trailerEnd) {
255 const unsigned char* previous = current;
256 current = nextObject(current, trailerEnd, &token, NULL, NULL);
265 current = nextObject(current, trailerEnd, &token, NULL, NULL);
270 return current;
277 current = nextObject(current, trailerEnd, &token, NULL, NULL);
282 return current;
287 current = nextObject(current, trailerEnd, &token, NULL, NULL);
292 return current;
297 current = nextObject(current, trailerEnd, &token, NULL, NULL);
303 return current;
311 return current;
319 const unsigned char* current = trailerStart;
323 current = nextObject(current, trailerEnd, &trailerKeyword, NULL, NULL);
331 return current;
336 current = nextObject(current, trailerEnd, &token, fAllocator, NULL);
338 return current;
342 return current;
351 return current;
360 return current;
379 const unsigned char* current = fFileContent + startOffset;
382 SkPdfNativeTokenizer tokenizer(current, (int) (end - current), fAllocator, this);
389 current = nextObject(current, end, &idObj, NULL, NULL);
390 if (current >= end) {
396 current = nextObject(current, end, &generationObj, NULL, NULL);
397 if (current >= end) {
403 current = nextObject(current, end, &objKeyword, NULL, NULL);
404 if (current >= end) {
428 current = nextObject(current, end, dict, fAllocator, this);
472 SkPdfPageObjectDictionary* current = fPages[page];
473 while (!current->has_MediaBox() && current->has_Parent()) {
474 current = (SkPdfPageObjectDictionary*)current->Parent(this);
476 if (current) {
477 return current->MediaBox(this);