Преглед изворни кода

Harden security within boxing module

Patrick-Christopher Mattulat пре 1 дан
родитељ
комит
e359fdc927

+ 12 - 12
source/ls-std/boxing/Boolean.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-09
- * Changed:         2023-05-17
+ * Changed:         2025-12-21
  *
  * */
 
@@ -17,21 +17,21 @@ using ls::std::core::IllegalArgumentException;
 using std::string;
 using std::transform;
 
-Boolean::Boolean(bool _value) : Class(Boolean::_fetchClassName()), value(_value)
+Boolean::Boolean(const bool _value) : Class(_fetchClassName()), value(_value)
 {}
 
-Boolean::Boolean() : Class(Boolean::_fetchClassName())
+Boolean::Boolean() : Class(_fetchClassName())
 {}
 
 Boolean::~Boolean() noexcept = default;
 
-Boolean &Boolean::operator=(int _value)
+Boolean &Boolean::operator=(const int _value)
 {
   this->value = _value;
   return *this;
 }
 
-Boolean &Boolean::operator=(bool _value)
+Boolean &Boolean::operator=(const bool _value)
 {
   this->value = _value;
   return *this;
@@ -42,12 +42,12 @@ bool Boolean::operator&&(const Boolean &_boolean) const
   return this->value && _boolean.getValue();
 }
 
-bool Boolean::operator&&(bool _value) const
+bool Boolean::operator&&(const bool _value) const
 {
   return this->value && _value;
 }
 
-bool Boolean::operator&&(int _value) const
+bool Boolean::operator&&(const int _value) const
 {
   return this->value && _value;
 }
@@ -57,12 +57,12 @@ bool Boolean::operator||(const Boolean &_boolean) const
   return this->value || _boolean.getValue();
 }
 
-bool Boolean::operator||(bool _value) const
+bool Boolean::operator||(const bool _value) const
 {
   return this->value || _value;
 }
 
-bool Boolean::operator||(int _value) const
+bool Boolean::operator||(const int _value) const
 {
   return this->value || _value;
 }
@@ -105,17 +105,17 @@ bool Boolean::XOR(const Boolean &_leftExpression, const Boolean &_rightExpressio
   return (_leftExpression && !_rightExpression) || (!_leftExpression && _rightExpression.getValue());
 }
 
-bool Boolean::XOR(const Boolean &_leftExpression, bool _rightExpression)
+bool Boolean::XOR(const Boolean &_leftExpression, const bool _rightExpression)
 {
   return (_leftExpression && !_rightExpression) || (!_leftExpression && _rightExpression);
 }
 
-bool Boolean::XOR(bool _leftExpression, const Boolean &_rightExpression)
+bool Boolean::XOR(const bool _leftExpression, const Boolean &_rightExpression)
 {
   return (_leftExpression && !_rightExpression) || (!_leftExpression && _rightExpression.getValue());
 }
 
-bool Boolean::XOR(bool _leftExpression, bool _rightExpression)
+bool Boolean::XOR(const bool _leftExpression, const bool _rightExpression)
 {
   return (_leftExpression && !_rightExpression) || (!_leftExpression && _rightExpression);
 }

+ 19 - 19
source/ls-std/boxing/Double.cpp

@@ -19,19 +19,19 @@ using std::stod;
 using std::string;
 using std::to_string;
 
-Double::Double() : Class(Double::_fetchClassName())
+Double::Double() : Class(_fetchClassName())
 {
   this->_assignEpsilon(0.00000001);
 }
 
-Double::Double(double _value) : Class(Double::_fetchClassName()), value(_value)
+Double::Double(const double _value) : Class(_fetchClassName()), value(_value)
 {
   this->_assignEpsilon(0.00000001);
 }
 
 Double::~Double() noexcept = default;
 
-Double &Double::operator=(double _value)
+Double &Double::operator=(const double _value)
 {
   this->value = _value;
   return *this;
@@ -47,7 +47,7 @@ double Double::operator+(const Double &_double) const
   return this->value + _double.getValue();
 }
 
-double Double::operator+(double _value) const
+double Double::operator+(const double _value) const
 {
   return this->value + _value;
 }
@@ -57,7 +57,7 @@ double Double::operator*(const Double &_double) const
   return this->value * _double.getValue();
 }
 
