diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-11-24 04:39:06 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-11-24 04:39:06 +0000 |
commit | 1f894ce98811eb8a2ab893db6c2d53cd77a111e7 (patch) | |
tree | 29c8fde4b73779b7e942291914b5d3feae81a972 /src/unit/fstring.unit | |
parent | 2389e95360e37cd601e6b28cec47fef290c009d3 (diff) | |
download | libbu++-1f894ce98811eb8a2ab893db6c2d53cd77a111e7.tar.gz libbu++-1f894ce98811eb8a2ab893db6c2d53cd77a111e7.tar.bz2 libbu++-1f894ce98811eb8a2ab893db6c2d53cd77a111e7.tar.xz libbu++-1f894ce98811eb8a2ab893db6c2d53cd77a111e7.zip |
Added a replace function to fstring...sweeet.
Diffstat (limited to '')
-rw-r--r-- | src/unit/fstring.unit | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/unit/fstring.unit b/src/unit/fstring.unit index d218a07..2f2eb69 100644 --- a/src/unit/fstring.unit +++ b/src/unit/fstring.unit | |||
@@ -333,3 +333,10 @@ | |||
333 | unitTest( b == "Goodbye" ); | 333 | unitTest( b == "Goodbye" ); |
334 | } | 334 | } |
335 | 335 | ||
336 | {%replace1} | ||
337 | { | ||
338 | Bu::FString a; | ||
339 | a = "This is a test."; | ||
340 | unitTest( a.replace("i", "ooo") == "Thooos ooos a test." ); | ||
341 | } | ||
342 | |||