Lines Matching refs:ec
385 UErrorCode ec = U_ZERO_ERROR;
386 const UBiDiLevel* gotLevels = ubidi_getLevels(bidi, &ec);
391 if(U_FAILURE(ec)) {
722 UErrorCode ec = U_ZERO_ERROR;
736 ec = U_ZERO_ERROR;
737 ubidi_setPara(bidi,src,srcSize,UBIDI_DEFAULT_LTR ,NULL,&ec);
738 if(U_FAILURE(ec)){
740 i, UBIDI_DEFAULT_LTR, u_errorName(ec));
743 destSize = ubidi_writeReordered(bidi,dest,0,UBIDI_DO_MIRRORING,&ec);
744 if(ec!=U_BUFFER_OVERFLOW_ERROR){
745 log_err("Pre-flighting did not give expected error: Expected: U_BUFFER_OVERFLOW_ERROR. Got: %s \n",u_errorName(ec));
749 ec= U_ZERO_ERROR;
751 destSize=ubidi_writeReordered(bidi,dest,destSize+1,UBIDI_DO_MIRRORING,&ec);
771 ec = U_ZERO_ERROR;
772 ubidi_setPara(bidi,src,srcSize,UBIDI_DEFAULT_LTR ,NULL,&ec);
773 if(U_FAILURE(ec)){
775 i, UBIDI_DEFAULT_LTR, u_errorName(ec));
778 destSize = ubidi_writeReordered(bidi,dest,0,UBIDI_DO_MIRRORING+UBIDI_OUTPUT_REVERSE,&ec);
779 if(ec!=U_BUFFER_OVERFLOW_ERROR){
780 log_err("Pre-flighting did not give expected error: Expected: U_BUFFER_OVERFLOW_ERROR. Got: %s \n",u_errorName(ec));
784 ec= U_ZERO_ERROR;
786 destSize=ubidi_writeReordered(bidi,dest,destSize+1,UBIDI_DO_MIRRORING+UBIDI_OUTPUT_REVERSE,&ec);
805 ec = U_ZERO_ERROR;
807 ubidi_setPara(bidi,src,srcSize,UBIDI_DEFAULT_LTR ,NULL,&ec);
808 if(U_FAILURE(ec)){
810 i, UBIDI_DEFAULT_LTR, u_errorName(ec));
813 destSize = ubidi_writeReordered(bidi,dest,0,UBIDI_INSERT_LRM_FOR_NUMERIC+UBIDI_OUTPUT_REVERSE,&ec);
814 if(ec!=U_BUFFER_OVERFLOW_ERROR){
815 log_err("Pre-flighting did not give expected error: Expected: U_BUFFER_OVERFLOW_ERROR. Got: %s \n",u_errorName(ec));
817 ec= U_ZERO_ERROR;
819 destSize=ubidi_writeReordered(bidi,dest,destSize+1,UBIDI_INSERT_LRM_FOR_NUMERIC+UBIDI_OUTPUT_REVERSE,&ec);
837 ec = U_ZERO_ERROR;
838 ubidi_setPara(bidi,src,srcSize,UBIDI_DEFAULT_LTR,levels,&ec);
839 if(U_FAILURE(ec)){
841 i, UBIDI_MAX_EXPLICIT_LEVEL, u_errorName(ec));
844 destSize = ubidi_writeReordered(bidi,dest,0,UBIDI_OUTPUT_REVERSE,&ec);
845 if(ec!=U_BUFFER_OVERFLOW_ERROR){
846 log_err("Pre-flighting did not give expected error: Expected: U_BUFFER_OVERFLOW_ERROR. Got: %s \n",u_errorName(ec));
850 ec = U_ZERO_ERROR;
852 destSize=ubidi_writeReordered(bidi,dest,destSize+1,UBIDI_OUTPUT_REVERSE,&ec);
871 ec = U_ZERO_ERROR;
872 ubidi_setPara(bidi,src,srcSize,UBIDI_DEFAULT_LTR,levels,&ec);
873 if(U_FAILURE(ec)){
875 i, UBIDI_MAX_EXPLICIT_LEVEL, u_errorName(ec));
878 destSize = ubidi_writeReordered(bidi,dest,0,UBIDI_DO_MIRRORING+UBIDI_REMOVE_BIDI_CONTROLS,&ec);
879 if(ec!=U_BUFFER_OVERFLOW_ERROR){
880 log_err("Pre-flighting did not give expected error: Expected: U_BUFFER_OVERFLOW_ERROR. Got: %s \n",u_errorName(ec));
882 ec= U_ZERO_ERROR;
884 destSize=ubidi_writeReordered(bidi,dest,destSize+1,UBIDI_DO_MIRRORING+UBIDI_REMOVE_BIDI_CONTROLS,&ec);
984 UErrorCode ec = U_ZERO_ERROR;
995 ec = U_ZERO_ERROR;
996 ubidi_setPara(bidi,logicalOrder[i],srcSize,UBIDI_DEFAULT_LTR ,NULL,&ec);
997 if(U_FAILURE(ec)){
999 i, UBIDI_DEFAULT_LTR, u_errorName(ec));
1002 destSize = ubidi_writeReordered(bidi,dest,0,UBIDI_DO_MIRRORING,&ec);
1003 if(ec!=U_BUFFER_OVERFLOW_ERROR){
1004 log_err("Pre-flighting did not give expected error: Expected: U_BUFFER_OVERFLOW_ERROR. Got: %s \n",u_errorName(ec));
1008 ec= U_ZERO_ERROR;
1010 destSize=ubidi_writeReordered(bidi,dest,destSize+1,UBIDI_DO_MIRRORING,&ec);