mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
Fixed problem with dictinary
This commit is contained in:
parent
e7d05e4ce6
commit
1b19b98cf5
2
peglib.h
2
peglib.h
@ -433,7 +433,7 @@ public:
|
|||||||
{
|
{
|
||||||
auto done = false;
|
auto done = false;
|
||||||
size_t len = 1;
|
size_t len = 1;
|
||||||
while (!done) {
|
while (!done && len <= text_len) {
|
||||||
std::string s(text, len);
|
std::string s(text, len);
|
||||||
auto it = dic_.find(s);
|
auto it = dic_.find(s);
|
||||||
if (it == dic_.end()) {
|
if (it == dic_.end()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user