-double Double::operator*(double _value) const
+double Double::operator*(const double _value) const
 {
   return this->value * _value;
 }
@@ -67,7 +67,7 @@ double Double::operator-(const Double &_double) const
   return this->value - _double.getValue();
 }
 
-double Double::operator-(double _value) const
+double Double::operator-(const double _value) const
 {
   return this->value - _value;
 }
@@ -77,7 +77,7 @@ double Double::operator/(const Double &_double) const
   return this->value / _double.getValue();
 }
 
-double Double::operator/(double _value) const
+double Double::operator/(const double _value) const
 {
   return this->value / _value;
 }
@@ -88,7 +88,7 @@ Double &Double::operator+=(const Double &_double)
   return *this;
 }
 
-Double &Double::operator+=(double _value)
+Double &Double::operator+=(const double _value)
 {
   this->value += _value;
   return *this;
@@ -100,7 +100,7 @@ Double &Double::operator-=(const Double &_double)
   return *this;
 }
 
-Double &Double::operator-=(double _value)
+Double &Double::operator-=(const double _value)
 {
   this->value -= _value;
   return *this;
@@ -112,7 +112,7 @@ Double &Double::operator*=(const Double &_double)
   return *this;
 }
 
-Double &Double::operator*=(double _value)
+Double &Double::operator*=(const double _value)
 {
   this->value *= _value;
   return *this;
@@ -124,7 +124,7 @@ Double &Double::operator/=(const Double &_double)
   return *this;
 }
 
-Double &Double::operator/=(double _value)
+Double &Double::operator/=(const double _value)
 {
   this->value /= _value;
   return *this;
@@ -135,7 +135,7 @@ bool Double::operator==(const Double &_double) const
   return fabs(this->value - _double.getValue()) < this->epsilon;
 }
 
-bool Double::operator==(double _value) const
+bool Double::operator==(const double _value) const
 {
   return fabs(this->value - _value) < this->epsilon;
 }
@@ -145,7 +145,7 @@ bool Double::operator!=(const Double &_double) const
   return fabs(this->value - _double.getValue()) >= this->epsilon;
 }
 
-bool Double::operator!=(double _value) const
+bool Double::operator!=(const double _value) const
 {
   return fabs(this->value - _value) >= this->epsilon;
 }
@@ -155,7 +155,7 @@ bool Double::operator>(const Double &_double) const
   return this->value > _double.getValue();
 }
 
-bool Double::operator>(double _value) const
+bool Double::operator>(const double _value) const
 {
   return this->value > _value;
 }
@@ -165,7 +165,7 @@ bool Double::operator>=(const Double &_double) const
   return this->value >= _double.getValue();
 }
 
-bool Double::operator>=(double _value) const
+bool Double::operator>=(const double _value) const
 {
   return this->value >= _value;
 }
@@ -175,7 +175,7 @@ bool Double::operator<(const Double &_double) const
   return this->value < _double.getValue();
 }
 
-bool Double::operator<(double _value) const
+bool Double::operator<(const double _value) const
 {
   return this->value < _value;
 }
@@ -185,7 +185,7 @@ bool Double::operator<=(const Double &_double) const
   return this->value <= _double.getValue();
 }
 
-bool Double::operator<=(double _value) const
+bool Double::operator<=(const double _value) const
 {
   return this->value <= _value;
 }
@@ -220,12 +220,12 @@ double Double::getValue() const
   return this->value;
 }
 
-void Double::setEpsilon(double _epsilon)
+void Double::setEpsilon(const double _epsilon)
 {
   this->_assignEpsilon(_epsilon);
 }
 
