「文字列」の編集履歴(バックアップ)一覧はこちら
「文字列」(2011/04/22 (金) 18:19:22) の最新版変更点
追加された行は緑色になります。
削除された行は赤色になります。
#contents()
----
*調査
**指定文字の出現位置(IndexOf)
int = 文字列.IndexOf(指定文字列)
int > 0 :出現位置
int = -1 :存在しない
**指定文字の出現位置(最後)(LastIndexOf)
int = 文字列.LastIndexOf(指定文字列)
int > 0 :出現位置(先頭から)
int = -1 :存在しない
**文字列の比較(CompareTo)
int = 文字列A.CompareTo(文字列B)
文字列A = 文字列B :同一
----
*加工
**文字列の挿入(Insert)
string = 文字列.Insert(位置, 挿入文字列);
**パス文字列の結合(Combine)
string = Path.Combine(文字列A, 文字列B)
----
*参考
http://www.labasp.net/CsharpNote/mTips/Moji/index.html
#contents()
----
*調査
**指定文字の出現位置(IndexOf)
int = 文字列.IndexOf(指定文字列)
int > 0 :出現位置
int = -1 :存在しない
**指定文字の出現位置(最後)(LastIndexOf)
int = 文字列.LastIndexOf(指定文字列)
int > 0 :出現位置(先頭から)
int = -1 :存在しない
**文字列の比較(CompareTo)
int = 文字列A.CompareTo(文字列B)
文字列A = 文字列B :同一
----
*加工
**文字列の挿入(Insert)
string = 文字列.Insert(位置, 挿入文字列);
**パス文字列の結合(Combine)
string = Path.Combine(文字列A, 文字列B)
----
*参考
http://www.labasp.net/CsharpNote/mTips/Moji/index.html
http://jeanne.wankuma.com/tips/csharp/string/compare.html(CompareTo)