string StringSetChar(string text, int pos, int value)
Returns the string copy with changed character in the specified position.
指定した位置に、変更された文字をコピーした文字列を返します。
Parameters:
パラメータ:
text - String where character will be changed.
変更する文字列の文字。
pos - The character position in the string. Can be from 0 to StringLen(text).
文字列内の文字位置。0からStringLen(text)にすることができます。
value - New char ASCII code.
新しい文字のASCIIコード。
Sample:
サンプル:
string str="abcdefgh";
string str1=StringSetChar(str, 3, 'D');
// str1 is "abcDefgh"
|