From 981b219f5297ad2ccc1fc1d0e24e41ec009c35a3 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Mon, 25 Apr 2005 16:36:32 +0000 Subject: moved a few utility functions to konforka and bumped konforka version requirement accordingly --- (limited to 'lib/configuration.cc') diff --git a/lib/configuration.cc b/lib/configuration.cc index 4ee1526..6b21690 100644 --- a/lib/configuration.cc +++ b/lib/configuration.cc @@ -6,6 +6,7 @@ #include #include using namespace std; + #include #include #include "sitecing/configuration.h" #include "sitecing/sitecing_util.h" @@ -304,7 +305,7 @@ namespace sitecing { string configuration::lookup_http_status_handler(const string& target,const string& status) { string t = "/"; - t += normalize_path(target,strip_leading_slash); + t += konforka::normalize_path(target,konforka::strip_leading_slash); string rv; for(;;) { if(t[t.length()-1]=='/') { @@ -337,7 +338,7 @@ namespace sitecing { config_options::action_handler_t *configuration::lookup_action_handler(const string& target) { string t = "/"; - t += normalize_path(target,strip_leading_slash); + t += konforka::normalize_path(target,konforka::strip_leading_slash); for(;;) { if(t[t.length()-1]=='/') { loaded_options* lo = lookup_loaded_options(t); @@ -369,7 +370,7 @@ namespace sitecing { config_options* configuration::lookup_config(const string& target,int flag) { string t = "/"; // always assume leading slash - t += normalize_path(target,strip_leading_slash); + t += konforka::normalize_path(target,konforka::strip_leading_slash); // XXX: reconsider precedence for(;;) { if(t[t.length()-1]=='/') { @@ -414,7 +415,7 @@ namespace sitecing { bool configuration::match_autobuild_files(const string& target,const char *fn) { string t = "/"; - t += normalize_path(target,strip_leading_slash|strip_trailing_slash); + t += konforka::normalize_path(target,konforka::strip_leading_slash|konforka::strip_trailing_slash); t += "/"; bool rv = false; for(;;) { -- cgit v0.9.0.2