Lines Matching defs:tempbuffer
715 UChar *tempbuffer=NULL;
730 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR);
732 if(tempbuffer == NULL) {
739 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR);
748 tempbuffer[j] = dest[i];
755 tempbuffer[i] = 0x0000;
760 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR);
801 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR);
811 tempbuffer[j] = dest[i];
818 tempbuffer[i] = SPACE_CHAR;
821 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR);
842 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR);
851 tempbuffer[j] = dest[i];
858 tempbuffer[i] = SPACE_CHAR;
863 uprv_memcpy(dest,tempbuffer, sourceLength*U_SIZEOF_UCHAR);
868 if(tempbuffer){
869 uprv_free(tempbuffer);
889 UChar *tempbuffer=NULL;
891 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR);
894 if(tempbuffer == NULL) {
899 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR);
911 tempbuffer[j] = LAM_CHAR;
915 tempbuffer[j-1] = convertLamAlef[ dest[i] - 0xFEF5 ];
922 tempbuffer[j] = dest[i];
927 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR);
929 uprv_free(tempbuffer);
952 UChar *tempbuffer=NULL;
953 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR);
956 if(tempbuffer == NULL) {
961 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR);
973 tempbuffer[j] = LAM_CHAR;
974 tempbuffer[j-1] = convertLamAlef[ dest[i] - 0xFEF5 ];
981 tempbuffer[j] = dest[i];
988 uprv_memmove(tempbuffer, tempbuffer+countr, sourceLength*U_SIZEOF_UCHAR);
989 if(u_strlen(tempbuffer) < sourceLength) {
991 tempbuffer[i] = SPACE_CHAR;
995 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR);
997 uprv_free(tempbuffer);
1072 UChar *tempbuffer=NULL;
1140 tempbuffer = (UChar *)uprv_malloc((destSize+1)*U_SIZEOF_UCHAR);
1143 if(tempbuffer == NULL) {
1148 uprv_memset(tempbuffer, 0, (destSize+1)*U_SIZEOF_UCHAR);
1153 tempbuffer[j] = convertLamAlef[ dest[i] - 0xFEF5 ];
1154 tempbuffer[j+1] = LAM_CHAR;
1157 tempbuffer[j] = dest[i];
1163 uprv_memcpy(dest, tempbuffer, destSize*U_SIZEOF_UCHAR);
1167 if(tempbuffer) {
1168 uprv_free(tempbuffer);
1482 UChar *tempbuffer, *tempsource = NULL;
1548 tempbuffer=buffer;
1550 tempbuffer = (UChar *)uprv_malloc(outputSize*U_SIZEOF_UCHAR);
1553 if(tempbuffer == NULL) {
1559 uprv_memcpy(tempbuffer, source, sourceLength*U_SIZEOF_UCHAR);
1565 uprv_memset(tempbuffer+sourceLength, 0, (outputSize-sourceLength)*U_SIZEOF_UCHAR);
1569 countSpaces(tempbuffer,sourceLength,options,&spacesCountl,&spacesCountr);
1570 invertBuffer(tempbuffer,sourceLength,options,spacesCountl,spacesCountr);
1588 destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,2,shapeVars);
1591 destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,1,shapeVars);
1595 destLength = handleTashkeelWithTatweel(tempbuffer,destLength,destCapacity,options,pErrorCode);
1601 destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,0,shapeVars);
1606 destLength = deShapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,shapeVars);
1618 * except for the adjustment above before the tempbuffer allocation
1622 countSpaces(tempbuffer,destLength,options,&spacesCountl,&spacesCountr);
1623 invertBuffer(tempbuffer,destLength,options,spacesCountl,spacesCountr);
1625 uprv_memcpy(dest, tempbuffer, uprv_min(destLength, destCapacity)*U_SIZEOF_UCHAR);
1627 if(tempbuffer!=buffer) {
1628 uprv_free(tempbuffer);