Import upstream 0.7.1
[manu/suphp.git] / src / CommandLine.cpp
index 6215a8f..602d773 100644 (file)
@@ -38,20 +38,20 @@ int suPHP::CommandLine::count() const {
 std::string suPHP::CommandLine::getArgument(int pos) const
     throw (OutOfRangeException) {
     if (pos >= this->arguments.size() || pos < 0) {
 std::string suPHP::CommandLine::getArgument(int pos) const
     throw (OutOfRangeException) {
     if (pos >= this->arguments.size() || pos < 0) {
-       throw OutOfRangeException("Index out of range", __FILE__, __LINE__);
+        throw OutOfRangeException("Index out of range", __FILE__, __LINE__);
     }
     try {
     }
     try {
-       return this->arguments[pos];
+        return this->arguments[pos];
     } catch (std::out_of_range& e) {
     } catch (std::out_of_range& e) {
-       throw OutOfRangeException("Index out of range", __FILE__, __LINE__);
+        throw OutOfRangeException("Index out of range", __FILE__, __LINE__);
     }
 }
 
 void suPHP::CommandLine::setArgument(int pos, std::string arg) {
     if (pos >= this->arguments.size()) {
     }
 }
 
 void suPHP::CommandLine::setArgument(int pos, std::string arg) {
     if (pos >= this->arguments.size()) {
-       for (int i=0; i<(this->arguments.size() - pos); i++) {
-           this->arguments.push_back(std::string(""));
-       }
+        for (int i=0; i<(this->arguments.size() - pos); i++) {
+            this->arguments.push_back(std::string(""));
+        }
     }
     this->arguments[pos] = arg;
 }
     }
     this->arguments[pos] = arg;
 }
@@ -63,12 +63,12 @@ void suPHP::CommandLine::putArgument(std::string arg) {
 std::string& suPHP::CommandLine::operator[](int index) 
     throw (OutOfRangeException) {
     if (index >= this->arguments.size() || index < 0) {
 std::string& suPHP::CommandLine::operator[](int index) 
     throw (OutOfRangeException) {
     if (index >= this->arguments.size() || index < 0) {
-       throw OutOfRangeException("Index out of range", __FILE__, __LINE__);
+        throw OutOfRangeException("Index out of range", __FILE__, __LINE__);
     }
     try {
     }
     try {
-       return this->arguments[index];
+        return this->arguments[index];
     } catch (std::out_of_range& ex) {
     } catch (std::out_of_range& ex) {
-       throw OutOfRangeException("Index out of range", __FILE__, __LINE__);
+        throw OutOfRangeException("Index out of range", __FILE__, __LINE__);
     }
 }
 
     }
 }