Lines Matching refs:dest
441 countSpaces(UChar *dest,int32_t size,uint64_t options,int32_t *spacesCountl,int32_t *spacesCountr) { in countSpaces() argument
445 while(dest[i] == SPACE_CHAR) { in countSpaces()
449 while(dest[size-1] == SPACE_CHAR) { in countSpaces()
670 handleTashkeelWithTatweel(UChar *dest, int32_t sourceLength, in handleTashkeelWithTatweel() argument
676 if((isTashkeelOnTatweelChar(dest[i]) == 1)){ in handleTashkeelWithTatweel()
677 dest[i] = TATWEEL_CHAR; in handleTashkeelWithTatweel()
678 }else if((isTashkeelOnTatweelChar(dest[i]) == 2)){ in handleTashkeelWithTatweel()
679 dest[i] = SHADDA_TATWEEL_CHAR; in handleTashkeelWithTatweel()
680 }else if(isIsolatedTashkeelChar(dest[i]) && dest[i] != SHADDA_CHAR){ in handleTashkeelWithTatweel()
681 dest[i] = SPACE_CHAR; in handleTashkeelWithTatweel()
710 handleGeneratedSpaces(UChar *dest, int32_t sourceLength, in handleGeneratedSpaces() argument
745 if ( (lamAlefOption && dest[i] == LAMALEF_SPACE_SUB) || in handleGeneratedSpaces()
746 (tashkeelOption && dest[i] == TASHKEEL_SPACE_SUB) ){ in handleGeneratedSpaces()
750 tempbuffer[j] = dest[i]; in handleGeneratedSpaces()
762 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR); in handleGeneratedSpaces()
763 destSize = u_strlen(dest); in handleGeneratedSpaces()
781 if(lamAlefOption&&dest[i] == LAMALEF_SPACE_SUB){ in handleGeneratedSpaces()
782 dest[i] = SPACE_CHAR; in handleGeneratedSpaces()
814 if ( (lamAlefOption && dest[i] == LAMALEF_SPACE_SUB) || in handleGeneratedSpaces()
815 (tashkeelOption && dest[i] == TASHKEEL_SPACE_SUB) ){ in handleGeneratedSpaces()
819 tempbuffer[j] = dest[i]; in handleGeneratedSpaces()
829 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR); in handleGeneratedSpaces()
861 if ( (lamAlefOption && dest[i] == LAMALEF_SPACE_SUB) || in handleGeneratedSpaces()
862 (tashkeelOption && dest[i] == TASHKEEL_SPACE_SUB) ){ in handleGeneratedSpaces()
866 tempbuffer[j] = dest[i]; in handleGeneratedSpaces()
878 uprv_memcpy(dest,tempbuffer, sourceLength*U_SIZEOF_UCHAR); in handleGeneratedSpaces()
901 expandCompositCharAtBegin(UChar *dest, int32_t sourceLength, int32_t destSize,UErrorCode *pErrorCod… in expandCompositCharAtBegin() argument
917 while(dest[i] == SPACE_CHAR) { in expandCompositCharAtBegin()
925 if( countl>0 && isLamAlefChar(dest[i])) { in expandCompositCharAtBegin()
927 tempbuffer[j-1] = convertLamAlef[ dest[i] - 0xFEF5 ]; in expandCompositCharAtBegin()
931 if( countl == 0 && isLamAlefChar(dest[i]) ) { in expandCompositCharAtBegin()
934 tempbuffer[j] = dest[i]; in expandCompositCharAtBegin()
939 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR); in expandCompositCharAtBegin()
958 expandCompositCharAtEnd(UChar *dest, int32_t sourceLength, int32_t destSize,UErrorCode *pErrorCode)… in expandCompositCharAtEnd() argument
975 while(dest[inpsize-1] == SPACE_CHAR) { in expandCompositCharAtEnd()
984 if( countr>0 && isLamAlefChar(dest[i]) ) { in expandCompositCharAtEnd()
986 tempbuffer[j-1] = convertLamAlef[ dest[i] - 0xFEF5 ]; in expandCompositCharAtEnd()
990 if ((countr == 0) && isLamAlefChar(dest[i]) ) { in expandCompositCharAtEnd()
993 tempbuffer[j] = dest[i]; in expandCompositCharAtEnd()
1007 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR); in expandCompositCharAtEnd()
1025 expandCompositCharAtNear(UChar *dest, int32_t sourceLength, int32_t destSize,UErrorCode *pErrorCode, in expandCompositCharAtNear() argument
1033 if (seenTailOption && isSeenTailFamilyChar(dest[i])) { in expandCompositCharAtNear()
1034 if ((i>0) && (dest[i-1] == SPACE_CHAR) ) { in expandCompositCharAtNear()
1035 dest[i-1] = tailChar; in expandCompositCharAtNear()
1039 }else if(yehHamzaOption && (isYehHamzaChar(dest[i])) ) { in expandCompositCharAtNear()
1040 if ((i>0) && (dest[i-1] == SPACE_CHAR) ) { in expandCompositCharAtNear()
1041 yehhamzaChar = dest[i]; in expandCompositCharAtNear()
1042 dest[i] = yehHamzaToYeh[yehhamzaChar - YEH_HAMZAFE_CHAR]; in expandCompositCharAtNear()
1043 dest[i-1] = HAMZAFE_CHAR; in expandCompositCharAtNear()
1048 }else if(lamAlefOption && isLamAlefChar(dest[i+1])) { in expandCompositCharAtNear()
1049 if(dest[i] == SPACE_CHAR){ in expandCompositCharAtNear()
1050 lamalefChar = dest[i+1]; in expandCompositCharAtNear()
1051 dest[i+1] = LAM_CHAR; in expandCompositCharAtNear()
1052 dest[i] = convertLamAlef[ lamalefChar - 0xFEF5 ]; in expandCompositCharAtNear()
1078 expandCompositChar(UChar *dest, int32_t sourceLength, in expandCompositChar() argument
1094 destSize = expandCompositCharAtEnd(dest, sourceLength, destSize, pErrorCode); in expandCompositChar()
1098 destSize = expandCompositCharAtBegin(dest, sourceLength, destSize, pErrorCode); in expandCompositChar()
1101 destSize = expandCompositCharAtBegin(dest, sourceLength, destSize, pErrorCode); in expandCompositChar()
1105 destSize = expandCompositCharAtEnd(dest, sourceLength, destSize, pErrorCode); in expandCompositChar()
1111 … destSize = expandCompositCharAtNear(dest, sourceLength, destSize, pErrorCode, yehHamzaOption, in expandCompositChar()
1119 destSize = expandCompositCharAtEnd(dest, sourceLength, destSize, pErrorCode); in expandCompositChar()
1125 destSize = expandCompositCharAtBegin(dest, sourceLength, destSize, pErrorCode); in expandCompositChar()
1145 … destSize = expandCompositCharAtNear(dest, sourceLength, destSize, pErrorCode, yehHamzaOption, in expandCompositChar()
1152 destSize = calculateSize(dest,sourceLength,destSize,options); in expandCompositChar()
1165 if(isLamAlefChar(dest[i]) ) { in expandCompositChar()
1166 tempbuffer[j] = convertLamAlef[ dest[i] - 0xFEF5 ]; in expandCompositChar()
1170 tempbuffer[j] = dest[i]; in expandCompositChar()
1176 uprv_memcpy(dest, tempbuffer, destSize*U_SIZEOF_UCHAR); in expandCompositChar()
1193 shapeUnicode(UChar *dest, int32_t sourceLength, in shapeUnicode() argument
1216 UChar inputChar = dest[i]; in shapeUnicode()
1220 dest[i] = c; in shapeUnicode()
1222 dest[i] = convertFEto06 [ (inputChar - 0xFE70) ] ; in shapeUnicode()
1224 dest[i] = inputChar ; in shapeUnicode()
1240 currLink = getLink(dest[i]); in shapeUnicode()
1247 if ((currLink & 0xFF00) > 0 || (getLink(dest[i]) & IRRELEVANT) != 0) { in shapeUnicode()
1254 nextLink = getLink(dest[Nw]); in shapeUnicode()
1265 wLamalef = changeLamAlef(dest[i]); /*get from 0x065C-0x065f */ in shapeUnicode()
1267 … dest[i] = LAMALEF_SPACE_SUB; /* The default case is to drop the Alef and replace */ in shapeUnicode()
1268 … dest[lastPos] =wLamalef; /* it by LAMALEF_SPACE_SUB which is the last character in the */ in shapeUnicode()
1275 if ((i > 0) && (dest[i-1] == SPACE_CHAR)){ in shapeUnicode()
1276 if ( isSeenFamilyChar(dest[i])){ in shapeUnicode()
1278 } else if (dest[i] == YEH_HAMZA_CHAR) { in shapeUnicode()
1283 if ( isSeenFamilyChar(dest[i])){ in shapeUnicode()
1285 } else if (dest[i] == YEH_HAMZA_CHAR) { in shapeUnicode()
1301 } else if(isTashkeelChar(dest[i])) { in shapeUnicode()
1303 dest[i] != 0x064C && dest[i] != 0x064D ) in shapeUnicode()
1314 if ((dest[i] ^ 0x0600) < 0x100) { in shapeUnicode()
1315 if ( isTashkeelChar(dest[i]) ){ in shapeUnicode()
1317 dest[i] = TASHKEEL_SPACE_SUB; in shapeUnicode()
1320 dest[i] = 0xFE70 + IrrelevantPos[(dest[i] - 0x064B)] + Shape; in shapeUnicode()
1323 dest[i] = (UChar)(0xFB50 + (currLink >> 8) + Shape); in shapeUnicode()
1325 dest[i] = (UChar)(0xFE70 + (currLink >> 8) + Shape); in shapeUnicode()
1342 currLink = getLink(dest[i]); in shapeUnicode()
1347 destSize = handleGeneratedSpaces(dest,sourceLength,destSize,options,pErrorCode); in shapeUnicode()
1351 destSize = expandCompositChar(dest, sourceLength,destSize,options,pErrorCode, SHAPE_MODE); in shapeUnicode()
1363 deShapeUnicode(UChar *dest, int32_t sourceLength, in deShapeUnicode() argument
1381 UChar inputChar = dest[i]; in deShapeUnicode()
1385 dest[i] = c; in deShapeUnicode()
1387 && (i < (sourceLength - 1)) && isAlefMaksouraChar(dest[i+1] )) { in deShapeUnicode()
1388 dest[i] = SPACE_CHAR; in deShapeUnicode()
1389 dest[i+1] = YEH_HAMZA_CHAR; in deShapeUnicode()
1391 && (isSeenTailFamilyChar(dest[i+1])) ) { in deShapeUnicode()
1392 dest[i] = SPACE_CHAR; in deShapeUnicode()
1394 dest[i] = convertFEto06 [ (inputChar - 0xFE70) ]; in deShapeUnicode()
1396 dest[i] = inputChar ; in deShapeUnicode()
1399 if( isLamAlefChar(dest[i]) ) in deShapeUnicode()
1405 destSize = expandCompositChar(dest,sourceLength,destSize,options,pErrorCode,DESHAPE_MODE); in deShapeUnicode()
1419 UChar *dest, int32_t destCapacity, in u_shapeArabic() argument
1438 if( source==NULL || sourceLength<-1 || (dest==NULL && destCapacity!=0) || destCapacity<0 || in u_shapeArabic()
1480 return u_terminateUChars(dest, destCapacity, 0, pErrorCode); in u_shapeArabic()
1484 if( dest!=NULL && in u_shapeArabic()
1485 ((source<=dest && dest<source+sourceLength) || in u_shapeArabic()
1486 (dest<=source && source<dest+destCapacity))) { in u_shapeArabic()
1644 uprv_memcpy(dest, tempbuffer, uprv_min(destLength, destCapacity)*U_SIZEOF_UCHAR); in u_shapeArabic()
1666 uprv_memcpy(dest, source, sourceLength*U_SIZEOF_UCHAR); in u_shapeArabic()
1700 if(((uint32_t)dest[i]-0x30)<10) { in u_shapeArabic()
1701 dest[i]+=digitBase; in u_shapeArabic()
1708 if(((uint32_t)dest[i]-(uint32_t)digitBase)<10) { in u_shapeArabic()
1709 dest[i]-=digitBase-0x30; in u_shapeArabic()
1714 _shapeToArabicDigitsWithContext(dest, destLength, in u_shapeArabic()
1720 _shapeToArabicDigitsWithContext(dest, destLength, in u_shapeArabic()
1731 return u_terminateUChars(dest, destCapacity, destLength, pErrorCode); in u_shapeArabic()