Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number Format (format and parse) #81

Open
gagolews opened this issue May 18, 2014 · 4 comments
Open

Number Format (format and parse) #81

gagolews opened this issue May 18, 2014 · 4 comments
Assignees

Comments

@gagolews
Copy link
Owner

Formatter types: URBNF_SPELLOUT, which creates a formatter that spells out a value in words in the desired language, URBNF_ORDINAL, which attaches an ordinal suffix from the desired language to the end of a number (e.g. "123rd"), URBNF_DURATION, which formats a duration in seconds as hours, minutes, and seconds, and URBNF_NUMBERING_SYSTEM, which is used to invoke rules for alternate numbering systems such as the Hebrew numbering system, or for Roman Numerals, etc.

icu::RuleBasedNumberFormat::RuleBasedNumberFormat   (   URBNFRuleSetTag     tag,
        const Locale &      locale,
        UErrorCode &    status 
    )   
virtual UnicodeString &     format (double number, UnicodeString &toAppendTo, FieldPosition &pos) const

parse: lenient...

@gagolews gagolews added this to the stringi-0.3 milestone May 18, 2014
@gagolews gagolews self-assigned this May 18, 2014
@gagolews
Copy link
Owner Author

or maybe just a MessageForrmat?

http://userguide.icu-project.org/formatparse/messages

@gagolews gagolews modified the milestones: stringi-0.4, stringi-0.3 Oct 24, 2014
@gagolews gagolews modified the milestone: stringi-0.4 Nov 6, 2014
@gagolews
Copy link
Owner Author

gagolews commented May 4, 2021

By the way, number formatting is not currently used, but setting -DUCONFIG_NO_FORMATTING would also disable TimeZone, date/time formatting, etc.

@gagolews gagolews changed the title RuleBasedNumberFormat (format and parse) Number Format (format and parse) May 7, 2022
@gagolews
Copy link
Owner Author

gagolews commented May 7, 2022

@gagolews
Copy link
Owner Author

gagolews commented May 7, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant