From 2853156a2bce535bcaa440c37cf872916f76c03b Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Thu, 3 Jan 2013 08:10:25 +0000 Subject: Refactoring, rename isNil to isNull. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1428206 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/modules/http/httpd.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sca-cpp/trunk/modules/http/httpd.hpp') diff --git a/sca-cpp/trunk/modules/http/httpd.hpp b/sca-cpp/trunk/modules/http/httpd.hpp index 255f0aa31b..bf06ed5d91 100644 --- a/sca-cpp/trunk/modules/http/httpd.hpp +++ b/sca-cpp/trunk/modules/http/httpd.hpp @@ -260,7 +260,7 @@ const string cookie(const request_rec* const r) { * Return the remaining part of a uri after the given path (aka the path info.) */ const list pathInfo(const list& uri, const list& path) { - if (isNil(path)) + if (isNull(path)) return uri; return pathInfo(cdr(uri), cdr(path)); } @@ -347,14 +347,14 @@ const list unescapeArgs(const list& args) { const value queryArg(const string& s) { debug(s, "httpd::queryArg::string"); const list t = tokenize("=", s); - if (isNil(cdr(t))) + if (isNull(cdr(t))) return mklist(c_str(car(t)), emptyString); return mklist(c_str(car(t)), cadr(t)); } const string fixupQueryArgs(const string& a) { const list t = tokenize("?", a); - if (isNil(t) || isNil(cdr(t))) + if (isNull(t) || isNull(cdr(t))) return a; return join("&", t); } @@ -376,7 +376,7 @@ const list queryArgs(const request_rec* const r) { * Converts the args received in a POST to a list of key value pairs. */ const list postArgs(const list& a) { - if (isNil(a)) + if (isNull(a)) return nilListValue; const list l = car(a); return cons(l, postArgs(cdr(a))); -- cgit v1.2.3