diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-10-17 08:37:30 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-10-17 08:37:30 +0800 |
commit | 3c8d5c8f732239a8b50418be27464e30b9dddeae (patch) | |
tree | 8ffb46c18e48c8463c1fb16fcacf216f296b8a1f /src/base/StringToNumberConverter.cpp | |
parent | 37943858b3b260589b5dc222bb5184d2846fb6dc (diff) | |
download | cru-3c8d5c8f732239a8b50418be27464e30b9dddeae.tar.gz cru-3c8d5c8f732239a8b50418be27464e30b9dddeae.tar.bz2 cru-3c8d5c8f732239a8b50418be27464e30b9dddeae.zip |
Exception remove string.
Diffstat (limited to 'src/base/StringToNumberConverter.cpp')
-rw-r--r-- | src/base/StringToNumberConverter.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/base/StringToNumberConverter.cpp b/src/base/StringToNumberConverter.cpp index 65aec48e..f7516630 100644 --- a/src/base/StringToNumberConverter.cpp +++ b/src/base/StringToNumberConverter.cpp @@ -34,7 +34,7 @@ StringToIntegerResult StringToIntegerConverter::Parse( *processed_characters_count = 0; } if (throw_on_error) { - throw Exception(u"Empty string (after reading leading spaces)."); + throw Exception("Empty string (after reading leading spaces)."); } else { return {false, 0}; } @@ -54,7 +54,7 @@ StringToIntegerResult StringToIntegerConverter::Parse( *processed_characters_count = 0; } if (throw_on_error) { - throw Exception(u"Empty string (after reading sign)."); + throw Exception("Empty string (after reading sign)."); } else { return {false, 0}; } @@ -89,7 +89,7 @@ StringToIntegerResult StringToIntegerConverter::Parse( *processed_characters_count = 0; } if (throw_on_error) { - throw Exception(u"Empty string (after reading head base indicator)."); + throw Exception("Empty string (after reading head base indicator)."); } else { return {false, 0}; } @@ -136,7 +136,7 @@ StringToIntegerResult StringToIntegerConverter::Parse( *processed_characters_count = 0; } if (throw_on_error) { - throw Exception(String(u"Read invalid character '") + c + u"'."); + throw Exception(std::string("Read invalid character '") + c + "'."); } else { return {false, 0}; } @@ -153,7 +153,7 @@ StringToIntegerResult StringToIntegerConverter::Parse( *processed_characters_count = 0; } if (throw_on_error) { - throw Exception(u"There is trailing junk."); + throw Exception("There is trailing junk."); } else { return {false, 0}; } |