Bläddra i källkod

Introduced naming convention in IBoxing interface

Patrick 4 år sedan
förälder
incheckning
ad6c6abdff

+ 6 - 6
source/boxing/Boolean.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-09
- * Changed:         2020-08-14
+ * Changed:         2020-08-16
  *
  * */
 
@@ -65,18 +65,18 @@ bool ls_std::Boolean::operator||(int _value) const
   return this->value || _value;
 }
 
-void ls_std::Boolean::parse(std::string parseText)
+void ls_std::Boolean::parse(std::string _parseText)
 {
-  std::transform(parseText.begin(), parseText.end(), parseText.begin(), ::tolower);
+  std::transform(_parseText.begin(), _parseText.end(), _parseText.begin(), ::tolower);
 
-  if(parseText != this->TRUE_STRING && parseText != this->FALSE_STRING) {
+  if(_parseText != this->TRUE_STRING && _parseText != this->FALSE_STRING) {
     throw ls_std::IllegalArgumentException {};
   } else {
-    if(parseText == this->TRUE_STRING) {
+    if(_parseText == this->TRUE_STRING) {
       this->value = true;
     }
 
-    if(parseText == this->FALSE_STRING) {
+    if(_parseText == this->FALSE_STRING) {
       this->value = false;
     }
   }

+ 1 - 1
source/boxing/Boolean.hpp

@@ -53,7 +53,7 @@ namespace ls_std {
 
       // implementation
 
-      void parse(std::string parseText) override;
+      void parse(std::string _parseText) override;
       std::string toString() override;
 
       // additional functionality

+ 3 - 3
source/boxing/Double.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-14
- * Changed:         2020-08-14
+ * Changed:         2020-08-16
  *
  * */
 
@@ -160,8 +160,8 @@ void ls_std::Double::operator--() {
   this->value -= 1.0f;
 }
 
-void ls_std::Double::parse(std::string parseText) {
-  this->value = std::stod(parseText);
+void ls_std::Double::parse(std::string _parseText) {
+  this->value = std::stod(_parseText);
 }
 
 std::string ls_std::Double::toString() {

+ 2 - 2
source/boxing/Double.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-14
- * Changed:         2020-08-14
+ * Changed:         2020-08-16
  *
  * */
 
@@ -74,7 +74,7 @@ namespace ls_std {
 
       // implementation
 
-      void parse(std::string parseText) override;
+      void parse(std::string _parseText) override;
       std::string toString() override;
 
       // additional functionality

+ 3 - 3
source/boxing/Float.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-14
- * Changed:         2020-08-14
+ * Changed:         2020-08-16
  *
  * */
 
@@ -160,8 +160,8 @@ void ls_std::Float::operator--() {
   this->value -= 1.0f;
 }
 
-void ls_std::Float::parse(std::string parseText) {
-  this->value = std::stof(parseText);
+void ls_std::Float::parse(std::string _parseText) {
+  this->value = std::stof(_parseText);
 }
 
 std::string ls_std::Float::toString() {

+ 2 - 2
source/boxing/Float.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-14
- * Changed:         2020-08-14
+ * Changed:         2020-08-16
  *
  * */
 
@@ -74,7 +74,7 @@ namespace ls_std {
 
       // implementation
 
-      void parse(std::string parseText) override;
+      void parse(std::string _parseText) override;
       std::string toString() override;
 
       // additional functionality

+ 2 - 2
source/boxing/IBoxing.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-07
- * Changed:         2020-08-09
+ * Changed:         2020-08-16
  *
  * */
 
@@ -19,7 +19,7 @@ namespace ls_std {
       IBoxing() = default;
       ~IBoxing() = default;
 
-      virtual void parse(std::string parseText) = 0;
+      virtual void parse(std::string _parseText) = 0;
       virtual std::string toString() = 0;
   };
 }

+ 3 - 3
source/boxing/Integer.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-07
- * Changed:         2020-08-15
+ * Changed:         2020-08-16
  *
  * */
 
@@ -247,9 +247,9 @@ void ls_std::Integer::operator--()
   this->value -= 1;
 }
 
-void ls_std::Integer::parse(std::string parseText)
+void ls_std::Integer::parse(std::string _parseText)
 {
-  this->value = std::stoi(parseText);
+  this->value = std::stoi(_parseText);
 }
 
 std::string ls_std::Integer::toString()

+ 2 - 2
source/boxing/Integer.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-07
- * Changed:         2020-08-14
+ * Changed:         2020-08-16
  *
  * */
 
@@ -102,7 +102,7 @@ namespace ls_std {
 
       // implementation
 
-      void parse(std::string parseText) override;
+      void parse(std::string _parseText) override;
       std::string toString() override;
 
       // additional functionality

+ 4 - 4
source/boxing/String.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-14
- * Changed:         2020-08-14
+ * Changed:         2020-08-16
  *
  * */
 
@@ -45,7 +45,7 @@ std::string ls_std::String::operator+(const char *_string) const {
 
 std::string ls_std::String::operator-(int _number) {
   std::string copy = this->value;
-  return copy.substr(0, copy.size() - _number);;
+  return copy.substr(0, copy.size() - _number);
 }
 
 ls_std::String & ls_std::String::operator+=(String _string) {
@@ -82,8 +82,8 @@ bool ls_std::String::operator!=(const char *_value) {
   return this->value != _value;
 }
 
-void ls_std::String::parse(std::string parseText) {
-  this->value = std::move(parseText);
+void ls_std::String::parse(std::string _parseText) {
+  this->value = std::move(_parseText);
 }
 
 std::string ls_std::String::toString() {

+ 2 - 2
source/boxing/String.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-14
- * Changed:         2020-08-14
+ * Changed:         2020-08-16
  *
  * */
 
@@ -54,7 +54,7 @@ namespace ls_std {
 
       // implementation
 
-      void parse(std::string parseText) override;
+      void parse(std::string _parseText) override;
       std::string toString() override;
 
       // additional functionality