-void Double::_assignEpsilon(double _epsilon)
+void Double::_assignEpsilon(const double _epsilon)
 {
   if (_epsilon <= 0.0)
   {

+ 19 - 19
source/ls-std/boxing/Float.cpp

@@ -19,15 +19,15 @@ using std::stof;
 using std::string;
 using std::to_string;
 
-Float::Float() : Class(Float::_fetchClassName()), epsilon(0.00001F)
+Float::Float() : Class(_fetchClassName()), epsilon(0.00001F)
 {}
 
-Float::Float(float _value) : Class(Float::_fetchClassName()), epsilon(0.00001f), value(_value)
+Float::Float(const float _value) : Class(_fetchClassName()), epsilon(0.00001f), value(_value)
 {}
 
 Float::~Float() noexcept = default;
 
-Float &Float::operator=(float _value)
+Float &Float::operator=(const float _value)
 {
   this->value = _value;
   return *this;
@@ -43,7 +43,7 @@ float Float::operator+(const Float &_float) const
   return this->value + _float.getValue();
 }
 
-float Float::operator+(float _value) const
+float Float::operator+(const float _value) const
 {
   return this->value + _value;
 }
@@ -53,7 +53,7 @@ float Float::operator*(const Float &_float) const
   return this->value * _float.getValue();
 }
 
-float Float::operator*(float _value) const
+float Float::operator*(const float _value) const
 {
   return this->value * _value;
 }
@@ -63,7 +63,7 @@ float Float::operator-(const Float &_float) const
   return this->value - _float.getValue();
 }
 
-float Float::operator-(float _value) const
+float Float::operator-(const float _value) const
 {
   return this->value - _value;
 }
@@ -73,7 +73,7 @@ float Float::operator/(const Float &_float) const
   return this->value / _float.getValue();
 }
 
-float Float::operator/(float _value) const
+float Float::operator/(const float _value) const
 {
   return this->value / _value;
 }
@@ -84,7 +84,7 @@ Float &Float::operator+=(const Float &_float)
   return *this;
 }
 
-Float &Float::operator+=(float _value)
+Float &Float::operator+=(const float _value)
 {
   this->value += _value;
   return *this;
@@ -96,7 +96,7 @@ Float &Float::operator-=(const Float &_float)
   return *this;
 }
 
-Float &Float::operator-=(float _value)
+Float &Float::operator-=(const float _value)
 {
   this->value -= _value;
   return *this;
@@ -108,7 +108,7 @@ Float &Float::operator*=(const Float &_float)
   return *this;
 }
 
-Float &Float::operator*=(float _value)
+Float &Float::operator*=(const float _value)
 {
   this->value *= _value;
   return *this;
@@ -120,7 +120,7 @@ Float &Float::operator/=(const Float &_float)
   return *this;
 }
 
-Float &Float::operator/=(float _value)
+Float &Float::operator/=(const float _value)
 {
   this->value /= _value;
   return *this;
@@ -131,7 +131,7 @@ bool Float::operator==(const Float &_float) const
   return fabs(this->value - _float.getValue()) < this->epsilon;
 }
 
-bool Float::operator==(float _value) const
+bool Float::operator==(const float _value) const
 {
   return fabs(this->value - _value) < this->epsilon;
 }
@@ -141,7 +141,7 @@ bool Float::operator!=(const Float &_float) const
   return fabs(this->value - _float.getValue()) >= this->epsilon;
 }
 
-bool Float::operator!=(float _value) const
+bool Float::operator!=(const float _value) const
 {
   return fabs(this->value - _value) >= this->epsilon;
 }
@@ -151,7 +151,7 @@ bool Float::operator>(const Float &_float) const
   return this->value > _float.getValue();
 }
 
-bool Float::operator>(float _value) const
+bool Float::operator>(const float _value) const
 {
   return this->value > _value;
 }
@@ -161,7 +161,7 @@ bool Float::operator>=(const Float &_float) const
   return this->value >= _float.getValue();
 }
 
-bool Float::operator>=(float _value) const
+bool Float::operator>=(const float _value) const
 {
   return this->value >= _value;
 }
@@ -171,7 +171,7 @@ bool Float::operator<(const Float &_float) const
   return this->value < _float.getValue();
 }
 
-bool Float::operator<(float _value) const
+bool Float::operator<(const float _value) const
 {
   return this->value < _value;
 }
@@ -181,7 +181,7 @@ bool Float::operator<=(const Float &_float) const
   return this->value <= _float.getValue();
 }
 
-bool Float::operator<=(float _value) const
+bool Float::operator<=(const float _value) const
 {
   return this->value <= _value;
 }
@@ -216,12 +216,12 @@ float Float::getValue() const
   return this->value;
 }
 
-void Float::setEpsilon(float _epsilon)
+void Float::setEpsilon(const float _epsilon)
 {
   this->_assignEpsilon(_epsilon);
 }
 
