Skip to content

Commit

Permalink
Merge pull request #294 from camb416/patch-1
Browse files Browse the repository at this point in the history
Added code example for ofStringReplace
  • Loading branch information
ofZach committed Aug 29, 2014
2 parents 631d242 + 296d9a6 commit 26d0107
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _documentation/utils/ofUtils_functions.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2021,7 +2021,11 @@ _description: _

Searches input for instances of searchStr and replaces them with replaceStr.


~~~~{.cpp}
string message = "hello, world!";
ofStringReplace(message,"hello","goodbye");
ofLog() << message; // outputs "goodbye, world!"
~~~~



Expand Down

0 comments on commit 26d0107

Please sign in to comment.