Lines Matching refs:status
204 UErrorCode status = U_ZERO_ERROR;
205 loadTestData(status);
206 if(U_FAILURE(status))
208 dataerrln("Could not load testdata.dat %s " + UnicodeString(u_errorName(status)));
215 Locale::setDefault(Locale("en_US"), status);
229 Locale::setDefault(originalDefault, status);
413 UErrorCode status;
416 status=U_ZERO_ERROR;
422 a.getString(status)==b.getString(status) :
424 a.getInt(status)==b.getInt(status) :
640 UErrorCode status = U_ZERO_ERROR;
641 testdatapath=loadTestData(status);
642 if(U_FAILURE(status))
644 dataerrln("Could not load testdata.dat %s " + UnicodeString(u_errorName(status)));
653 status = U_ZERO_ERROR;
654 ResourceBundle theBundle( testdatapath, *param[i].locale, status);
655 //ResourceBundle theBundle( "c:\\icu\\icu\\source\\test\\testdata\\testdata", *param[i].locale, status);
656 CONFIRM_UErrorCode(status,param[i].expected_constructor_status);
708 status = U_ZERO_ERROR;
709 UnicodeString string = theBundle.getStringEx(tag, status);
710 if(U_FAILURE(status)) {
714 CONFIRM_UErrorCode(status, expected_resource_status);
717 if (U_SUCCESS(status)) {
735 status = U_ZERO_ERROR;
736 ResourceBundle array = theBundle.get(tag, status);
737 CONFIRM_UErrorCode(status,expected_resource_status);
740 if (U_SUCCESS(status))
754 CONFIRM_EQ(array.getNextString(status),expected_string);
772 status = U_ZERO_ERROR;
774 ResourceBundle array = theBundle.get(tag, status);
775 if(!U_FAILURE(status)){
776 UnicodeString t = array.getStringEx(index, status);
777 if(!U_FAILURE(status)) {
783 CONFIRM_UErrorCode(status,expected_status);
785 if (U_SUCCESS(status)){
809 status = U_ZERO_ERROR;
810 ResourceBundle array2d=theBundle.get(tag, status);
812 //const UnicodeString** array2d = theBundle.get2dArray(tag, row_count, column_count, status);
813 CONFIRM_UErrorCode(status,expected_resource_status);
815 if (U_SUCCESS(status))
825 ResourceBundle tablerow=array2d.get(row, status);
826 CONFIRM_UErrorCode(status, expected_resource_status);
827 if(U_SUCCESS(status)){
840 CONFIRM_EQ(tablerow.getNextString(status),expected_string);
859 status = U_ZERO_ERROR;
861 ResourceBundle array2d=theBundle.get(tag, status);
862 if(U_SUCCESS(status)){
863 ResourceBundle tablerow=array2d.get(row, status);
864 if(U_SUCCESS(status)) {
865 UnicodeString t=tablerow.getStringEx(col, status);
866 if(U_SUCCESS(status)){
873 CONFIRM_UErrorCode(status,expected_status);
875 if (U_SUCCESS(status)){
899 status = U_ZERO_ERROR;
901 ResourceBundle tags=theBundle.get(tag, status);
902 CONFIRM_UErrorCode(status, expected_resource_status);
904 if (U_SUCCESS(status)) {
912 ResourceBundle tagelement=tags.get(index, status);
914 UnicodeString value=tagelement.getNextString(status);
925 ResourceBundle tagelement=tags.get(index, status);
927 UnicodeString value=tagelement.getNextString(&tkey, status);
956 status = U_ZERO_ERROR;
961 ResourceBundle tags=theBundle.get(tag, status);
962 if(U_SUCCESS(status)){
963 ResourceBundle tagelement=tags.get(item_tag, status);
964 if(!U_FAILURE(status)){
969 UnicodeString t=tagelement.getString(status);
970 if(!U_FAILURE(status)){
975 CONFIRM_UErrorCode(status,U_MISSING_RESOURCE_ERROR);
978 if (status != U_MISSING_RESOURCE_ERROR) {
1011 UErrorCode status = U_ZERO_ERROR;
1021 testdatapath=loadTestData(status);
1023 if(U_FAILURE(status))
1025 dataerrln("Could not load testdata.dat %s \n",u_errorName(status));
1029 ResourceBundle theBundle(testdatapath, "testtypes", status);
1030 ResourceBundle bundle(testdatapath, Locale("te_IN"),status);
1032 UnicodeString emptyStr = theBundle.getStringEx("emptystring", status);
1037 CONFIRM_UErrorCode(status, U_ZERO_ERROR);
1044 ResourceBundle res = theBundle.get("zerotest", status);
1045 CONFIRM_UErrorCode(status, U_ZERO_ERROR);
1047 UnicodeString zeroString=res.getString(status);
1049 if(U_SUCCESS(status)){
1050 CONFIRM_UErrorCode(status, U_ZERO_ERROR);
1061 res = theBundle.get("binarytest", status);
1062 CONFIRM_UErrorCode(status, U_ZERO_ERROR);
1064 binResult=(uint8_t*)res.getBinary(len, status);
1065 if(U_SUCCESS(status)){
1066 CONFIRM_UErrorCode(status, U_ZERO_ERROR);
1074 res = theBundle.get("importtest",status);
1075 CONFIRM_UErrorCode(status, U_ZERO_ERROR);
1077 binResult=(uint8_t*)res.getBinary(len, status);
1078 if(U_SUCCESS(status)){
1079 CONFIRM_UErrorCode(status, U_ZERO_ERROR);
1087 res = theBundle.get("one", status);
1088 CONFIRM_UErrorCode(status, U_ZERO_ERROR);
1090 intResult=res.getInt(status);
1091 uintResult = res.getUInt(status);
1092 if(U_SUCCESS(status)){
1093 CONFIRM_UErrorCode(status, U_ZERO_ERROR);
1099 res = theBundle.get((const char*)"minusone", status);
1100 CONFIRM_UErrorCode(status, U_ZERO_ERROR);
1102 intResult=res.getInt(status);
1103 uintResult = res.getUInt(status);
1104 if(U_SUCCESS(status)){
1105 CONFIRM_UErrorCode(status, U_ZERO_ERROR);
1112 res = theBundle.get("plusone",status);
1113 CONFIRM_UErrorCode(status, U_ZERO_ERROR);
1115 intResult=res.getInt(status);
1116 uintResult = res.getUInt(status);
1117 if(U_SUCCESS(status)){
1118 CONFIRM_UErrorCode(status, U_ZERO_ERROR);
1123 res = theBundle.get("onehundredtwentythree",status);
1124 CONFIRM_UErrorCode(status, U_ZERO_ERROR);
1126 intResult=res.getInt(status);
1127 if(U_SUCCESS(status)){
1128 CONFIRM_UErrorCode(status, U_ZERO_ERROR);
1134 UnicodeString str = theBundle.getStringEx("testescape",status);
1135 CONFIRM_UErrorCode(status, U_ZERO_ERROR);
1136 if(U_SUCCESS(status)){
1146 UnicodeString str = theBundle.getStringEx("test_underscores",status);
1148 CONFIRM_UErrorCode(status, U_ZERO_ERROR);
1160 UErrorCode status = U_ZERO_ERROR;
1162 ResourceBundle heRes(NULL, "he", status);
1164 heRes.getWithFallback("calendar", status).getWithFallback("islamic-civil", status).getWithFallback("DateTime", status);
1165 if(U_SUCCESS(status)) {
1168 status = U_ZERO_ERROR;
1170 heRes.getWithFallback("calendar", status).getWithFallback("islamic-civil", status).getWithFallback("eras", status);
1171 if(U_FAILURE(status)) {
1172 dataerrln("Didn't get Islamic Eras. I know they are there! - %s", u_errorName(status));
1174 status = U_ZERO_ERROR;
1176 ResourceBundle rootRes(NULL, "root", status);
1177 rootRes.getWithFallback("calendar", status).getWithFallback("islamic-civil", status).getWithFallback("DateTime", status);
1178 if(U_SUCCESS(status)) {
1181 status = U_ZERO_ERROR;