String::replace() \ Language (API) \ Wiring ALPHA 1.0
Author: Hernando Barragán
Description: Wiring is an electronic sketchbook and hardware electronics for developing ideas. It is a context for learning fundamentals of computer programming and prototyping with electronics within the context of the electronic arts.
Keywords: Wiring, Processing, Interactive Media, Electronic Arts, Programming, C, C++, Hernando Barragán

Search wiring.org.co:

Reference for Wiring version 0024+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Class | String
Name | ### replace()
Examples |
    String str = String("CCCP");
    String str2 = str.replace('C','1');
    Serial.println(str2);  // prints "111P"
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 |
chr1 | char: the character to be replaced
chr2 | char: the replacement character
str1 | String: the string to be replaced
str2 | String: the replacement string
Returns | none
Usage | Application

Updated on November 01, 2009 01:23:37pm PST