-void Float::_assignEpsilon(float _epsilon)
+void Float::_assignEpsilon(const float _epsilon)
 {
   if (_epsilon <= 0.0f)
   {

+ 19 - 19
source/ls-std/boxing/Integer.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-07
- * Changed:         2023-05-17
+ * Changed:         2025-12-21
  *
  * */
 
@@ -17,15 +17,15 @@ using std::stoi;
 using std::string;
 using std::to_string;
 
-Integer::Integer(int _value) : Class(Integer::_fetchClassName()), value(_value)
+Integer::Integer(const int _value) : Class(_fetchClassName()), value(_value)
 {}
 
-Integer::Integer() : Class(Integer::_fetchClassName())
+Integer::Integer() : Class(_fetchClassName())
 {}
 
 Integer::~Integer() noexcept = default;
 
-Integer &Integer::operator=(int _value)
+Integer &Integer::operator=(const int _value)
 {
   this->value = _value;
   return *this;
@@ -41,7 +41,7 @@ int Integer::operator+(const Integer &_integer) const
   return this->value + _integer.getValue();
 }
 
-int Integer::operator+(int _value) const
+int Integer::operator+(const int _value) const
 {
   return this->value + _value;
 }
@@ -51,7 +51,7 @@ int Integer::operator*(const Integer &_integer) const
   return this->value * _integer.getValue();
 }
 
-int Integer::operator*(int _value) const
+int Integer::operator*(const int _value) const
 {
   return this->value * _value;
 }
@@ -61,7 +61,7 @@ int Integer::operator-(const Integer &_integer) const
   return this->value - _integer.getValue();
 }
 
-int Integer::operator-(int _value) const
+int Integer::operator-(const int _value) const
 {
   return this->value - _value;
 }
@@ -76,7 +76,7 @@ int Integer::operator/(const Integer &_integer) const
   return this->value / _integer.getValue();
 }
 
-int Integer::operator/(int _value) const
+int Integer::operator/(const int _value) const
 {
   if (_value == 0)
   {
@@ -91,7 +91,7 @@ int Integer::operator%(const Integer &_integer) const
   return this->value % _integer.getValue();
 }
 
-int Integer::operator%(int _value) const
+int Integer::operator%(const int _value) const
 {
   return this->value % _value;
 }
@@ -102,7 +102,7 @@ Integer &Integer::operator+=(const Integer &_integer)
   return *this;
 }
 
-Integer &Integer::operator+=(int _value)
+Integer &Integer::operator+=(const int _value)
 {
   this->value += _value;
   return *this;
@@ -114,7 +114,7 @@ Integer &Integer::operator-=(const Integer &_integer)
   return *this;
 }
 
-Integer &Integer::operator-=(int _value)
+Integer &Integer::operator-=(const int _value)
 {
   this->value -= _value;
   return *this;
@@ -126,7 +126,7 @@ Integer &Integer::operator*=(const Integer &_integer)
   return *this;
 }
 
-Integer &Integer::operator*=(int _value)
+Integer &Integer::operator*=(const int _value)
 {
   this->value *= _value;
   return *this;
@@ -143,7 +143,7 @@ Integer &Integer::operator/=(const Integer &_integer)
   return *this;
 }
 
-Integer &Integer::operator/=(int _value)
+Integer &Integer::operator/=(const int _value)
 {
   if (_value == 0)
   {
@@ -159,7 +159,7 @@ bool Integer::operator==(const Integer &_integer) const
   return this->value == _integer.getValue();
 }
 
-bool Integer::operator==(int _value) const
+bool Integer::operator==(const int _value) const
 {
   return this->value == _value;
 }
@@ -169,7 +169,7 @@ bool Integer::operator!=(const Integer &_integer) const
   return this->value != _integer.getValue();
 }
 
-bool Integer::operator!=(int _value) const
+bool Integer::operator!=(const int _value) const
 {
   return this->value != _value;
 }
@@ -179,7 +179,7 @@ bool Integer::operator>(const Integer &_integer) const
   return this->value > _integer.getValue();
 }
 
-bool Integer::operator>(int _value) const
+bool Integer::operator>(const int _value) const
 {
   return this->value > _value;
 }
@@ -189,7 +189,7 @@ bool Integer::operator>=(const Integer &_integer) const
   return this->value >= _integer.getValue();
 }
 
-bool Integer::operator>=(int _value) const
+bool Integer::operator>=(const int _value) const
 {
   return this->value >= _value;
 }
