Home | History | Annotate | Download | only in common

Lines Matching defs:tempbuffer

735     UChar *tempbuffer=NULL;
750 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR);
752 if(tempbuffer == NULL) {
759 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR);
768 tempbuffer[j] = dest[i];
775 tempbuffer[i] = 0x0000;
780 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR);
818 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR);
828 tempbuffer[j] = dest[i];
835 tempbuffer[i] = SPACE_CHAR;
838 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR);
859 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR);
868 tempbuffer[j] = dest[i];
875 tempbuffer[i] = SPACE_CHAR;
880 uprv_memcpy(dest,tempbuffer, sourceLength*U_SIZEOF_UCHAR);
885 if(tempbuffer){
886 uprv_free(tempbuffer);
906 UChar *tempbuffer=NULL;
908 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR);
911 if(tempbuffer == NULL) {
916 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR);
928 tempbuffer[j] = LAM_CHAR;
932 tempbuffer[j-1] = convertLamAlef[ dest[i] - 0xFEF5 ];
939 tempbuffer[j] = dest[i];
944 uprv_memcpy(dest, tempbuffer
946 uprv_free(tempbuffer);
969 UChar *tempbuffer=NULL;
970 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR);
973 if(tempbuffer == NULL) {
978 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR);
990 tempbuffer[j] = LAM_CHAR;
991 tempbuffer[j-1] = convertLamAlef[ dest[i] - 0xFEF5 ];
998 tempbuffer[j] = dest[i];
1005 uprv_memmove(tempbuffer, tempbuffer+countr, sourceLength*U_SIZEOF_UCHAR);
1006 if(u_strlen(tempbuffer) < sourceLength) {
1008 tempbuffer[i] = SPACE_CHAR;
1012 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR);
1014 uprv_free(tempbuffer);
1089 UChar *tempbuffer=NULL;
1157 tempbuffer = (UChar *)uprv_malloc((destSize+1)*U_SIZEOF_UCHAR);
1160 if(tempbuffer == NULL) {
1165 uprv_memset(tempbuffer, 0, (destSize+1)*U_SIZEOF_UCHAR);
1170 tempbuffer[j] = convertLamAlef[ dest[i] - 0xFEF5 ];
1171 tempbuffer[j+1] = LAM_CHAR;
1174 tempbuffer[j] = dest[i];
1180 uprv_memcpy(dest, tempbuffer, destSize*U_SIZEOF_UCHAR);
1184 if(tempbuffer) {
1185 uprv_free(tempbuffer);
1497 UChar *tempbuffer, *tempsource = NULL;
1563 tempbuffer=buffer;
1565 tempbuffer = (UChar *)uprv_malloc(outputSize*U_SIZEOF_UCHAR);
1568 if(tempbuffer == NULL) {
1574 uprv_memcpy(tempbuffer, source, sourceLength*U_SIZEOF_UCHAR);
1580 uprv_memset(tempbuffer+sourceLength, 0, (outputSize-sourceLength)*U_SIZEOF_UCHAR);
1584 countSpaces(tempbuffer,sourceLength,options,&spacesCountl,&spacesCountr);
1585 invertBuffer(tempbuffer,sourceLength,options,spacesCountl,spacesCountr);
1603 destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,2,shapeVars);
1606 destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,1,shapeVars);
1610 destLength = handleTashkeelWithTatweel(tempbuffer,destLength,destCapacity,options,pErrorCode);
1616 destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,0,shapeVars);
1621 destLength = deShapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,shapeVars);
1633 * except for the adjustment above before the tempbuffer allocation
1637 countSpaces(tempbuffer,destLength,options,&spacesCountl,&spacesCountr);
1638 invertBuffer(tempbuffer,destLength,options,spacesCountl,spacesCountr);
1640 uprv_memcpy(dest, tempbuffer, uprv_min(destLength, destCapacity)*U_SIZEOF_UCHAR);
1642 if(tempbuffer!=buffer) {
1643 uprv_free(tempbuffer);