Lines Matching refs:token

169         SkPdfNativeObject token;
170 current = nextObject(current, end, &token, NULL, NULL);
171 if (token.isInteger()) {
172 int id = (int)token.intValue();
174 token.reset();
175 current = nextObject(current, end, &token, NULL, NULL);
177 // int generation = (int)token.intValue();
179 token.reset();
180 current = nextObject(current, end, &token, NULL, NULL);
182 if (!token.isKeyword("obj")) {
200 } else if (token.isKeyword("trailer")) {
203 } else if (token.isKeyword("startxref")) {
204 token.reset();
205 current = nextObject(current, end, &token, NULL, NULL); // ignore startxref
252 SkPdfNativeObject token;
254 token.reset();
256 current = nextObject(current, trailerEnd, &token, NULL, NULL);
257 if (!token.isInteger()) {
263 int startId = (int)token.intValue();
264 token.reset();
265 current = nextObject(current, trailerEnd, &token, NULL, NULL);
267 if (!token.isInteger()) {
269 &token, SkPdfNativeObject::kInteger_PdfObjectType, NULL);
273 int entries = (int)token.intValue();
276 token.reset();
277 current = nextObject(current, trailerEnd, &token, NULL, NULL);
278 if (!token.isInteger()) {
281 &token, SkPdfNativeObject::kInteger_PdfObjectType, NULL);
284 int offset = (int)token.intValue();
286 token.reset();
287 current = nextObject(current, trailerEnd, &token, NULL, NULL);
288 if (!token.isInteger()) {
291 &token, SkPdfNativeObject::kInteger_PdfObjectType, NULL);
294 int generation = (int)token.intValue();
296 token.reset();
297 current = nextObject(current, trailerEnd, &token, NULL, NULL);
298 if (!token.isKeyword() || token.lenstr() != 1 ||
299 (*token.c_str() != 'f' && *token.c_str() != 'n')) {
302 &token, SkPdfNativeObject::kKeyword_PdfObjectType, NULL);
306 this->addCrossSectionInfo(startId + i, generation, offset, *token.c_str() == 'f');
335 SkPdfNativeObject token;
336 current = nextObject(current, trailerEnd, &token, fAllocator, NULL);
337 if (!token.isDictionary()) {
340 SkPdfFileTrailerDictionary* trailer = (SkPdfFileTrailerDictionary*)&token;
430 // TODO(edisonn): report warning/error - verify that the last token is endobj