diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:21:03 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:21:03 +0000 |
commit | c435c7daa9df1b08dc85132fcd1c154bea9b69e2 (patch) | |
tree | 5537f3c91a67b35c4c8aa918b708b7e4aad8f146 /src/functionfilename.cpp | |
parent | 59690513123de8904eef2a03fe7fcaaed98b1b7b (diff) | |
download | build-c435c7daa9df1b08dc85132fcd1c154bea9b69e2.tar.gz build-c435c7daa9df1b08dc85132fcd1c154bea9b69e2.tar.bz2 build-c435c7daa9df1b08dc85132fcd1c154bea9b69e2.tar.xz build-c435c7daa9df1b08dc85132fcd1c154bea9b69e2.zip |
Fixes to use libbu++ Bu::String
Diffstat (limited to '')
-rw-r--r-- | src/functionfilename.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/functionfilename.cpp b/src/functionfilename.cpp index 57aada9..40f0048 100644 --- a/src/functionfilename.cpp +++ b/src/functionfilename.cpp | |||
@@ -12,28 +12,28 @@ FunctionFileName::~FunctionFileName() | |||
12 | { | 12 | { |
13 | } | 13 | } |
14 | 14 | ||
15 | Bu::FString FunctionFileName::getName() const | 15 | Bu::String FunctionFileName::getName() const |
16 | { | 16 | { |
17 | return "fileName"; | 17 | return "fileName"; |
18 | } | 18 | } |
19 | 19 | ||
20 | Variable FunctionFileName::call( Variable &input, VarList /*lParams*/ ) | 20 | Variable FunctionFileName::call( Variable &input, VarList /*lParams*/ ) |
21 | { | 21 | { |
22 | Bu::FString sFile; | 22 | Bu::String sFile; |
23 | sFile = input.getString(); | 23 | sFile = input.getString(); |
24 | 24 | ||
25 | Bu::FString::const_iterator i = sFile.begin(); | 25 | Bu::String::const_iterator i = sFile.begin(); |
26 | for(;;) | 26 | for(;;) |
27 | { | 27 | { |
28 | Bu::FString::const_iterator b = i.find('/'); | 28 | Bu::String::const_iterator b = i.find('/'); |
29 | if( !b ) | 29 | if( !b ) |
30 | { | 30 | { |
31 | return Variable( Bu::FString( i ) ); | 31 | return Variable( Bu::String( i ) ); |
32 | } | 32 | } |
33 | i = b+1; | 33 | i = b+1; |
34 | if( !i ) | 34 | if( !i ) |
35 | { | 35 | { |
36 | return Variable( Bu::FString( i ) ); | 36 | return Variable( Bu::String( i ) ); |
37 | } | 37 | } |
38 | } | 38 | } |
39 | } | 39 | } |