diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-06-02 23:21:01 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-06-02 23:21:01 +0000 |
commit | 40cca68ce2a796ac4ba9707b22a925f53c0d3998 (patch) | |
tree | b5bb096b5675ca1374bc908c9bc4c5f768f10612 | |
parent | 1df2d73183a08fc37bc1b97a530c13a9445dad65 (diff) | |
download | libbu++-40cca68ce2a796ac4ba9707b22a925f53c0d3998.tar.gz libbu++-40cca68ce2a796ac4ba9707b22a925f53c0d3998.tar.bz2 libbu++-40cca68ce2a796ac4ba9707b22a925f53c0d3998.tar.xz libbu++-40cca68ce2a796ac4ba9707b22a925f53c0d3998.zip |
Huh, cgiutil was mostly a waste, url handles it all already. I still need
something for mime eventually, meh.
Diffstat (limited to '')
-rw-r--r-- | src/cgiutil.cpp | 11 | ||||
-rw-r--r-- | src/cgiutil.h | 9 | ||||
-rw-r--r-- | src/url.cpp | 6 | ||||
-rw-r--r-- | src/url.h | 1 |
4 files changed, 26 insertions, 1 deletions
diff --git a/src/cgiutil.cpp b/src/cgiutil.cpp index 1f7a8d0..9cfd3f2 100644 --- a/src/cgiutil.cpp +++ b/src/cgiutil.cpp | |||
@@ -7,4 +7,13 @@ Bu::CgiUtil::CgiUtil() | |||
7 | Bu::CgiUtil::~CgiUtil() | 7 | Bu::CgiUtil::~CgiUtil() |
8 | { | 8 | { |
9 | } | 9 | } |
10 | 10 | /* | |
11 | static void Bu::CgiUtil::parseUriQuery( | ||
12 | const Bu::FString &sUri, StrListHash &hVar ) | ||
13 | { | ||
14 | for( Bu::FString::const_iterator i = sUri.begin(); i; i++ ) | ||
15 | { | ||
16 | |||
17 | } | ||
18 | } | ||
19 | */ | ||
diff --git a/src/cgiutil.h b/src/cgiutil.h index 4a9ae2d..c101b62 100644 --- a/src/cgiutil.h +++ b/src/cgiutil.h | |||
@@ -1,6 +1,10 @@ | |||
1 | #ifndef CGI_UTIL_H | 1 | #ifndef CGI_UTIL_H |
2 | #define CGI_UTIL_H | 2 | #define CGI_UTIL_H |
3 | 3 | ||
4 | #include "bu/fstring.h" | ||
5 | #include "bu/list.h" | ||
6 | #include "bu/hash.h" | ||
7 | |||
4 | namespace Bu | 8 | namespace Bu |
5 | { | 9 | { |
6 | class CgiUtil | 10 | class CgiUtil |
@@ -9,6 +13,11 @@ namespace Bu | |||
9 | CgiUtil(); | 13 | CgiUtil(); |
10 | virtual ~CgiUtil(); | 14 | virtual ~CgiUtil(); |
11 | 15 | ||
16 | // typedef Bu::List<Bu::FString> StrList; | ||
17 | // typedef Bu::Hash<StrList> StrListHash; | ||
18 | |||
19 | // static void parseUriQuery( const Bu::FString &sUri, StrListHash &hVar ); | ||
20 | |||
12 | private: | 21 | private: |
13 | }; | 22 | }; |
14 | }; | 23 | }; |
diff --git a/src/url.cpp b/src/url.cpp index e4d2f55..251e678 100644 --- a/src/url.cpp +++ b/src/url.cpp | |||
@@ -172,6 +172,12 @@ void Bu::Url::parsePath( Bu::FString::const_iterator &i ) | |||
172 | } | 172 | } |
173 | } | 173 | } |
174 | 174 | ||
175 | void Bu::Url::parseParams( const Bu::FString &sQuery ) | ||
176 | { | ||
177 | Bu::FString::const_iterator i = sQuery.begin(); | ||
178 | parseParams( i ); | ||
179 | } | ||
180 | |||
175 | void Bu::Url::parseParams( Bu::FString::const_iterator &i ) | 181 | void Bu::Url::parseParams( Bu::FString::const_iterator &i ) |
176 | { | 182 | { |
177 | bool bName = true; | 183 | bool bName = true; |
@@ -26,6 +26,7 @@ namespace Bu | |||
26 | virtual ~Url(); | 26 | virtual ~Url(); |
27 | 27 | ||
28 | void parseUrl( const Bu::FString &sUrl ); | 28 | void parseUrl( const Bu::FString &sUrl ); |
29 | void parseParams( const Bu::FString &sQuery ); | ||
29 | void parseParams( Bu::FString::const_iterator &i ); | 30 | void parseParams( Bu::FString::const_iterator &i ); |
30 | void clear(); | 31 | void clear(); |
31 | 32 | ||