Home | History | Annotate | Download | only in parser

Lines Matching refs:pStart

69     const uint8_t *pStart = NULL, *pEnd = NULL;
83 pStart = drm_strnstr(buffer, (uint8_t *)"--", bufferLen);
84 if (NULL == pStart)
86 pEnd = pStart;
89 pEnd = drm_strnstr(pStart, (uint8_t *)DRM_NEW_LINE_CRLF, leftLen);
93 strncpy((char *)pDmInfo->boundary, (char *)pStart, pEnd - pStart);
97 pStart = pEnd;
98 leftLen = pBufferEnd - pStart;
104 while ((('\r' != *pStart) || ('\n' != *(pStart + 1))) && pStart < pBufferEnd) {
105 pEnd = drm_strnstr(pStart, (uint8_t *)DRM_NEW_LINE_CRLF, leftLen);
110 if (0 == strncmp((char *)pStart, HEADERS_TRANSFER_CODING, HEADERS_TRANSFER_CODING_LEN)) {
111 pStart += HEADERS_TRANSFER_CODING_LEN;
112 DRM_SKIP_SPACE_TAB(pStart);
114 if (0 == strncmp((char *)pStart, TRANSFER_CODING_TYPE_7BIT, pEnd - pStart))
116 else if (0 == strncmp((char *)pStart, TRANSFER_CODING_TYPE_8BIT, pEnd - pStart))
118 else if (0 == strncmp((char *)pStart, TRANSFER_CODING_TYPE_BINARY, pEnd - pStart))
120 else if (0 == strncmp((char *)pStart, TRANSFER_CODING_TYPE_BASE64, pEnd - pStart))
124 } else if (0 == drm_strnicmp(pStart, (uint8_t *)HEADERS_CONTENT_TYPE, HEADERS_CONTENT_TYPE_LEN)) {
125 pStart += HEADERS_CONTENT_TYPE_LEN;
126 DRM_SKIP_SPACE_TAB(pStart);
128 if (pEnd - pStart > 0) {
129 strncpy((char *)pDmInfo->contentType, (char *)pStart, pEnd - pStart);
130 pDmInfo->contentType[pEnd - pStart] = '\0';
132 } else if (0 == drm_strnicmp(pStart, (uint8_t *)HEADERS_CONTENT_ID, HEADERS_CONTENT_ID_LEN)) {
136 pStart += HEADERS_CONTENT_ID_LEN;
137 DRM_SKIP_SPACE_TAB(pStart);
140 if(drm_strnstr(pStart, (uint8_t*)HEADERS_CONTENT_ID, pBufferEnd - pStart)){
148 if (NULL != (pTmp = (uint8_t *)memchr((char *)pStart, '<', pEnd - pStart))) {
160 if (0 == drm_strnicmp(pStart, (uint8_t *)HEADERS_CONTENT_TYPE, HEADERS_CONTENT_TYPE_LEN)) {
161 pStart += HEADERS_CONTENT_TYPE_LEN;
162 DRM_SKIP_SPACE_TAB(pStart);
164 if (pEnd - pStart > 0) {
165 strncpy((char *)pDmInfo->contentType, (char *)pStart, pEnd - pStart);
166 pDmInfo->contentType[pEnd - pStart] = '\0';
184 pStart = pEnd;
185 leftLen = pBufferEnd - pStart;
187 pStart += 2; /* skip the second CRLF: "\r\n" */
188 pEnd = pStart;
213 contentLen = pEnd - pStart;
218 pDmInfo->contentOffset = pStart - buffer;
224 pDmInfo->rightsOffset = pStart - buffer;
227 pDmInfo->contentOffset = pStart - buffer;
238 contentLen = pEnd - pStart;
239 if (FALSE == drm_dcfParser(pStart, contentLen, &dcfInfo, &pEncData))
257 pStart = drm_strnstr(pEnd, pDmInfo->boundary, leftLen);
258 if (NULL == pStart)
260 leftLen = pBufferEnd - pStart;
261 pEnd = drm_strnstr(pStart, (uint8_t *)DRM_NEW_LINE_CRLF, leftLen);
266 pStart = pEnd;