diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2016-02-16 22:34:12 +0100 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2016-02-18 08:06:46 +0000 |
commit | 30d83e089c2f0b5d5d67892c6fc581ba9ce0a0a5 (patch) | |
tree | d746f24099cf6bdf108e9f64fc1aaf8df5bdd8fc /cfile.h | |
parent | b77ffb9d36a9405943dadce3d4849c1106b2e361 (diff) |
Qt: Add regex support in Find Packet
Add support for using regular expressions in the Search Frame
when searching in packet list, packet details and packet bytes.
This search is in many cases faster than plain string search.
Change-Id: I2d8a709046f90d7b278fb39547fc4e2e420623bc
Reviewed-on: https://code.wireshark.org/review/13981
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'cfile.h')
-rw-r--r-- | cfile.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -103,6 +103,7 @@ typedef struct _capture_file { gboolean packet_data; /* TRUE if "String" search in "Packet data" was last selected */ guint32 search_pos; /* Byte position of last byte found in a hex search */ gboolean case_type; /* TRUE if case-insensitive text search */ + GRegex *regex; /* Set if regular expression search */ search_charset_t scs_type; /* Character set for text search */ search_direction dir; /* Direction in which to do searches */ gboolean search_in_progress; /* TRUE if user just clicked OK in the Find dialog or hit <control>N/B */ |