@@ -199,7 +199,7 @@ bool Integer::operator<(const Integer &_integer) const
   return this->value < _integer.getValue();
 }
 
-bool Integer::operator<(int _value) const
+bool Integer::operator<(const int _value) const
 {
   return this->value < _value;
 }
@@ -209,7 +209,7 @@ bool Integer::operator<=(const Integer &_integer) const
   return this->value <= _integer.getValue();
 }
 
-bool Integer::operator<=(int _value) const
+bool Integer::operator<=(const int _value) const
 {
   return this->value <= _value;
 }

+ 19 - 19
source/ls-std/boxing/Long.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-17
- * Changed:         2023-05-17
+ * Changed:         2025-12-21
  *
  * */
 
@@ -18,15 +18,15 @@ using std::stoll;
 using std::string;
 using std::to_string;
 
-Long::Long(long_type _value) : Class(Long::_fetchClassName()), value(_value)
+Long::Long(const long_type _value) : Class(_fetchClassName()), value(_value)
 {}
 
-Long::Long() : Class(Long::_fetchClassName())
+Long::Long() : Class(_fetchClassName())
 {}
 
 Long::~Long() noexcept = default;
 
-Long &Long::operator=(long_type _value)
+Long &Long::operator=(const long_type _value)
 {
   this->value = _value;
   return *this;
@@ -42,7 +42,7 @@ long_type Long::operator+(const Long &_long) const
   return this->value + _long.getValue();
 }
 
-long_type Long::operator+(long_type _value) const
+long_type Long::operator+(const long_type _value) const
 {
   return this->value + _value;
 }
@@ -52,7 +52,7 @@ long_type Long::operator*(const Long &_long) const
   return this->value * _long.getValue();
 }
 
-long_type Long::operator*(long_type _value) const
+long_type Long::operator*(const long_type _value) const
 {
   return this->value * _value;
 }
@@ -62,7 +62,7 @@ long_type Long::operator-(const Long &_long) const
   return this->value - _long.getValue();
 }
 
-long_type Long::operator-(long_type _value) const
+long_type Long::operator-(const long_type _value) const
 {
   return this->value - _value;
 }
@@ -77,7 +77,7 @@ long_type Long::operator/(const Long &_long) const
   return this->value / _long.getValue();
 }
 
-long_type Long::operator/(long_type _value) const
+long_type Long::operator/(const long_type _value) const
 {
   if (_value == 0)
   {
@@ -92,7 +92,7 @@ long_type Long::operator%(const Long &_long) const
   return this->value % _long.getValue();
 }
 
-long_type Long::operator%(long_type _value) const
+long_type Long::operator%(const long_type _value) const
 {
   return this->value % _value;
 }
@@ -103,7 +103,7 @@ Long &Long::operator+=(const Long &_long)
   return *this;
 }
 
-Long &Long::operator+=(long_type _value)
+Long &Long::operator+=(const long_type _value)
 {
   this->value += _value;
   return *this;
@@ -115,7 +115,7 @@ Long &Long::operator-=(const Long &_long)
   return *this;
 }
 
-Long &Long::operator-=(long_type _value)
+Long &Long::operator-=(const long_type _value)
 {
   this->value -= _value;
   return *this;
@@ -127,7 +127,7 @@ Long &Long::operator*=(const Long &_long)
   return *this;
 }
 
-Long &Long::operator*=(long_type _value)
+Long &Long::operator*=(const long_type _value)
 {
   this->value *= _value;
   return *this;
@@ -144,7 +144,7 @@ Long &Long::operator/=(const Long &_long)
   return *this;
 }
 
-Long &Long::operator/=(long_type _value)
+Long &Long::operator/=(const long_type _value)
 {
   if (_value == 0)
   {
@@ -160,7 +160,7 @@ bool Long::operator==(const Long &_long) const
   return this->value == _long.getValue();
 }
 
-bool Long::operator==(long_type _value) const
+bool Long::operator==(const long_type _value) const
 {
   return this->value == _value;
 }
@@ -170,7 +170,7 @@ bool Long::operator!=(const Long &_long) const
   return this->value != _long.getValue();
 }
 
-bool Long::operator!=(long_type _value) const
+bool Long::operator!=(const long_type _value) const
 {
   return this->value != _value;
 }
