diff options
Diffstat (limited to '')
-rw-r--r-- | src/functiondirname.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/functiondirname.cpp b/src/functiondirname.cpp index f72d181..7fc3bf2 100644 --- a/src/functiondirname.cpp +++ b/src/functiondirname.cpp | |||
@@ -12,30 +12,30 @@ FunctionDirName::~FunctionDirName() | |||
12 | { | 12 | { |
13 | } | 13 | } |
14 | 14 | ||
15 | Bu::FString FunctionDirName::getName() const | 15 | Bu::String FunctionDirName::getName() const |
16 | { | 16 | { |
17 | return "dirName"; | 17 | return "dirName"; |
18 | } | 18 | } |
19 | 19 | ||
20 | Variable FunctionDirName::call( Variable &input, VarList /*lParams*/ ) | 20 | Variable FunctionDirName::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 | Bu::FString::const_iterator io; | 26 | Bu::String::const_iterator io; |
27 | for(;;) | 27 | for(;;) |
28 | { | 28 | { |
29 | Bu::FString::const_iterator b = i.find('/'); | 29 | Bu::String::const_iterator b = i.find('/'); |
30 | if( !b ) | 30 | if( !b ) |
31 | { | 31 | { |
32 | return Variable( Bu::FString( sFile.begin(), io ) ); | 32 | return Variable( Bu::String( sFile.begin(), io ) ); |
33 | } | 33 | } |
34 | io = b; | 34 | io = b; |
35 | i = b+1; | 35 | i = b+1; |
36 | if( !i ) | 36 | if( !i ) |
37 | { | 37 | { |
38 | return Variable( Bu::FString( sFile.begin(), io ) ); | 38 | return Variable( Bu::String( sFile.begin(), io ) ); |
39 | } | 39 | } |
40 | } | 40 | } |
41 | } | 41 | } |