Lines Matching refs:paLines

46     pStream->paLines            = NULL;
105 pStream->paLines = (PSCMSTREAMLINE)RTMemAlloc(cLinesEstimate * sizeof(SCMSTREAMLINE));
106 if (pStream->paLines)
108 pStream->paLines[0].off = 0;
109 pStream->paLines[0].cch = 0;
110 pStream->paLines[0].enmEol = SCMEOL_NONE;
141 if (pStream->paLines)
143 RTMemFree(pStream->paLines);
144 pStream->paLines = NULL;
206 void *pvNew = RTMemRealloc(pStream->paLines, cLinesAllocated * sizeof(SCMSTREAMLINE));
210 pStream->paLines = (PSCMSTREAMLINE)pvNew;
274 size_t offEol = pStream->paLines[iLine].off + pStream->paLines[iLine].cch;
275 AssertReturn(offEol + pStream->paLines[iLine].enmEol <= cbFile, VERR_INTERNAL_ERROR_2);
276 switch (pStream->paLines[iLine].enmEol)
403 pStream->paLines[iLine].off = off;
414 pStream->paLines[iLine].enmEol = *penmEol = SCMEOL_LF;
417 pStream->paLines[iLine].enmEol = *penmEol = SCMEOL_CRLF;
424 pStream->paLines[iLine].enmEol = *penmEol = SCMEOL_NONE;
427 pStream->paLines[iLine].cch = cb;
501 return pStream->paLines[iLine].off;
562 if (offAbsolute < pStream->paLines[i].off + pStream->paLines[i].cch + pStream->paLines[i].enmEol)
566 if (offAbsolute > pStream->paLines[i].off + pStream->paLines[i].cch)
633 pStream->off = pStream->paLines[iLine].off;
659 return pStream->off == pStream->paLines[pStream->iLine].off;
701 const char *pchRet = &pStream->pch[pStream->paLines[iLine].off];
702 *pcchLine = pStream->paLines[iLine].cch;
703 *penmEol = pStream->paLines[iLine].enmEol;
706 pStream->off = pStream->paLines[iLine].off + pStream->paLines[iLine].cch + pStream->paLines[iLine].enmEol;
736 && offCur > pStream->paLines[iCurLine].off)
738 offCur -= pStream->paLines[iCurLine].off;
739 Assert(offCur <= pStream->paLines[iCurLine].cch + pStream->paLines[iCurLine].enmEol);
740 if (offCur < pStream->paLines[iCurLine].cch)
790 if (pStream->off >= pStream->paLines[iLine].off + pStream->paLines[iLine].cch + pStream->paLines[iLine].enmEol)
886 enmEol = pStream->paLines[0].enmEol;
919 enmEol = pStream->paLines[iLine].enmEol;
950 && pStream->paLines[iLine - 1].enmEol == SCMEOL_NONE))
952 AssertReturn(pStream->paLines[iLine].cch == 0, VERR_INTERNAL_ERROR_3);
967 pStream->paLines[iLine - 1].enmEol = enmEol2;
968 pStream->paLines[iLine].off = off;
993 pStream->paLines[iLine].cch = off - pStream->paLines[iLine].off + cchLine;
994 pStream->paLines[iLine].enmEol = enmEol;
1018 pStream->paLines[iLine].off = off;
1019 pStream->paLines[iLine].cch = 0;
1020 pStream->paLines[iLine].enmEol = SCMEOL_NONE;
1055 && pStream->paLines[iLine - 1].enmEol == SCMEOL_NONE))
1067 pStream->paLines[iLine].cch += cchBuf;
1079 pStream->paLines[iLine].cch = off - pStream->paLines[iLine].off;
1080 pStream->paLines[iLine].enmEol = SCMEOL_NONE;
1088 : !pStream->paLines[iLine].cch
1089 || pStream->pch[pStream->paLines[iLine].off + pStream->paLines[iLine].cch - 1] != '\r')
1090 pStream->paLines[iLine].enmEol = SCMEOL_LF;
1093 pStream->paLines[iLine].enmEol = SCMEOL_CRLF;
1096 pStream->paLines[iLine].cch += cchLine;
1100 pStream->paLines[iLine].off = off + offBuf;
1101 pStream->paLines[iLine].cch = 0;
1102 pStream->paLines[iLine].enmEol = SCMEOL_NONE;
1109 pStream->paLines[iLine].cch = cchLeft;
1157 pStream->paLines[pStream->iLine].cch++;
1261 AssertReturn(pStream->off > pStream->paLines[iLine].off, false);
1262 size_t const cchLeft = pStream->paLines[iLine].cch + pStream->paLines[iLine].off - (pStream->off - 1);
1302 size_t const cchLeft = pStream->paLines[iLine].cch + pStream->paLines[iLine].off - pStream->off;
1341 size_t const cchLeft = pStream->paLines[iLine].cch + pStream->paLines[iLine].off - (pStream->off - 1);