Use more std::span arguments
This commit is contained in:
1 parent
c05b231015
commit
f6a67aa6e7
79 files changed
+164
-146
No files matched your search
@@ -486,7 +486,7 @@ void Lexer::EatAndReset()
|
||||
SetIdentifierMatchRule(IdentifierMatchRule::Typical);
|
||||
}
|
||||
|
||||
std::optional<std::string_view> Lexer::RunDfa(const std::vector<DfaNode>& dfa) const
|
||||
std::optional<std::string_view> Lexer::RunDfa(std::span<const DfaNode> dfa) const
|
||||
{
|
||||
size_t dfa_index = 0;
|
||||
bool transition_found;
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <array>
|
||||
#include <deque>
|
||||
#include <optional>
|
||||
#include <span>
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
@@ -166,7 +167,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
std::optional<std::string_view> RunDfa(const std::vector<DfaNode>& dfa) const;
|
||||
std::optional<std::string_view> RunDfa(std::span<const DfaNode> dfa) const;
|
||||
void SkipWs() const;
|
||||
void FeedbackTokens() const;
|
||||
bool IdentifierHeadExtra(char h) const;
|
||||
|
||||
Reference in new issue
Block a user