Home | History | Annotate | Download | only in common

Lines Matching refs:sourceLength

610 calculateSize(const UChar *source, int32_t sourceLength,
617 destSize = sourceLength;
631 for(i=0;i<sourceLength;i++) {
632 if( ((isAlefChar(source[i]))&& (i<(sourceLength-1)) &&(source[i+1] == LAM_CHAR)) || (isTashkeelCharFE(source[i])) ) {
637 for(i=0;i<sourceLength;i++) {
638 if( ( (source[i] == LAM_CHAR) && (i<(sourceLength-1)) && (isAlefChar(source[i+1]))) || (isTashkeelCharFE(source[i])) ) {
647 for(i=0;i<sourceLength;i++) {
667 handleTashkeelWithTatweel(UChar *dest, int32_t sourceLength,
671 for(i = 0; i < sourceLength; i++){
680 return sourceLength;
705 handleGeneratedSpaces(UChar *dest, int32_t sourceLength,
729 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR);
738 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR);
741 while(i < sourceLength) {
759 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR);
777 while(i < sourceLength) {
783 destSize = sourceLength;
800 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR);
802 i = j = sourceLength; count = 0;
820 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR);
821 destSize = sourceLength;
841 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR);
844 while(i < sourceLength) {
862 uprv_memcpy(dest,tempbuffer, sourceLength*U_SIZEOF_UCHAR);
863 destSize = sourceLength;
885 expandCompositCharAtBegin(UChar *dest, int32_t sourceLength, int32_t destSize,UErrorCode *pErrorCode) {
890 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR);
898 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR);
906 i = j = sourceLength-1;
926 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR);
930 destSize = sourceLength;
945 expandCompositCharAtEnd(UChar *dest, int32_t sourceLength, int32_t destSize,UErrorCode *pErrorCode) {
949 int32_t inpsize = sourceLength;
952 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR);
960 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR);
967 i = sourceLength - countr - 1;
968 j = sourceLength - 1;
987 uprv_memmove(tempbuffer, tempbuffer+countr, sourceLength*U_SIZEOF_UCHAR);
988 if(u_strlen(tempbuffer) < sourceLength) {
989 for(i=sourceLength-1;i>=sourceLength-countr;i--) {
994 uprv_memcpy(dest, tempbuffer, sourceLength*U_SIZEOF_UCHAR);
998 destSize = sourceLength;
1012 expandCompositCharAtNear(UChar *dest, int32_t sourceLength, int32_t destSize,UErrorCode *pErrorCode,
1019 for(i = 0 ;i<=sourceLength-1;i++) {
1045 destSize = sourceLength;
1065 expandCompositChar(UChar *dest, int32_t sourceLength,
1080 destSize = expandCompositCharAtEnd(dest, sourceLength, destSize, pErrorCode);
1084 destSize = expandCompositCharAtBegin(dest, sourceLength, destSize, pErrorCode);
1087 destSize = expandCompositCharAtBegin(dest, sourceLength, destSize, pErrorCode);
1091 destSize = expandCompositCharAtEnd(dest, sourceLength, destSize, pErrorCode);
1097 destSize = expandCompositCharAtNear(dest, sourceLength, destSize, pErrorCode, yehHamzaOption,
1105 destSize = expandCompositCharAtEnd(dest, sourceLength, destSize, pErrorCode);
1111 destSize = expandCompositCharAtBegin(dest, sourceLength, destSize, pErrorCode);
1131 destSize = expandCompositCharAtNear(dest, sourceLength, destSize, pErrorCode, yehHamzaOption,
1138 destSize = calculateSize(dest,sourceLength,destSize,options);
1178 shapeUnicode(UChar *dest, int32_t sourceLength,
1199 for (i = 0; i < sourceLength; i++) {
1215 i = sourceLength - 1;
1333 destSize = sourceLength;
1335 destSize = handleGeneratedSpaces(dest,sourceLength,destSize,options,pErrorCode, shapeVars);
1339 destSize = expandCompositChar(dest, sourceLength,destSize,options,pErrorCode, SHAPE_MODE,shapeVars);
1350 deShapeUnicode(UChar *dest, int32_t sourceLength,
1366 for(i = 0; i < sourceLength; i++) {
1373 && (i < (sourceLength - 1)) && isAlefMaksouraChar(dest[i+1] )) {
1376 } else if ( (seenComposeEnabled == 1) && (isTailChar(inputChar)) && (i< (sourceLength - 1))
1389 destSize = sourceLength;
1391 destSize = expandCompositChar(dest,sourceLength,destSize,options,pErrorCode,DESHAPE_MODE, shapeVars);
1404 u_shapeArabic(const UChar *source, int32_t sourceLength,
1419 if( source==NULL || sourceLength<-1 || (dest==NULL && destCapacity!=0) || destCapacity<0 ||
1457 if(sourceLength==-1) {
1458 sourceLength=u_strlen(source);
1460 if(sourceLength<=0) {
1466 ((source<=dest && dest<source+sourceLength) ||
1490 int j=logical_order?-1:2*sourceLength;
1491 int i=logical_order?-1:sourceLength;
1492 int end=logical_order?sourceLength:-1;
1497 tempsource = (UChar *)uprv_malloc(2*sourceLength*U_SIZEOF_UCHAR);
1518 sourceLength = newSourceLength;
1525 outputSize=calculateSize(source,sourceLength,destCapacity,options);
1527 outputSize=sourceLength;
1537 * need a temporary buffer of size max(outputSize, sourceLength)
1540 if(sourceLength>outputSize) {
1541 outputSize=sourceLength;
1558 uprv_memcpy(tempbuffer, source, sourceLength*U_SIZEOF_UCHAR);
1563 if(sourceLength<outputSize) {
1564 uprv_memset(tempbuffer+sourceLength, 0, (outputSize-sourceLength)*U_SIZEOF_UCHAR);
1568 countSpaces(tempbuffer,sourceLength,options,&spacesCountl,&spacesCountr);
1569 invertBuffer(tempbuffer,sourceLength,options,spacesCountl,spacesCountr);
1587 destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,2,shapeVars);
1590 destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,1,shapeVars);
1600 destLength = shapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,0,shapeVars);
1605 destLength = deShapeUnicode(tempbuffer,sourceLength,destCapacity,options,pErrorCode,shapeVars);
1641 if(destCapacity<sourceLength) {
1644 return sourceLength;
1646 uprv_memcpy(dest, source, sourceLength*U_SIZEOF_UCHAR);
1647 destLength=sourceLength;