Home | History | Annotate | Download | only in native

Lines Matching defs:endstream

541 // that makes for an interesting scenario, where the stream itself contains endstream, together
550 endstream
554 endstream
561 // right now implement the silly algorithm that assumes endstream is finishing the stream
602 const unsigned char* endstream = start + length;
604 if (endstream[0] == kCR_PdfWhiteSpace && endstream[1] == kLF_PdfWhiteSpace) {
605 endstream += 2;
606 } else if (endstream[0] == kLF_PdfWhiteSpace) {
607 endstream += 1;
610 if (strncmp((const char*)endstream, "endstream", strlen("endstream")) != 0) {
616 // scan the buffer, until we find first endstream
618 const unsigned char* endstream = (const unsigned char*)strrstrk((char*)start, (char*)end,
619 "endstream");
621 if (endstream) {
622 length = endstream - start;
623 if (*(endstream-1) == kLF_PdfWhiteSpace) length--;
624 if (*(endstream-2) == kCR_PdfWhiteSpace) length--;
628 const unsigned char* endstream = start + length;
630 if (endstream[0] == kCR_PdfWhiteSpace && endstream[1] == kLF_PdfWhiteSpace) {
631 endstream += 2;
632 } else if (endstream[0] == kLF_PdfWhiteSpace) {
633 endstream += 1;
636 // TODO(edisonn): verify the next bytes are "endstream"
638 endstream += strlen("endstream");
641 return endstream;
670 const unsigned char* endstream = (const unsigned char*)strrstrk((char*)start, (char*)end, "EI");
671 const unsigned char* endEI = endstream ? endstream + 2 : NULL; // 2 == strlen("EI")
673 if (endstream) {
674 size_t length = endstream - start;
675 if (*(endstream-1) == kLF_PdfWhiteSpace) length--;
676 if (*(endstream-2) == kCR_PdfWhiteSpace) length--;