String.setCharAt()

名称

String.setCharAt()

説明

Stringオブジェクト内の文字列の指定した場所の文字を別の文字に変更する。既存のStringオブジェクト内の文字列長よりも超える箇所を指定すると、何も設定されない(変更されない)。

書式

void String::setCharAt(unsigned int loc, char c);

引数

loc文字を変更する場所を指定する数値(先頭が0)。
c 指定した場所に設定する文字。

戻り値

なし。

参照

利用例 String Tutorials

オリジナルのページ

https://www.arduino.cc/reference/en/language/variables/data-types/string/functions/setcharat/

Last Revision: 2019/02/19

最終更新日

January 4, 2024

inserted by FC2 system