Lines Matching defs:in
5 * found in the LICENSE file.
95 // TODO(edisonn): report error in pdf file (end of stream with ] for end of aray
127 const unsigned char* in = start;
131 while (in < end) {
132 openRoundBrackets += ((*in) == kOpenedRoundBracket_PdfDelimiter);
133 openRoundBrackets -= ((*in) == kClosedRoundBracket_PdfDelimiter);
135 in++; // consumed )
139 if (*in == kEscape_PdfSpecial) {
140 if (in + 1 < end) {
141 switch (in[1]) {
145 in += 2;
151 in += 2;
157 in += 2;
164 in += 2;
170 in += 2;
176 in += 2;
182 in += 2;
188 in += 2;
200 in++; // consume backslash
204 while (in < end && *in >= '0' && *in < '8') {
205 code = (code << 3) + ((*in) - '0'); // code * 8 + d
207 in++;
223 in++;
227 in++;
230 if (hasOut) { *out = *in; }
231 in++;
237 return in; // consumed already ) at the end of the string
267 const unsigned char* in = start;
271 while (in < end) {
272 while (in < end && isPdfWhiteSpace(*in)) {
273 in++;
276 if (*in == kClosedInequityBracket_PdfDelimiter) {
277 in++; // consume >
282 if (in >= end) {
287 switch (*in) {
298 code = (*in - '0') << 4;
307 code = (*in - 'a' + 10) << 4;
316 code = (*in - 'A' + 10) << 4;
324 in++; // advance
326 while (in < end && isPdfWhiteSpace(*in)) {
327 in++;
331 if (in >= end) {
337 if (*in == kClosedInequityBracket_PdfDelimiter) {
340 in++;
344 switch (*in) {
355 code += (*in - '0');
364 code += (*in - 'a' + 10);
373 code += (*in - 'A' + 10);
383 in++;
387 return in; // consumed already ) at the end of the string
416 const unsigned char* in = start;
420 while (in < end) {
421 if (isPdfWhiteSpaceOrPdfDelimiter(*in)) {
425 if (*in == '#' && in + 2 < end) {
426 in++;
427 switch (*in) {
438 code = (*in - '0') << 4;
447 code = (*in - 'a' + 10) << 4;
456 code = (*in - 'A' + 10) << 4;
464 in++; // advance
466 switch (*in) {
477 code += (*in - '0');
486 code += (*in - 'a' + 10);
495 code += (*in - 'A' + 10);
505 in++;
507 if (hasOut) { *out = *in; }
509 in++;
514 return in; // consumed already ) at the end of the string
551 8 0 obj #we are in stream actually, not a real object
552 << 10 >> #we are in stream actually, not a real object
656 // return end; // but can we have a pixel image encoded in 1-2 bytes?
679 // TODO(edisonn): report error in inline image stream (ID-EI) section
697 SkPdfAllocator tmpStorage; // keys will be stored in dict, we can free them after set.
903 // TODO(edisonn): really bad hack, find end of object (endobj might be in a comment!)
905 // but we need to remove this hack for pdfs in the wild
920 // TODO(edisonn): really bad hack, find end of object (endobj might be in a comment!)
922 // but we need to remove this hack for pdfs in the wild