Lines Matching refs:dest
463 countSpaces(UChar *dest, int32_t size, uint32_t /*options*/, int32_t *spacesCountl, int32_t *spaces… in countSpaces() argument
466 while((dest[i] == SPACE_CHAR) && (countl < size)) { in countSpaces()
471 while(dest[size-1] == SPACE_CHAR) { in countSpaces()
690 handleTashkeelWithTatweel(UChar *dest, int32_t sourceLength, in handleTashkeelWithTatweel() argument
695 if((isTashkeelOnTatweelChar(dest[i]) == 1)){ in handleTashkeelWithTatweel()
696 dest[i] = TATWEEL_CHAR; in handleTashkeelWithTatweel()
697 }else if((isTashkeelOnTatweelChar(dest[i]) == 2)){ in handleTashkeelWithTatweel()
698 dest[i] = SHADDA_TATWEEL_CHAR; in handleTashkeelWithTatweel()
699 }else if(isIsolatedTashkeelChar(dest[i]) && dest[i] != SHADDA_CHAR){ in handleTashkeelWithTatweel()
700 dest[i] = SPACE_CHAR; in handleTashkeelWithTatweel()
728 handleGeneratedSpaces(UChar *dest, int32_t sourceLength, in handleGeneratedSpaces() argument
763 if ( (lamAlefOption && dest[i] == LAMALEF_SPACE_SUB) || in handleGeneratedSpaces()
764 (tashkeelOption && dest[i] == TASHKEEL_SPACE_SUB) ){ in handleGeneratedSpaces()
768 tempbuffer[j] = dest[i]; in handleGeneratedSpaces()
780 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR); in handleGeneratedSpaces()
781 destSize = u_strlen(dest); in handleGeneratedSpaces()
796 if(lamAlefOption&&dest[i] == LAMALEF_SPACE_SUB){ in handleGeneratedSpaces()
797 dest[i] = SPACE_CHAR; in handleGeneratedSpaces()
823 if ( (lamAlefOption && dest[i] == LAMALEF_SPACE_SUB) || in handleGeneratedSpaces()
824 (tashkeelOption && dest[i] == TASHKEEL_SPACE_SUB) ){ in handleGeneratedSpaces()
828 tempbuffer[j] = dest[i]; in handleGeneratedSpaces()
838 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR); in handleGeneratedSpaces()
863 if ( (lamAlefOption && dest[i] == LAMALEF_SPACE_SUB) || in handleGeneratedSpaces()
864 (tashkeelOption && dest[i] == TASHKEEL_SPACE_SUB) ){ in handleGeneratedSpaces()
868 tempbuffer[j] = dest[i]; in handleGeneratedSpaces()
880 uprv_memcpy(dest,tempbuffer, sourceLength*U_SIZEOF_UCHAR); in handleGeneratedSpaces()
903 expandCompositCharAtBegin(UChar *dest, int32_t sourceLength, int32_t destSize,UErrorCode *pErrorCod… in expandCompositCharAtBegin() argument
919 while(dest[i] == SPACE_CHAR) { in expandCompositCharAtBegin()
927 if( countl>0 && isLamAlefChar(dest[i])) { in expandCompositCharAtBegin()
930 U_ASSERT(dest[i] >= 0xFEF5u in expandCompositCharAtBegin()
931 && dest[i]-0xFEF5u < sizeof(convertLamAlef)/sizeof(convertLamAlef[0])); in expandCompositCharAtBegin()
932 tempbuffer[j-1] = convertLamAlef[ dest[i] - 0xFEF5 ]; in expandCompositCharAtBegin()
936 if( countl == 0 && isLamAlefChar(dest[i]) ) { in expandCompositCharAtBegin()
939 tempbuffer[j] = dest[i]; in expandCompositCharAtBegin()
944 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR); in expandCompositCharAtBegin()
963 expandCompositCharAtEnd(UChar *dest, int32_t sourceLength, int32_t destSize,UErrorCode *pErrorCode)… in expandCompositCharAtEnd() argument
980 while(dest[inpsize-1] == SPACE_CHAR) { in expandCompositCharAtEnd()
989 if( countr>0 && isLamAlefChar(dest[i]) ) { in expandCompositCharAtEnd()
991 tempbuffer[j-1] = convertLamAlef[ dest[i] - 0xFEF5 ]; in expandCompositCharAtEnd()
995 if ((countr == 0) && isLamAlefChar(dest[i]) ) { in expandCompositCharAtEnd()
998 tempbuffer[j] = dest[i]; in expandCompositCharAtEnd()
1012 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR); in expandCompositCharAtEnd()
1030 expandCompositCharAtNear(UChar *dest, int32_t sourceLength, int32_t destSize,UErrorCode *pErrorCode, in expandCompositCharAtNear() argument
1038 if (seenTailOption && isSeenTailFamilyChar(dest[i])) { in expandCompositCharAtNear()
1039 if ((i>0) && (dest[i-1] == SPACE_CHAR) ) { in expandCompositCharAtNear()
1040 dest[i-1] = shapeVars.tailChar; in expandCompositCharAtNear()
1044 }else if(yehHamzaOption && (isYehHamzaChar(dest[i])) ) { in expandCompositCharAtNear()
1045 if ((i>0) && (dest[i-1] == SPACE_CHAR) ) { in expandCompositCharAtNear()
1046 yehhamzaChar = dest[i]; in expandCompositCharAtNear()
1047 dest[i] = yehHamzaToYeh[yehhamzaChar - YEH_HAMZAFE_CHAR]; in expandCompositCharAtNear()
1048 dest[i-1] = HAMZAFE_CHAR; in expandCompositCharAtNear()
1053 }else if(lamAlefOption && isLamAlefChar(dest[i+1])) { in expandCompositCharAtNear()
1054 if(dest[i] == SPACE_CHAR){ in expandCompositCharAtNear()
1055 lamalefChar = dest[i+1]; in expandCompositCharAtNear()
1056 dest[i+1] = LAM_CHAR; in expandCompositCharAtNear()
1057 dest[i] = convertLamAlef[ lamalefChar - 0xFEF5 ]; in expandCompositCharAtNear()
1083 expandCompositChar(UChar *dest, int32_t sourceLength, in expandCompositChar() argument
1098 destSize = expandCompositCharAtEnd(dest, sourceLength, destSize, pErrorCode); in expandCompositChar()
1102 destSize = expandCompositCharAtBegin(dest, sourceLength, destSize, pErrorCode); in expandCompositChar()
1105 destSize = expandCompositCharAtBegin(dest, sourceLength, destSize, pErrorCode); in expandCompositChar()
1109 destSize = expandCompositCharAtEnd(dest, sourceLength, destSize, pErrorCode); in expandCompositChar()
1115 … destSize = expandCompositCharAtNear(dest, sourceLength, destSize, pErrorCode, yehHamzaOption, in expandCompositChar()
1123 destSize = expandCompositCharAtEnd(dest, sourceLength, destSize, pErrorCode); in expandCompositChar()
1129 destSize = expandCompositCharAtBegin(dest, sourceLength, destSize, pErrorCode); in expandCompositChar()
1149 … destSize = expandCompositCharAtNear(dest, sourceLength, destSize, pErrorCode, yehHamzaOption, in expandCompositChar()
1156 destSize = calculateSize(dest,sourceLength,destSize,options); in expandCompositChar()
1169 if(isLamAlefChar(dest[i]) ) { in expandCompositChar()
1170 tempbuffer[j] = convertLamAlef[ dest[i] - 0xFEF5 ]; in expandCompositChar()
1174 tempbuffer[j] = dest[i]; in expandCompositChar()
1180 uprv_memcpy(dest, tempbuffer, destSize*U_SIZEOF_UCHAR); in expandCompositChar()
1196 shapeUnicode(UChar *dest, int32_t sourceLength, in shapeUnicode() argument
1218 UChar inputChar = dest[i]; in shapeUnicode()
1222 dest[i] = c; in shapeUnicode()
1224 dest[i] = convertFEto06 [ (inputChar - 0xFE70) ] ; in shapeUnicode()
1226 dest[i] = inputChar ; in shapeUnicode()
1242 currLink = getLink(dest[i]); in shapeUnicode()
1249 if ((currLink & 0xFF00) > 0 || (getLink(dest[i]) & IRRELEVANT) != 0) { in shapeUnicode()
1256 nextLink = getLink(dest[Nw]); in shapeUnicode()
1267 wLamalef = changeLamAlef(dest[i]); /*get from 0x065C-0x065f */ in shapeUnicode()
1269 … dest[i] = LAMALEF_SPACE_SUB; /* The default case is to drop the Alef and replace */ in shapeUnicode()
1270 … dest[lastPos] =wLamalef; /* it by LAMALEF_SPACE_SUB which is the last character in the */ in shapeUnicode()
1277 if ((i > 0) && (dest[i-1] == SPACE_CHAR)){ in shapeUnicode()
1278 if ( isSeenFamilyChar(dest[i])) { in shapeUnicode()
1280 } else if (dest[i] == YEH_HAMZA_CHAR) { in shapeUnicode()
1285 if ( isSeenFamilyChar(dest[i])){ in shapeUnicode()
1287 } else if (dest[i] == YEH_HAMZA_CHAR) { in shapeUnicode()
1303 } else if(isTashkeelChar(dest[i])) { in shapeUnicode()
1305 dest[i] != 0x064C && dest[i] != 0x064D ) in shapeUnicode()
1311 } else if(tashkeelFlag == 2 && dest[i] == SHADDA06_CHAR){ in shapeUnicode()
1317 if ((dest[i] ^ 0x0600) < 0x100) { in shapeUnicode()
1318 if ( isTashkeelChar(dest[i]) ){ in shapeUnicode()
1319 if (tashkeelFlag == 2 && dest[i] != SHADDA06_CHAR){ in shapeUnicode()
1320 dest[i] = TASHKEEL_SPACE_SUB; in shapeUnicode()
1324 U_ASSERT(dest[i] >= 0x064Bu in shapeUnicode()
1325 && dest[i]-0x064Bu < sizeof(IrrelevantPos)/sizeof(IrrelevantPos[0])); in shapeUnicode()
1326 dest[i] = 0xFE70 + IrrelevantPos[(dest[i] - 0x064B)] + Shape; in shapeUnicode()
1329 dest[i] = (UChar)(0xFB50 + (currLink >> 8) + Shape); in shapeUnicode()
1331 dest[i] = (UChar)(0xFE70 + (currLink >> 8) + Shape); in shapeUnicode()
1348 currLink = getLink(dest[i]); in shapeUnicode()
1353 destSize = handleGeneratedSpaces(dest,sourceLength,destSize,options,pErrorCode, shapeVars); in shapeUnicode()
1357 …destSize = expandCompositChar(dest, sourceLength,destSize,options,pErrorCode, SHAPE_MODE,shapeVars… in shapeUnicode()
1368 deShapeUnicode(UChar *dest, int32_t sourceLength, in deShapeUnicode() argument
1385 UChar inputChar = dest[i]; in deShapeUnicode()
1389 dest[i] = c; in deShapeUnicode()
1391 && (i < (sourceLength - 1)) && isAlefMaksouraChar(dest[i+1] )) { in deShapeUnicode()
1392 dest[i] = SPACE_CHAR; in deShapeUnicode()
1393 dest[i+1] = YEH_HAMZA_CHAR; in deShapeUnicode()
1395 && (isSeenTailFamilyChar(dest[i+1])) ) { in deShapeUnicode()
1396 dest[i] = SPACE_CHAR; in deShapeUnicode()
1398 dest[i] = convertFEto06 [ (inputChar - 0xFE70) ]; in deShapeUnicode()
1400 dest[i] = inputChar ; in deShapeUnicode()
1403 if( isLamAlefChar(dest[i]) ) in deShapeUnicode()
1409 …destSize = expandCompositChar(dest,sourceLength,destSize,options,pErrorCode,DESHAPE_MODE, shapeVar… in deShapeUnicode()
1422 UChar *dest, int32_t destCapacity, in u_shapeArabic() argument
1435 if( source==NULL || sourceLength<-1 || (dest==NULL && destCapacity!=0) || destCapacity<0 || in u_shapeArabic()
1477 return u_terminateUChars(dest, destCapacity, 0, pErrorCode); in u_shapeArabic()
1481 if( dest!=NULL && in u_shapeArabic()
1482 ((source<=dest && dest<source+sourceLength) || in u_shapeArabic()
1483 (dest<=source && source<dest+destCapacity))) { in u_shapeArabic()
1640 uprv_memcpy(dest, tempbuffer, uprv_min(destLength, destCapacity)*U_SIZEOF_UCHAR); in u_shapeArabic()
1662 uprv_memcpy(dest, source, sourceLength*U_SIZEOF_UCHAR); in u_shapeArabic()
1696 if(((uint32_t)dest[i]-0x30)<10) { in u_shapeArabic()
1697 dest[i]+=digitBase; in u_shapeArabic()
1704 if(((uint32_t)dest[i]-(uint32_t)digitBase)<10) { in u_shapeArabic()
1705 dest[i]-=digitBase-0x30; in u_shapeArabic()
1710 _shapeToArabicDigitsWithContext(dest, destLength, in u_shapeArabic()
1716 _shapeToArabicDigitsWithContext(dest, destLength, in u_shapeArabic()
1727 return u_terminateUChars(dest, destCapacity, destLength, pErrorCode); in u_shapeArabic()