aboutsummaryrefslogtreecommitdiff
path: root/src/base/String.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-10-17 08:37:30 +0800
committerYuqian Yang <crupest@crupest.life>2025-10-17 08:37:30 +0800
commit3c8d5c8f732239a8b50418be27464e30b9dddeae (patch)
tree8ffb46c18e48c8463c1fb16fcacf216f296b8a1f /src/base/String.cpp
parent37943858b3b260589b5dc222bb5184d2846fb6dc (diff)
downloadcru-3c8d5c8f732239a8b50418be27464e30b9dddeae.tar.gz
cru-3c8d5c8f732239a8b50418be27464e30b9dddeae.tar.bz2
cru-3c8d5c8f732239a8b50418be27464e30b9dddeae.zip
Exception remove string.
Diffstat (limited to 'src/base/String.cpp')
-rw-r--r--src/base/String.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/base/String.cpp b/src/base/String.cpp
index 29cebde3..c90b9a71 100644
--- a/src/base/String.cpp
+++ b/src/base/String.cpp
@@ -324,7 +324,7 @@ void String::AppendCodePoint(CodePoint code_point) {
if (!Utf16EncodeCodePointAppend(
code_point,
std::bind(&String::push_back, this, std::placeholders::_1))) {
- throw TextEncodeException(u"Code point out of range.");
+ throw TextEncodeException("Code point out of range.");
}
}
@@ -623,7 +623,7 @@ float StringView::ParseToFloat(Index* processed_characters_count,
}
if (flags & StringToNumberFlags::kThrowOnError && std::isnan(result)) {
- throw Exception(u"Result of string to float conversion is NaN");
+ throw Exception("Result of string to float conversion is NaN");
}
return result;
@@ -639,7 +639,7 @@ double StringView::ParseToDouble(Index* processed_characters_count,
}
if (flags & StringToNumberFlags::kThrowOnError && std::isnan(result)) {
- throw Exception(u"Result of string to double conversion is NaN");
+ throw Exception("Result of string to double conversion is NaN");
}
return result;
@@ -651,7 +651,7 @@ std::vector<float> StringView::ParseToFloatList(value_type separator) const {
for (auto& item : list) {
auto value = item.ParseToFloat();
if (std::isnan(value)) {
- throw Exception(u"Invalid double value.");
+ throw Exception("Invalid double value.");
}
result.push_back(value);
}
@@ -664,7 +664,7 @@ std::vector<double> StringView::ParseToDoubleList(value_type separator) const {
for (auto& item : list) {
auto value = item.ParseToDouble();
if (std::isnan(value)) {
- throw Exception(u"Invalid double value.");
+ throw Exception("Invalid double value.");
}
result.push_back(value);
}