Skip to content

68B09/DictionaryIndexCompareJP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DictionaryIndexCompareJP

日本語版辞書よみ順ソート用比較クラス

辞書・辞典の目次のような「読み順ソート」を行うための文字列比較クラス(DictionaryIndexCompareJP.cs)です。
JIS X 4061に従っているつもりです。

言語・開発環境

C#/.NET Framework 4.0/VisualStudio2015

使い方

1、プロジェクトへの登録
DictionaryIndexCompareJP.cs を目的のプロジェクトなどへコピー・登録してください。

2、コードの利用
list.Sort(new DictionaryIndexCompareJP()); のようにソーターに比較クラスのインスタンスを渡します。
※TestForm.OnLoad() を参照のこと

関連情報

1、よみがな(平仮名や片仮名)をソートする前提になっています
2、平仮名や片仮名以外の文字が混ざっている場合の結果は不定です
3、実行速度の最適化は行っていません

ライセンス

ライセンスを適用するファイルは DictionaryIndexCompareJP.cs のみです。
The MIT License (MIT)
Copyright (c) 2016 ZZO
see also 'LICENSE' file

About

日本語版辞書よみ順ソート用比較クラス

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages