aboutsummaryrefslogtreecommitdiff
path: root/src/parse
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-09-07 03:34:56 +0800
committerYuqian Yang <crupest@crupest.life>2025-09-07 03:34:56 +0800
commit20123151d12a0b01453ab6a36c84e4d3e5ea9504 (patch)
tree27543f3e5bf6430298c94c38bad6ecc83dafdd47 /src/parse
parent227118866190a7fe17b42e8c589c475781c69f33 (diff)
downloadcru-20123151d12a0b01453ab6a36c84e4d3e5ea9504.tar.gz
cru-20123151d12a0b01453ab6a36c84e4d3e5ea9504.tar.bz2
cru-20123151d12a0b01453ab6a36c84e4d3e5ea9504.zip
Remove some usage of my format.
Diffstat (limited to 'src/parse')
-rw-r--r--src/parse/Grammar.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/parse/Grammar.cpp b/src/parse/Grammar.cpp
index 12617de3..615901e0 100644
--- a/src/parse/Grammar.cpp
+++ b/src/parse/Grammar.cpp
@@ -1,9 +1,9 @@
#include "cru/parse/Grammar.h"
#include "cru/base/String.h"
#include "cru/parse/Symbol.h"
-#include "cru/base/Format.h"
#include <algorithm>
+#include <format>
#include <iterator>
#include <unordered_map>
#include <unordered_set>
@@ -154,8 +154,9 @@ void Grammar::EliminateLeftRecursions() {
new_right.insert(new_right.cbegin(), jp->GetRight().cbegin(),
jp->GetRight().cend());
CreateProduction(
- Format(u"Merge of {} and {} (Eliminate Left Recursion)",
- production->GetName(), jp->GetName()),
+ String::FromUtf8(std::format(
+ "Merge of {} and {} (Eliminate Left Recursion)",
+ production->GetName().ToUtf8(), jp->GetName().ToUtf8())),
ni, std::move(new_right));
}
}