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

数字のフォーマットを追加 #520

Merged
merged 1 commit into from Apr 5, 2016
Merged

数字のフォーマットを追加 #520

merged 1 commit into from Apr 5, 2016

Conversation

kmuto
Copy link
Owner

@kmuto kmuto commented Apr 5, 2016

%pAW、%paW、%pRW、%pJ、%pdW、%pDW をフォーマットに加えるものです。

… latin), %pRW (double-width roman number), %pJ (Kanji number), %pdW (like %d arabic number, but 0-9 is double-width), and %pDW (double-width arabic number) in i18n number format.
@takahashim
Copy link
Collaborator

これってアルファベットの中で使うと(例えばXXX%pAXXXみたいな文字列中で使うと)おかしな結果になりそうですが、それは仕方ない感じでしょうか。

@kmuto
Copy link
Owner Author

kmuto commented Apr 5, 2016

今日実装中に試した限りだと、実は前からそのパターンはエラーになるっぽいです。
とりあえず今回も「XXX%pAXXX」となり得るパターンを考えにくかったので目をつぶりました(デフォルトは%dなので「あえて」%p系を指定するような特殊用途のみの話ですし)。

@takahashim
Copy link
Collaborator

むむ、そうなんですね。了解です。

@kmuto kmuto deleted the extend_numberformat branch April 8, 2016 12:32
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

Successfully merging this pull request may close these issues.

None yet

2 participants