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/functiondirname.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/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 | } |