Home | History | Annotate | Download | only in common

Lines Matching refs:sourceLength

635 calculateSize(const UChar *source, int32_t sourceLength,
642 destSize = sourceLength;
656 for(i=0;i<sourceLength;i++) {
657 if( ((isAlefChar(source[i]))&& (i<(sourceLength-1)) &&(source[i+1] == LAM_CHAR)) || (isTashkeelCharFE(source[i])) ) {
662 for(i=0;i<sourceLength;i++) {
663 if( ( (source[i] == LAM_CHAR) && (i<(sourceLength-1)) && (isAlefChar(source[i+1]))) || (isTashkeelCharFE(source[i])) ) {
672 for(i=0;i<sourceLength;i++) {
692 handleTashkeelWithTatweel(UChar *dest, int32_t sourceLength,
696 for(i = 0; i < sourceLength; i++){
705 return sourceLength;
730 handleGeneratedSpaces(UChar *dest, int32_t sourceLength,
752 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR);
761 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR);
764 while(i < sourceLength) {
782 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR);
797 while(i < sourceLength) {
803 destSize = sourceLength;
820 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR);
822 i = j = sourceLength; count = 0;
840 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR);
841 destSize = sourceLength;
861 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR);
864 while(i < sourceLength) {
882 uprv_memcpy(dest,tempbuffer, sourceLength*U_SIZEOF_UCHAR);
883 destSize = sourceLength;
905 expandCompositCharAtBegin(UChar *dest, int32_t sourceLength, int32_t destSize,UErrorCode *pErrorCode) {
910 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR);
918 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR);
926 i = j = sourceLength-1;
946 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR);
950 destSize = sourceLength;
965 expandCompositCharAtEnd(UChar *dest, int32_t sourceLength, int32_t destSize,UErrorCode *pErrorCode) {
969 int32_t inpsize = sourceLength;
972 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR);
980 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR);
987 i = sourceLength - countr - 1;
988 j = sourceLength - 1;
1007 uprv_memmove(tempbuffer, tempbuffer+countr, sourceLength*U_SIZEOF_UCHAR);
1008 if(u_strlen(tempbuffer) < sourceLength) {
1009 for(i=sourceLength-1;i>=sourceLength-countr;i--) {
1014 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR);
1018 destSize = sourceLength;
1032 expandCompositCharAtNear(UChar *dest, int32_t sourceLength, int32_t destSize,UErrorCode *pErrorCode,
1039 for(i = 0 ;i<=sourceLength-1;i++) {
1065 destSize = sourceLength;
1085 expandCompositChar(UChar *dest, int32_t sourceLength,
1100 destSize = expandCompositCharAtEnd(dest, sourceLength, destSize, pErrorCode);
1104 destSize = expandCompositCharAtBegin(dest, sourceLength, destSize, pErrorCode);
1107 destSize = expandCompositCharAtBegin(dest, sourceLength, destSize, pErrorCode);
1111 destSize = expandCompositCharAtEnd(dest, sourceLength, destSize, pErrorCode);
1117 destSize = expandCompositCharAtNear(dest, sourceLength, destSize, pErrorCode, yehHamzaOption,
1125 destSize = expandCompositCharAtEnd(dest, sourceLength, destSize, pErrorCode);
1131 destSize = expandCompositCharAtBegin(dest, sourceLength, destSize, pErrorCode);
1151 destSize = expandCompositCharAtNear(dest, sourceLength, destSize, pErrorCode, yehHamzaOption,
1158 destSize = calculateSize(dest,sourceLength,destSize,options);
1198 shapeUnicode(UChar *dest, int32_t sourceLength,
1219 for (i = 0; i < sourceLength; i++) {
1235 i = sourceLength - 1;
1353 destSize = sourceLength;
1355 destSize = handleGeneratedSpaces(dest,sourceLength,destSize,options,pErrorCode, shapeVars);
1359 destSize = expandCompositChar(dest, sourceLength,destSize,options,pErrorCode, SHAPE_MODE,shapeVars);
1370 deShapeUnicode(UChar *dest, int32_t sourceLength,
1386 for(i = 0; i < sourceLength; i++) {
1393 && (i < (sourceLength - 1)) && isAlefMaksouraChar(dest[i+1] )) {
1396 } else if ( (seenComposeEnabled == 1) && (isTailChar(inputChar)) && (i< (sourceLength - 1))
1409 destSize = sourceLength;
1411 destSize = expandCompositChar(dest,sourceLength,destSize,options,pErrorCode,DESHAPE_MODE, shapeVars);
1423 u_shapeArabic(const UChar *source, int32_t sourceLength,
1437 if( source==NULL || sourceLength<-1 || (dest==NULL && destCapacity!=0) || destCapacity<0 ||
1475 if(sourceLength==-1) {
1476 sourceLength=u_strlen(source);
1478 if(sourceLength<=0) {
1484 ((source<=dest && dest<source+sourceLength) ||
1508 int j=logical_order?-1:2*sourceLength;
1509 int i=logical_order?-1:sourceLength;
1510 int end=logical_order?sourceLength:-1;
1515 tempsource = (UChar *)uprv_malloc(2*sourceLength*U_SIZEOF_UCHAR);
1536 sourceLength = newSourceLength;
1543 outputSize=calculateSize(source,sourceLength,destCapacity,options);
1545 outputSize=sourceLength;
1555 * need a temporary buffer of size max(outputSize, sourceLength)
1558 if(sourceLength>outputSize) {
1559 outputSize=sourceLength;
1576 uprv_memcpy(tempbuffer, source, sourceLength*U_SIZEOF_UCHAR);
1581 if(sourceLength<outputSize) {
1582 uprv_memset(tempbuffer+sourceLength, 0, (outputSize-sourceLength)*U_SIZEOF_UCHAR);
1586 countSpaces(tempbuffer,sourceLength,options,&spacesCountl,&spacesCountr);
1587 invertBuffer(tempbuffer,sourceLength,options,spacesCountl,spacesCountr);
1605 destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,2,shapeVars);
1608 destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,1,shapeVars);
1618 destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,0,shapeVars);
1623 destLength = deShapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,shapeVars);
1659 if(destCapacity<sourceLength) {
1662 return sourceLength;
1664 uprv_memcpy(dest, source, sourceLength*U_SIZEOF_UCHAR);
1665 destLength=sourceLength;