Lines Matching refs:tempbuffer
737 UChar *tempbuffer=NULL; in handleGeneratedSpaces() local
752 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces()
754 if(tempbuffer == NULL) { in handleGeneratedSpaces()
761 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces()
770 tempbuffer[j] = dest[i]; in handleGeneratedSpaces()
777 tempbuffer[i] = 0x0000; in handleGeneratedSpaces()
782 u_memcpy(dest, tempbuffer, sourceLength); in handleGeneratedSpaces()
820 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces()
830 tempbuffer[j] = dest[i]; in handleGeneratedSpaces()
837 tempbuffer[i] = SPACE_CHAR; in handleGeneratedSpaces()
840 u_memcpy(dest, tempbuffer, sourceLength); in handleGeneratedSpaces()
861 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces()
870 tempbuffer[j] = dest[i]; in handleGeneratedSpaces()
877 tempbuffer[i] = SPACE_CHAR; in handleGeneratedSpaces()
882 u_memcpy(dest, tempbuffer, sourceLength); in handleGeneratedSpaces()
887 if(tempbuffer){ in handleGeneratedSpaces()
888 uprv_free(tempbuffer); in handleGeneratedSpaces()
908 UChar *tempbuffer=NULL; in expandCompositCharAtBegin() local
910 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR); in expandCompositCharAtBegin()
913 if(tempbuffer == NULL) { in expandCompositCharAtBegin()
918 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in expandCompositCharAtBegin()
930 tempbuffer[j] = LAM_CHAR; in expandCompositCharAtBegin()
934 tempbuffer[j-1] = convertLamAlef[ dest[i] - 0xFEF5 ]; in expandCompositCharAtBegin()
941 tempbuffer[j] = dest[i]; in expandCompositCharAtBegin()
946 u_memcpy(dest, tempbuffer, sourceLength); in expandCompositCharAtBegin()
948 uprv_free(tempbuffer); in expandCompositCharAtBegin()
971 UChar *tempbuffer=NULL; in expandCompositCharAtEnd() local
972 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR); in expandCompositCharAtEnd()
975 if(tempbuffer == NULL) { in expandCompositCharAtEnd()
980 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in expandCompositCharAtEnd()
992 tempbuffer[j] = LAM_CHAR; in expandCompositCharAtEnd()
993 tempbuffer[j-1] = convertLamAlef[ dest[i] - 0xFEF5 ]; in expandCompositCharAtEnd()
1000 tempbuffer[j] = dest[i]; in expandCompositCharAtEnd()
1007 u_memmove(tempbuffer, tempbuffer+countr, sourceLength); in expandCompositCharAtEnd()
1008 if(u_strlen(tempbuffer) < sourceLength) { in expandCompositCharAtEnd()
1010 tempbuffer[i] = SPACE_CHAR; in expandCompositCharAtEnd()
1014 u_memcpy(dest, tempbuffer, sourceLength); in expandCompositCharAtEnd()
1016 uprv_free(tempbuffer); in expandCompositCharAtEnd()
1091 UChar *tempbuffer=NULL; in expandCompositChar() local
1159 tempbuffer = (UChar *)uprv_malloc((destSize+1)*U_SIZEOF_UCHAR); in expandCompositChar()
1162 if(tempbuffer == NULL) { in expandCompositChar()
1167 uprv_memset(tempbuffer, 0, (destSize+1)*U_SIZEOF_UCHAR); in expandCompositChar()
1172 tempbuffer[j] = convertLamAlef[ dest[i] - 0xFEF5 ]; in expandCompositChar()
1173 tempbuffer[j+1] = LAM_CHAR; in expandCompositChar()
1176 tempbuffer[j] = dest[i]; in expandCompositChar()
1182 u_memcpy(dest, tempbuffer, destSize); in expandCompositChar()
1186 if(tempbuffer) { in expandCompositChar()
1187 uprv_free(tempbuffer); in expandCompositChar()
1499 UChar *tempbuffer, *tempsource = NULL; in u_shapeArabic() local
1565 tempbuffer=buffer; in u_shapeArabic()
1567 tempbuffer = (UChar *)uprv_malloc(outputSize*U_SIZEOF_UCHAR); in u_shapeArabic()
1570 if(tempbuffer == NULL) { in u_shapeArabic()
1576 u_memcpy(tempbuffer, source, sourceLength); in u_shapeArabic()
1582 uprv_memset(tempbuffer+sourceLength, 0, (outputSize-sourceLength)*U_SIZEOF_UCHAR); in u_shapeArabic()
1586 countSpaces(tempbuffer,sourceLength,options,&spacesCountl,&spacesCountr); in u_shapeArabic()
1587 invertBuffer(tempbuffer,sourceLength,options,spacesCountl,spacesCountr); in u_shapeArabic()
1605 … destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,2,shapeVars); in u_shapeArabic()
1608 … destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,1,shapeVars); in u_shapeArabic()
1612 … destLength = handleTashkeelWithTatweel(tempbuffer,destLength,destCapacity,options,pErrorCode); in u_shapeArabic()
1618 … destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,0,shapeVars); in u_shapeArabic()
1623 … destLength = deShapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,shapeVars); in u_shapeArabic()
1639 countSpaces(tempbuffer,destLength,options,&spacesCountl,&spacesCountr); in u_shapeArabic()
1640 invertBuffer(tempbuffer,destLength,options,spacesCountl,spacesCountr); in u_shapeArabic()
1642 u_memcpy(dest, tempbuffer, uprv_min(destLength, destCapacity)); in u_shapeArabic()
1644 if(tempbuffer!=buffer) { in u_shapeArabic()
1645 uprv_free(tempbuffer); in u_shapeArabic()