mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
literal matching: separate path for pure literal patterns
This commit is contained in:
committed by
Chang, Harry
parent
63e7d89fcc
commit
f68723a606
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015-2017, Intel Corporation
|
||||
* Copyright (c) 2015-2019, Intel Corporation
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
@@ -211,10 +211,17 @@ public:
|
||||
|
||||
size_t hash() const;
|
||||
|
||||
void set_pure() { pure = true; }
|
||||
void unset_pure() { pure = false; }
|
||||
bool get_pure() const { return pure; }
|
||||
|
||||
/* TODO: consider existing member functions possibly related with pure. */
|
||||
|
||||
private:
|
||||
friend const_iterator;
|
||||
std::string s;
|
||||
boost::dynamic_bitset<> nocase;
|
||||
bool pure = false; /**< born from cutting or not (pure literal). */
|
||||
};
|
||||
|
||||
/// Return a reversed copy of this literal.
|
||||
|
Reference in New Issue
Block a user