From 30d83e089c2f0b5d5d67892c6fc581ba9ce0a0a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Tue, 16 Feb 2016 22:34:12 +0100 Subject: Qt: Add regex support in Find Packet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke --- cfile.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cfile.h') diff --git a/cfile.h b/cfile.h index 5d40dd8ce1..7c270608f8 100644 --- a/cfile.h +++ b/cfile.h @@ -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 N/B */ -- cgit v1.2.3