 |
 |
 |
 |
| Class |
|
String |
 |
|
|
| Name |
|
replace() |
 |
|
|
| Examples |
|
String str = "CCCP";
str.replace('C','1');
Serial.println(c1); // Prints '111P'
|
|
|
| Description |
|
Replaces all occurrences of chr1 in this string with chr2. |
 |
|
|
| Syntax |
|
replace(chr1, chr2)
|
 |
|
|
| Parameters |
|
| chr1 |
|
char: the character to be replaced
|
| chr2 |
|
char: the replacement character
|
|
 |
|
|
| Returns |
|
none |
 |
|
|
| Usage |
|
Web & Application |
 |
|
|
|