@@ -180,7 +180,7 @@ bool Long::operator>(const Long &_long) const
   return this->value > _long.getValue();
 }
 
-bool Long::operator>(long_type _value) const
+bool Long::operator>(const long_type _value) const
 {
   return this->value > _value;
 }
@@ -190,7 +190,7 @@ bool Long::operator>=(const Long &_long) const
   return this->value >= _long.getValue();
 }
 
-bool Long::operator>=(long_type _value) const
+bool Long::operator>=(const long_type _value) const
 {
   return this->value >= _value;
 }
@@ -200,7 +200,7 @@ bool Long::operator<(const Long &_long) const
   return this->value < _long.getValue();
 }
 
-bool Long::operator<(long_type _value) const
+bool Long::operator<(const long_type _value) const
 {
   return this->value < _value;
 }
@@ -210,7 +210,7 @@ bool Long::operator<=(const Long &_long) const
   return this->value <= _long.getValue();
 }
 
-bool Long::operator<=(long_type _value) const
+bool Long::operator<=(const long_type _value) const
 {
   return this->value <= _value;
 }

+ 13 - 13
source/ls-std/boxing/String.cpp

@@ -51,9 +51,9 @@ string String::operator+(const char *_string) const
   return this->value + _string;
 }
 
-string String::operator-(string::size_type _number) const
+string String::operator-(const string::size_type _number) const
 {
-  string copy = this->value;
+  const string copy = this->value;
   return copy.substr(0, copy.size() - _number);
 }
 
@@ -74,7 +74,7 @@ bool String::operator==(String _string) const
   return this->value == _string.toString();
 }
 
-bool String::operator==(string_view _value) const
+bool String::operator==(const string_view _value) const
 {
   return this->value == _value;
 }
@@ -89,7 +89,7 @@ bool String::operator!=(String _string) const
   return this->value != _string.toString();
 }
 
-bool String::operator!=(string_view _value) const
+bool String::operator!=(const string_view _value) const
 {
   return this->value != _value;
 }
@@ -109,12 +109,12 @@ string String::toString()
   return this->value;
 }
 
-bool String::contains(string_view _text) const
+bool String::contains(const string_view _text) const
 {
   return this->value.find(_text) != string::npos;
 }
 
-bool String::endsWith(string_view _text) const
+bool String::endsWith(const string_view _text) const
 {
   return this->value.rfind(_text) == (this->value.size() - _text.size());
 }
@@ -137,12 +137,12 @@ vector<byte_type> String::getByteData()
   return byteData;
 }
 
-string String::padLeft(size_t _width, const char _fillCharacter) const
+string String::padLeft(const size_t _width, const char _fillCharacter) const
 {
   return String::_createFillContent(this->value, _width, _fillCharacter) + this->value;
 }
 
-string String::padRight(size_t _width, const char _fillCharacter) const
+string String::padRight(const size_t _width, const char _fillCharacter) const
 {
   return this->value + String::_createFillContent(this->value, _width, _fillCharacter);
 }
@@ -155,7 +155,7 @@ string String::reverse() const
   return copy;
 }
 
-bool String::startsWith(string_view _text) const
+bool String::startsWith(const string_view _text) const
 {
   return this->value.rfind(_text, 0) == 0;
 }
@@ -176,7 +176,7 @@ string String::toUpperCase() const
   return copy;
 }
 
-string String::_buildCharacterChain(size_t _amount, const char _fillCharacter)
+string String::_buildCharacterChain(const size_t _amount, const char _fillCharacter)
 {
   string fillContent{};
 
@@ -188,14 +188,14 @@ string String::_buildCharacterChain(size_t _amount, const char _fillCharacter)
   return fillContent;
 }
 
-string String::_createFillContent(string_view _text, size_t _width, const char _fillCharacter)
+string String::_createFillContent(const string_view _text, const size_t _width, const char _fillCharacter)
 {
-  size_t fillSize = _text.size() > _width ? 0 : _width - _text.size();
+  const size_t fillSize = _text.size() > _width ? 0 : _width - _text.size();
   string fillContent{};
 
   if (fillSize > 0)
   {
-    fillContent = String::_buildCharacterChain(fillSize, _fillCharacter);
+    fillContent = _buildCharacterChain(fillSize, _fillCharacter);
   }
 
   return fillContent;