「String型のメソッド」の版間の差分

編集の要約なし
 
(同じ利用者による、間の4版が非表示)
42行目: 42行目:
0 この文字列の位置が、並べ替え順序において<code>str</code>と同じです。
0 この文字列の位置が、並べ替え順序において<code>str</code>と同じです。


0より大きい値 このインスタンスの位置が<code>str</code>よりも後ろまたは、<code>str</code>が<code>null</code>です。
0より大きい値 この文字列の位置が<code>str</code>よりも後ろまたは、<code>str</code>が<code>null</code>です。
 
=string.IsNormalized=
=string.IsNormalized=
  bool string.IsNormalized();
  bool string.IsNormalized();
51行目: 52行目:
 number string.IndexOf(string str,number startIndex);
 number string.IndexOf(string str,number startIndex);
指定された文字列が現在の文字列内で最初に見つかった位置のインデックスを返します。検索は、指定されたインデックスから開始され、見つからなかった場合は-1を返します。
指定された文字列が現在の文字列内で最初に見つかった位置のインデックスを返します。検索は、指定されたインデックスから開始され、見つからなかった場合は-1を返します。
=string.LastIndexOf=
=string.LastIndexOf=
  number string.LastIndexOf(string str);
  number string.LastIndexOf(string str);
63行目: 65行目:
現在の文字列の中で、<code>oldValue</code>の出現する箇所をすべて<code>newValue</code>に置き換えます。
現在の文字列の中で、<code>oldValue</code>の出現する箇所をすべて<code>newValue</code>に置き換えます。
=string.Split=
=string.Split=
array string.Split();
現在の文字列を単一文字ごとの文字列に分割します。
  array string.Split(string separator);
  array string.Split(string separator);
現在の文字列を指定された区切り文字で分割します。
現在の文字列を指定された区切り文字で分割します。
=string.ToLower=
=string.ToLower=
  string string.ToLower();
  string string.ToLower();
77行目: 82行目:
  string string.Format(parms variable args);
  string string.Format(parms variable args);
現在の文字列を書式指定子として、現在の文字列を指定されたオブジェクトの文字列表記に置換します。
現在の文字列を書式指定子として、現在の文字列を指定されたオブジェクトの文字列表記に置換します。
複合書式指定について詳しく知るには、[[string_format]]を参照してください。
=string.Length=
number string.Length;
現在の文字列の長さを返します。
=string.Count=
number string.Count;
現在の文字列の長さを返します。