Changeset 1237
- Timestamp:
- 07/20/08 20:39:38 (4 months ago)
- Files:
-
- trunk/pdns/pdns/arguments.cc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pdns/pdns/arguments.cc
r822 r1237 1 1 /* 2 2 PowerDNS Versatile Database Driven Nameserver 3 Copyright (C) 2002 - 200 6PowerDNS.COM BV3 Copyright (C) 2002 - 2008 PowerDNS.COM BV 4 4 5 5 This program is free software; you can redistribute it and/or modify … … 16 16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 17 */ 18 19 20 21 18 #include "arguments.hh" 19 #include <boost/algorithm/string.hpp> 20 using namespace boost; 22 21 23 22 const ArgvMap::param_t::const_iterator ArgvMap::begin() … … 260 259 261 260 while(getline(f,pline)) { 262 chomp(pline," \t\r\n"); // strip trailing white spaces263 261 trim_right(pline); 262 264 263 if(pline[pline.size()-1]=='\\') { 265 264 line+=pline.substr(0,pline.length()-1); … … 274 273 275 274 // strip trailing spaces 276 chomp(line," \t");275 trim_right(line); 277 276 278 277 // strip leading spaces … … 302 301 303 302 while(getline(f,pline)) { 304 chomp(pline," \t\r\n"); // strip trailing white spaces303 trim_right(pline); 305 304 if(pline.empty()) 306 305 continue; … … 319 318 320 319 // strip trailing spaces 321 chomp(line," \t"); 322 320 trim_right(line); 323 321 // strip leading spaces 324 322 if((pos=line.find_first_not_of(" \t\r\n"))!=string::npos)