refactor(string): refactor string conversion but not fully tested

This commit is contained in:
2024-11-13 22:41:44 +08:00
parent 646d0cb7a4
commit 1c0c93ee25
4 changed files with 887 additions and 381 deletions

View File

@ -1296,7 +1296,7 @@ public:
{
TStringView<ElementType> View = *this;
bool Result = View.ToBool();
bool Result = View.ToBoolAndTrim();
size_t TrimNum = this->Num() - View.Num();
@ -1311,7 +1311,7 @@ public:
{
TStringView<ElementType> View = *this;
U Result = View.template ToInt<U>(Base);
U Result = View.template ToIntAndTrim<U>(Base);
size_t TrimNum = this->Num() - View.Num();
@ -1326,7 +1326,7 @@ public:
{
TStringView<ElementType> View = *this;
U Result = View.template ToFloat<U>(bFixed, bScientific);
U Result = View.template ToFloatAndTrim<U>(bFixed, bScientific);
size_t TrimNum = this->Num() - View.Num();