Lines Matching defs:symbol
184 UChar symbol[20];
645 symbol[0] = (UChar)(0x41 + i);
646 symbol[1] = (UChar)(0x61 + i);
647 unum_setSymbol(cur_frpattern, (UNumberFormatSymbol)i, symbol, 2, &status);
654 resultlength = unum_getSymbol(cur_frpattern, (UNumberFormatSymbol)i, symbol, UPRV_LENGTHOF(symbol), &status);
659 if(resultlength != 2 || symbol[0] != 0x41 + i || symbol[1] != 0x61 + i) {
660 log_err("Failure in unum_getSymbol(%d): got unexpected symbol\n", i);
663 /*try getting from a bogus symbol*/
664 unum_getSymbol(cur_frpattern, (UNumberFormatSymbol)i, symbol, UPRV_LENGTHOF(symbol), &status);
666 log_err("Error : Expected U_ILLEGAL_ARGUMENT_ERROR for bogus symbol");
670 log_err("Error: Expected U_ILLEGAL_ARGUMENT_ERROR for bogus symbol, Got %s\n", myErrorName(status));
975 /* Test invalid symbol argument */
986 if (U_SUCCESS(status)) log_err("unum_getSymbol()'s status should be ILLEGAL_ARGUMENT with invalid symbol (> UNUM_FORMAT_SYMBOL_COUNT) argument\n");
990 if (U_SUCCESS(status)) log_err("unum_getSymbol()'s status should be ILLEGAL_ARGUMENT with invalid symbol (less than 0) argument\n");
994 if (U_SUCCESS(status)) log_err("unum_setSymbol()'s status should be ILLEGAL_ARGUMENT with invalid symbol (> UNUM_FORMAT_SYMBOL_COUNT) argument\n");
998 if (U_SUCCESS(status)) log_err("unum_setSymbol()'s status should be ILLEGAL_ARGUMENT with invalid symbol (less than 0) argument\n");
1695 log_err("unexpected error getting symbol: '%s'\n", u_errorName(status));
1700 log_err("unexpected error setting symbol: '%s'\n", u_errorName(status));
2655 /* currently no locales have contextTransforms data for "symbol" type */
3659 log_err("unum_parseDecimal u\"3\" with empty curr symbol fails with %s, ppos %d\n", u_errorName(status), ppos);
3668 log_err("unum_parseDouble u\"3\" with empty curr symbol fails with %s, ppos %d\n", u_errorName(status), ppos);
3677 log_err("unum_parseDoubleCurrency u\"3\" with empty curr symbol succeeds, get ppos %d, val %.2f\n", ppos, val);