From 1f894ce98811eb8a2ab893db6c2d53cd77a111e7 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 24 Nov 2009 04:39:06 +0000 Subject: Added a replace function to fstring...sweeet. --- src/unit/fstring.unit | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/unit') 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 @@ unitTest( b == "Goodbye" ); } +{%replace1} +{ + Bu::FString a; + a = "This is a test."; + unitTest( a.replace("i", "ooo") == "Thooos ooos a test." ); +} + -- cgit v1.2.3