diff options
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 | } |