[表示 : 全て 最新50 1-99 101- 201- 301- 401- 501- 601- 701- 801- 901- 1001- 2ch.scのread.cgiへ]
Update time : 05/19 03:26 / Filesize : 245 KB / Number-of Response : 1021
[このスレッドの書き込みを削除する]
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧] [類似スレッド一覧]


↑キャッシュ検索、類似スレ動作を修正しました、ご迷惑をお掛けしました

☆★Java質問・相談スレッド179★★



165 名前:デフォルトの名無しさん mailto:sage [2016/11/10(木) 18:02:08.70 ID:wxBwv8wK.net]
ググって見たら、これは何やら面倒なもののようでした。
https://coderanch.com/t/328108/java/Ordering-AlphaNumeric-ascending-Order

This problem turns out to be much more complicated than you might expect.
For example, how should whitespace and punctuation characters be sorted?
Do leading zeroes affect the sort order, and if so, how?
Should decimal numbers be recognized?
Will there be any accented letters, or other characters outside the 7-bit ASCII set?
If so, you'll have to use a Collator for the non-numeric parts--but
Collators do very strange things with punctuation characters.

あと、数値がけた溢れした時の処理はどうするなんて書かれてもいて。






[ 続きを読む ] / [ 携帯版 ]

全部読む 前100 次100 最新50 [ このスレをブックマーク! 携帯に送る ] 2chのread.cgiへ
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧]( ´∀`)<245KB

read.cgi ver5.27 [feat.BBS2 +1.6] / e.0.2 (02/09/03) / eucaly.net products.
担当:undef