Lines Matching defs:ec
392 UErrorCode ec = U_ZERO_ERROR;
393 const UBiDiLevel* gotLevels = ubidi_getLevels(bidi, &ec);
398 if(U_FAILURE(ec)) {
729 UErrorCode ec = U_ZERO_ERROR;
743 ec = U_ZERO_ERROR;
744 ubidi_setPara(bidi,src,srcSize,UBIDI_DEFAULT_LTR ,NULL,&ec);
745 if(U_FAILURE(ec)){
747 i, UBIDI_DEFAULT_LTR, u_errorName(ec));
750 destSize = ubidi_writeReordered(bidi,dest,0,UBIDI_DO_MIRRORING,&ec);
751 if(ec!=U_BUFFER_OVERFLOW_ERROR){
752 log_err("Pre-flighting did not give expected error: Expected: U_BUFFER_OVERFLOW_ERROR. Got: %s \n",u_errorName(ec));
756 ec= U_ZERO_ERROR;
758 destSize=ubidi_writeReordered(bidi,dest,destSize+1,UBIDI_DO_MIRRORING,&ec);
778 ec = U_ZERO_ERROR;
779 ubidi_setPara(bidi,src,srcSize,UBIDI_DEFAULT_LTR ,NULL,&ec);
780 if(U_FAILURE(ec)){
782 i, UBIDI_DEFAULT_LTR, u_errorName(ec));
785 destSize = ubidi_writeReordered(bidi,dest,0,UBIDI_DO_MIRRORING+UBIDI_OUTPUT_REVERSE,&ec);
786 if(ec!=U_BUFFER_OVERFLOW_ERROR){
787 log_err("Pre-flighting did not give expected error: Expected: U_BUFFER_OVERFLOW_ERROR. Got: %s \n",u_errorName(ec));
791 ec= U_ZERO_ERROR;
793 destSize=ubidi_writeReordered(bidi,dest,destSize+1,UBIDI_DO_MIRRORING+UBIDI_OUTPUT_REVERSE,&ec);
812 ec = U_ZERO_ERROR;
814 ubidi_setPara(bidi,src,srcSize,UBIDI_DEFAULT_LTR ,NULL,&ec);
815 if(U_FAILURE(ec)){
817 i, UBIDI_DEFAULT_LTR, u_errorName(ec));
820 destSize = ubidi_writeReordered(bidi,dest,0,UBIDI_INSERT_LRM_FOR_NUMERIC+UBIDI_OUTPUT_REVERSE,&ec);
821 if(ec!=U_BUFFER_OVERFLOW_ERROR){
822 log_err("Pre-flighting did not give expected error: Expected: U_BUFFER_OVERFLOW_ERROR. Got: %s \n",u_errorName(ec));
824 ec= U_ZERO_ERROR;
826 destSize=ubidi_writeReordered(bidi,dest,destSize+1,UBIDI_INSERT_LRM_FOR_NUMERIC+UBIDI_OUTPUT_REVERSE,&ec);
844 ec = U_ZERO_ERROR;
845 ubidi_setPara(bidi,src,srcSize,UBIDI_DEFAULT_LTR,levels,&ec);
846 if(U_FAILURE(ec)){
848 i, UBIDI_MAX_EXPLICIT_LEVEL, u_errorName(ec));
851 ec);
852 if(ec!=U_BUFFER_OVERFLOW_ERROR){
853 log_err("Pre-flighting did not give expected error: Expected: U_BUFFER_OVERFLOW_ERROR. Got: %s \n",u_errorName(ec));
857 ec = U_ZERO_ERROR;
859 destSize=ubidi_writeReordered(bidi,dest,destSize+1,UBIDI_OUTPUT_REVERSE,&ec);
878 ec = U_ZERO_ERROR;
879 ubidi_setPara(bidi,src,srcSize,UBIDI_DEFAULT_LTR,levels,&ec);
880 if(U_FAILURE(ec)){
882 i, UBIDI_MAX_EXPLICIT_LEVEL, u_errorName(ec));
885 destSize = ubidi_writeReordered(bidi,dest,0,UBIDI_DO_MIRRORING+UBIDI_REMOVE_BIDI_CONTROLS,&ec);
886 if(ec!=U_BUFFER_OVERFLOW_ERROR){
887 log_err("Pre-flighting did not give expected error: Expected: U_BUFFER_OVERFLOW_ERROR. Got: %s \n",u_errorName(ec));
889 ec= U_ZERO_ERROR;
891 destSize=ubidi_writeReordered(bidi,dest,destSize+1,UBIDI_DO_MIRRORING+UBIDI_REMOVE_BIDI_CONTROLS,&ec);
991 UErrorCode ec = U_ZERO_ERROR;
1002 ec = U_ZERO_ERROR;
1003 ubidi_setPara(bidi,logicalOrder[i],srcSize,UBIDI_DEFAULT_LTR ,NULL,&ec);
1004 if(U_FAILURE(ec)){
1006 i, UBIDI_DEFAULT_LTR, u_errorName(ec));
1009 destSize = ubidi_writeReordered(bidi,dest,0,UBIDI_DO_MIRRORING,&ec);
1010 if(ec!=U_BUFFER_OVERFLOW_ERROR){
1011 log_err("Pre-flighting did not give expected error: Expected: U_BUFFER_OVERFLOW_ERROR. Got: %s \n",u_errorName(ec));
1015 ec= U_ZERO_ERROR;
1017 destSize=ubidi_writeReordered(bidi,dest,destSize+1,UBIDI_DO_MIRRORING,&ec);