aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/cgiutil.cpp11
-rw-r--r--src/cgiutil.h9
-rw-r--r--src/url.cpp6
-rw-r--r--src/url.h1
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()
7Bu::CgiUtil::~CgiUtil() 7Bu::CgiUtil::~CgiUtil()
8{ 8{
9} 9}
10 10/*
11static 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
4namespace Bu 8namespace 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
175void Bu::Url::parseParams( const Bu::FString &sQuery )
176{
177 Bu::FString::const_iterator i = sQuery.begin();
178 parseParams( i );
179}
180
175void Bu::Url::parseParams( Bu::FString::const_iterator &i ) 181void Bu::Url::parseParams( Bu::FString::const_iterator &i )
176{ 182{
177 bool bName = true; 183 bool bName = true;
diff --git a/src/url.h b/src/url.h
index 8713ed4..cf1210b 100644
--- a/src/url.h
+++ b/src/url.h
@@ -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