Lines Matching refs:attr
198 UNumberFormatAttribute attr;
771 attr=UNUM_GROUPING_SIZE;
772 assertTrue("unum_hasAttribute returned false for UNUM_GROUPING_SIZE", unum_hasAttribute(def, attr));
773 newvalue=unum_getAttribute(def, attr);
775 unum_setAttribute(def, attr, newvalue);
776 if(unum_getAttribute(def,attr)!=2)
781 attr=UNUM_MULTIPLIER;
782 assertTrue("unum_hasAttribute returned false for UNUM_MULTIPLIER", unum_hasAttribute(def, attr));
783 newvalue=unum_getAttribute(def, attr);
785 unum_setAttribute(def, attr, newvalue);
786 if(unum_getAttribute(def,attr) != 8)
791 attr=UNUM_SECONDARY_GROUPING_SIZE;
792 assertTrue("unum_hasAttribute returned false for UNUM_SECONDARY_GROUPING_SIZE", unum_hasAttribute(def, attr));
793 newvalue=unum_getAttribute(def, attr);
795 unum_setAttribute(def, attr, newvalue);
796 if(unum_getAttribute(def,attr) != 2)
798 unum_getAttribute(def,attr));
804 for(attr=UNUM_PARSE_INT_ONLY; attr<= UNUM_PADDING_POSITION; attr=(UNumberFormatAttribute)((int32_t)attr + 1) )
806 assertTrue("unum_hasAttribute returned false", unum_hasAttribute(fr, attr));
807 newvalue=unum_getAttribute(fr, attr);
808 unum_setAttribute(def, attr, newvalue);
809 if(unum_getAttribute(def,attr)!=unum_getAttribute(fr, attr))
3022 log_err("FAIL: unum_formatDouble style %d, locale %s, attr %d, value %.2f: error %s\n",
3029 log_err("FAIL: unum_formatDouble style %d, locale %s, attr %d, value %.2f: expect \"%s\", get \"%s\"\n",