From 40cca68ce2a796ac4ba9707b22a925f53c0d3998 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 2 Jun 2009 23:21:01 +0000 Subject: Huh, cgiutil was mostly a waste, url handles it all already. I still need something for mime eventually, meh. --- src/cgiutil.cpp | 11 ++++++++++- src/cgiutil.h | 9 +++++++++ src/url.cpp | 6 ++++++ src/url.h | 1 + 4 files changed, 26 insertions(+), 1 deletion(-) (limited to 'src') 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() Bu::CgiUtil::~CgiUtil() { } - +/* +static void Bu::CgiUtil::parseUriQuery( + const Bu::FString &sUri, StrListHash &hVar ) +{ + for( Bu::FString::const_iterator i = sUri.begin(); i; i++ ) + { + + } +} +*/ 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 @@ #ifndef CGI_UTIL_H #define CGI_UTIL_H +#include "bu/fstring.h" +#include "bu/list.h" +#include "bu/hash.h" + namespace Bu { class CgiUtil @@ -9,6 +13,11 @@ namespace Bu CgiUtil(); virtual ~CgiUtil(); +// typedef Bu::List StrList; +// typedef Bu::Hash StrListHash; + +// static void parseUriQuery( const Bu::FString &sUri, StrListHash &hVar ); + private: }; }; 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 ) } } +void Bu::Url::parseParams( const Bu::FString &sQuery ) +{ + Bu::FString::const_iterator i = sQuery.begin(); + parseParams( i ); +} + void Bu::Url::parseParams( Bu::FString::const_iterator &i ) { 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 virtual ~Url(); void parseUrl( const Bu::FString &sUrl ); + void parseParams( const Bu::FString &sQuery ); void parseParams( Bu::FString::const_iterator &i ); void clear(); -- cgit v1.2.3