gaStringReplace(string,string,string)

Syntax

gaStringReplace(string,string,string)

Example

text = "Tomorrow we hope for a sunny day"

function draw()
     gaBackground(0.0,1.0)

     ofSetColor(255)
     ofDrawBitmapString(text,200,100)

     text2 = gaStringReplace(text,"sunny","windy")
     ofDrawBitmapString(text2,200,140)
end

Description

Useful string search and substitution function.

Parameters

string,string,string

Returns

«String, The modified string