Lines Matching refs:pC
116 const PVRTuint8* pC = pUTF8; in PVRTUnicodeUTF8ToUTF32() local
117 while(*pC) in PVRTUnicodeUTF8ToUTF32()
120 while(*pC && *pC < VALID_ASCII) in PVRTUnicodeUTF8ToUTF32()
122 aUTF32.Append(*pC++); in PVRTUnicodeUTF8ToUTF32()
125 if(!*pC) in PVRTUnicodeUTF8ToUTF32()
128 c32 = *pC++; in PVRTUnicodeUTF8ToUTF32()
133 if(uiTailLen == 0 || (pC + uiTailLen > pUTF8 + uiBytes)) in PVRTUnicodeUTF8ToUTF32()
142 if((pC[uiIndex] & 0xC0) != 0x80) in PVRTUnicodeUTF8ToUTF32()
145 c32 = (c32 << BYTES_PER_TAIL) + (pC[uiIndex] & TAIL_MASK); in PVRTUnicodeUTF8ToUTF32()
149 pC += uiIndex; in PVRTUnicodeUTF8ToUTF32()
176 const PVRTuint16* pC = pUTF16; in PVRTUnicodeUTF16ToUTF32() local
179 while(*++pC && (pC - pUTF16) < MAX_LEN); in PVRTUnicodeUTF16ToUTF32()
180 unsigned int uiBufferLen = (unsigned int) (pC - pUTF16); in PVRTUnicodeUTF16ToUTF32()
186 pC = pUTF16; in PVRTUnicodeUTF16ToUTF32()
189 while(*pC) in PVRTUnicodeUTF16ToUTF32()
192 c32 = *pC++; in PVRTUnicodeUTF16ToUTF32()
198 if(pC + 1 > pUTF16 + uiBufferLen || *pC == 0) in PVRTUnicodeUTF16ToUTF32()
202 if(*pC < UTF16_SURG_L_MARK || *pC > UTF16_SURG_L_END) in PVRTUnicodeUTF16ToUTF32()
206 c32 = ((c32 - UTF16_SURG_H_MARK) << 10) + (*pC - UTF16_SURG_L_MARK) + 0x10000; in PVRTUnicodeUTF16ToUTF32()
207 pC++; in PVRTUnicodeUTF16ToUTF32()
229 const PVRTuint8* pC = pUTF8; in PVRTUnicodeUTF8Length() local
233 while(*pC) in PVRTUnicodeUTF8Length()
236 const PVRTuint8* pStart = pC; in PVRTUnicodeUTF8Length()
237 while(*pC && *pC < VALID_ASCII) in PVRTUnicodeUTF8Length()
238 pC++; in PVRTUnicodeUTF8Length()
240 charCount += (unsigned int) (pC - pStart); in PVRTUnicodeUTF8Length()
243 if(!*pC) in PVRTUnicodeUTF8Length()
246 mask = *pC & 0xF0; in PVRTUnicodeUTF8Length()
249 case 0xF0: pC++; in PVRTUnicodeUTF8Length()
250 case 0xE0: pC++; in PVRTUnicodeUTF8Length()
251 case 0xC0: pC++; in PVRTUnicodeUTF8Length()
258 pC++; in PVRTUnicodeUTF8Length()
275 const PVRTuint16* pC = pUTF16; in PVRTUnicodeUTF16Length() local
277 while(*pC && (pC - pUTF16) < MAX_LEN) in PVRTUnicodeUTF16Length()
279 if( pC[0] >= UTF16_SURG_H_MARK && pC[0] <= UTF16_SURG_H_END in PVRTUnicodeUTF16Length()
280 && pC[1] >= UTF16_SURG_L_MARK && pC[0] <= UTF16_SURG_L_END) in PVRTUnicodeUTF16Length()
282 pC += 2; in PVRTUnicodeUTF16Length()
286 pC += 1; in PVRTUnicodeUTF16Length()
306 const PVRTuint8* pC = pUTF8; in PVRTUnicodeValidUTF8() local
307 while(*pC) in PVRTUnicodeValidUTF8()
310 while(*pC && *pC < VALID_ASCII) pC++; in PVRTUnicodeValidUTF8()
312 if(!*pC) in PVRTUnicodeValidUTF8()
315 PVRTuint32 c32 = *pC++; in PVRTUnicodeValidUTF8()
320 if(uiTailLen == 0 || (pC + uiTailLen > pUTF8 + uiBytes)) in PVRTUnicodeValidUTF8()
327 if((pC[uiIndex] & 0xC0) != 0x80) in PVRTUnicodeValidUTF8()
330 c32 = (c32 << BYTES_PER_TAIL) + (pC[uiIndex] & TAIL_MASK); in PVRTUnicodeValidUTF8()
334 pC += uiIndex; in PVRTUnicodeValidUTF8()