ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FeepingCreaturism/Environment.cpp
(Generate patch)

Comparing FeepingCreaturism/Environment.cpp (file contents):
Revision 202 by Douglas Thrift, 2004-08-27T01:21:18-07:00 vs.
Revision 203 by Douglas Thrift, 2004-09-01T02:10:19-07:00

# Line 6 | Line 6
6  
7   #include "Environment.hpp"
8  
9 < std::string Environment::get(const std::string& name) const
9 > ext::String Environment::get(const ext::String& name) const
10   {
11          char* value(getenv(name.c_str()));
12  
13          return value != NULL ? value : "";
14   }
15  
16 < int Environment::set(const std::string& name, const std::string& value,
16 > int Environment::set(const ext::String& name, const ext::String& value,
17          bool overwrite)
18   {
19          return setenv(name.c_str(), value.c_str(), overwrite);
20   }
21  
22 < int Environment::put(const std::string& env)
22 > int Environment::put(const ext::String& env)
23   {
24          std::istringstream input(env);
25          std::string name, value;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines