Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.
| Class | String |
||||||||
|---|---|---|---|---|---|---|---|---|---|
| Name | replace() |
||||||||
| Examples | void setup() { Serial.begin(9600); String str = String("CCCP"); String str2 = str.replace('C','1'); Serial.println(str2); // prints "111P" } void loop() { // Nothing for loop() } |
||||||||
| Description | Replaces all occurrences of chr1 in this string with chr2, or replaces all occurrences of string str1 in this string with string str2. | ||||||||
| Syntax | replace(chr1, chr2) replace(str1, str2) |
||||||||
| Parameters |
|
||||||||
| Returns | none | ||||||||
| Usage | Application |

