Lines Matching refs:sourceLength

633 calculateSize(const UChar *source, int32_t sourceLength,  in calculateSize()  argument
640 destSize = sourceLength; in calculateSize()
654 for(i=0;i<sourceLength;i++) { in calculateSize()
655 …if( ((isAlefChar(source[i]))&& (i<(sourceLength-1)) &&(source[i+1] == LAM_CHAR)) || (isTashkeelCha… in calculateSize()
660 for(i=0;i<sourceLength;i++) { in calculateSize()
661 …if( ( (source[i] == LAM_CHAR) && (i<(sourceLength-1)) && (isAlefChar(source[i+1]))) || (isTashkeel… in calculateSize()
670 for(i=0;i<sourceLength;i++) { in calculateSize()
690 handleTashkeelWithTatweel(UChar *dest, int32_t sourceLength, in handleTashkeelWithTatweel() argument
694 for(i = 0; i < sourceLength; i++){ in handleTashkeelWithTatweel()
703 return sourceLength; in handleTashkeelWithTatweel()
728 handleGeneratedSpaces(UChar *dest, int32_t sourceLength, in handleGeneratedSpaces() argument
750 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces()
759 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces()
762 while(i < sourceLength) { in handleGeneratedSpaces()
780 u_memcpy(dest, tempbuffer, sourceLength); in handleGeneratedSpaces()
795 while(i < sourceLength) { in handleGeneratedSpaces()
801 destSize = sourceLength; in handleGeneratedSpaces()
818 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces()
820 i = j = sourceLength; count = 0; in handleGeneratedSpaces()
838 u_memcpy(dest, tempbuffer, sourceLength); in handleGeneratedSpaces()
839 destSize = sourceLength; in handleGeneratedSpaces()
859 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces()
862 while(i < sourceLength) { in handleGeneratedSpaces()
880 u_memcpy(dest, tempbuffer, sourceLength); in handleGeneratedSpaces()
881 destSize = sourceLength; in handleGeneratedSpaces()
903 expandCompositCharAtBegin(UChar *dest, int32_t sourceLength, int32_t destSize,UErrorCode *pErrorCod… in expandCompositCharAtBegin() argument
908 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR); in expandCompositCharAtBegin()
916 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in expandCompositCharAtBegin()
924 i = j = sourceLength-1; in expandCompositCharAtBegin()
944 u_memcpy(dest, tempbuffer, sourceLength); in expandCompositCharAtBegin()
948 destSize = sourceLength; in expandCompositCharAtBegin()
963 expandCompositCharAtEnd(UChar *dest, int32_t sourceLength, int32_t destSize,UErrorCode *pErrorCode)… in expandCompositCharAtEnd() argument
967 int32_t inpsize = sourceLength; in expandCompositCharAtEnd()
970 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR); in expandCompositCharAtEnd()
978 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in expandCompositCharAtEnd()
985 i = sourceLength - countr - 1; in expandCompositCharAtEnd()
986 j = sourceLength - 1; in expandCompositCharAtEnd()
1005 u_memmove(tempbuffer, tempbuffer+countr, sourceLength); in expandCompositCharAtEnd()
1006 if(u_strlen(tempbuffer) < sourceLength) { in expandCompositCharAtEnd()
1007 for(i=sourceLength-1;i>=sourceLength-countr;i--) { in expandCompositCharAtEnd()
1012 u_memcpy(dest, tempbuffer, sourceLength); in expandCompositCharAtEnd()
1016 destSize = sourceLength; in expandCompositCharAtEnd()
1030 expandCompositCharAtNear(UChar *dest, int32_t sourceLength, int32_t destSize,UErrorCode *pErrorCode, in expandCompositCharAtNear() argument
1037 for(i = 0 ;i<=sourceLength-1;i++) { in expandCompositCharAtNear()
1063 destSize = sourceLength; 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()
1196 shapeUnicode(UChar *dest, int32_t sourceLength, in shapeUnicode() argument
1217 for (i = 0; i < sourceLength; i++) { in shapeUnicode()
1233 i = sourceLength - 1; in shapeUnicode()
1351 destSize = sourceLength; 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
1384 for(i = 0; i < sourceLength; i++) { in deShapeUnicode()
1391 && (i < (sourceLength - 1)) && isAlefMaksouraChar(dest[i+1] )) { in deShapeUnicode()
1394 } else if ( (seenComposeEnabled == 1) && (isTailChar(inputChar)) && (i< (sourceLength - 1)) in deShapeUnicode()
1407 destSize = sourceLength; in deShapeUnicode()
1409 …destSize = expandCompositChar(dest,sourceLength,destSize,options,pErrorCode,DESHAPE_MODE, shapeVar… in deShapeUnicode()
1421 u_shapeArabic(const UChar *source, int32_t sourceLength, in u_shapeArabic() argument
1435 if( source==NULL || sourceLength<-1 || (dest==NULL && destCapacity!=0) || destCapacity<0 || in u_shapeArabic()
1473 if(sourceLength==-1) { in u_shapeArabic()
1474 sourceLength=u_strlen(source); in u_shapeArabic()
1476 if(sourceLength<=0) { in u_shapeArabic()
1482 ((source<=dest && dest<source+sourceLength) || in u_shapeArabic()
1506 int j=logical_order?-1:2*sourceLength; in u_shapeArabic()
1507 int i=logical_order?-1:sourceLength; in u_shapeArabic()
1508 int end=logical_order?sourceLength:-1; in u_shapeArabic()
1513 tempsource = (UChar *)uprv_malloc(2*sourceLength*U_SIZEOF_UCHAR); in u_shapeArabic()
1534 sourceLength = newSourceLength; in u_shapeArabic()
1541 outputSize=calculateSize(source,sourceLength,destCapacity,options); in u_shapeArabic()
1543 outputSize=sourceLength; in u_shapeArabic()
1556 if(sourceLength>outputSize) { in u_shapeArabic()
1557 outputSize=sourceLength; in u_shapeArabic()
1574 u_memcpy(tempbuffer, source, sourceLength); in u_shapeArabic()
1579 if(sourceLength<outputSize) { in u_shapeArabic()
1580 uprv_memset(tempbuffer+sourceLength, 0, (outputSize-sourceLength)*U_SIZEOF_UCHAR); in u_shapeArabic()
1584 countSpaces(tempbuffer,sourceLength,options,&spacesCountl,&spacesCountr); in u_shapeArabic()
1585 invertBuffer(tempbuffer,sourceLength,options,spacesCountl,spacesCountr); in u_shapeArabic()
1603 … destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,2,shapeVars); in u_shapeArabic()
1606 … destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,1,shapeVars); in u_shapeArabic()
1616 … destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,0,shapeVars); in u_shapeArabic()
1621 … destLength = deShapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,shapeVars); in u_shapeArabic()
1657 if(destCapacity<sourceLength) { in u_shapeArabic()
1660 return sourceLength; in u_shapeArabic()
1662 u_memcpy(dest, source, sourceLength); in u_shapeArabic()
1663 destLength=sourceLength; in u_shapeArabic()