aboutsummaryrefslogtreecommitdiffstats
path: root/epan/strutil.h
AgeCommit message (Collapse)AuthorFilesLines
2004-10-27fix doxygen tagsUlf Lamping1-1/+1
svn path=/trunk/; revision=12404
2004-08-13Move convert_string_to_hex() and convert_string_case() from gtk/find_dlg.cGerald Combs1-0/+19
to epan/strutil.c svn path=/trunk/; revision=11733
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
2004-06-06Add a "force_separators" parameter to hex_str_to_bytes so that it'sGerald Combs1-4/+85
possible to paste in WEP keys without any separators. Add doxygen comments to strutil.h. svn path=/trunk/; revision=11123
2004-05-01Add an XML escaping routine: xml_escape()Olivier Biot1-1/+2
svn path=/trunk/; revision=10759
2004-01-25Change the first arg to hex_str_to_bytes from guchar* -> char*Jörg Mayer1-2/+2
svn path=/trunk/; revision=9842
2003-12-29"hex_str_to_bytes()" modifies the GByteArray supplied to it, so don'tGuy Harris1-2/+2
mark it as "const". svn path=/trunk/; revision=9474
2003-12-29Pull most of bytes_from_unparsed() into a new routine,Gerald Combs1-1/+2
hex_str_to_bytes(). Use the new routine to initialize any WEP keys we have defined. This has the side effect of fixing an overflow if the user entered a long WEP key. svn path=/trunk/; revision=9471
2003-08-27Add a "contains" operator for byte-strings, strings, and tvbuffs (protocols).Gilbert Ramirez1-1/+4
The search uses a naive approach; more work is required to add a Boyer-Moore Search algorithm. svn path=/trunk/; revision=8280
2003-07-04Use FLT_DIG and DBL_DIG from float.h to create printf-style print formatGilbert Ramirez1-1/+6
for FT_FLOAT and FT_DOUBLE values. svn path=/trunk/; revision=7962
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-4/+4
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6116
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-14/+6
equivalents for the epan/ directory but leave winsock2.h in inet_pton.c and inet_ntop.c for now (can't estimate the consequences). svn path=/trunk/; revision=5928
2002-06-23WinPcap 2.3's <pcap.h> includes <packet32.h>, and WinPcap 2.3'sGuy Harris1-5/+4
<packet32.h> includes <winsock2.h>; we include that rather than <winsock.h>, to avoid errors due to conflicting declarations in <winsock.h> and <winsock2.h>. svn path=/trunk/; revision=5742
2000-12-22Enable FT_BYTES dfiltering, from Ed Warnicke.Gilbert Ramirez1-2/+2
svn path=/trunk/; revision=2768
2000-11-13Move "bytes_to_str()" to "strutil.c" from "packet.c" - it's just aGuy Harris1-2/+2
string formatter, like "format_text()", and, as "tvbuff.c" now calls it (*vide infra*), we don't want to have to make "tvbuff.c" drag "packet.h" in just to declare "bytes_to_str()". It's now declared in "strutil.h", so include it in modules that use "bytes_to_str()" and weren't already including it. Add a "tvb_bytes_to_str()" wrapper that calls "tvb_get_ptr()" to get a pointer to a chunk of N bytes at a given offset in a tvbuff and then hands that chunk to "bytes_to_str()". Convert the code that was doing that to use "tvb_bytes_to_str()" instead (which caught what I suspect is a bug in the Q.2931 dissector, where it was handing an offset of 0 to "tvb_get_ptr()" - a cut-and-pasteo, I think). Tvbuffify the ARP dissector. svn path=/trunk/; revision=2634
2000-11-10Tvbuffify the SAP and SDP dissectors.Guy Harris1-3/+1
Add "tvb_find_line_end_unquoted()" for the benefit of the SDP dissector; get rid of "find_line_end_unquoted()" as nobody uses it any more. Add "tvb_pbrk_guint8()" for the benefit of "tvb_find_line_end_unquoted()"; it searches for any of a number of characters, unlike "tvb_find_guint8()" which searches for only one. svn path=/trunk/; revision=2595
2000-11-09Support for embedded newlines in SDP fields, from Robert Tsai.Guy Harris1-1/+3
svn path=/trunk/; revision=2584
2000-09-28More EPAN-related code movements. Get rid of usage of #include "globals.h"Gilbert Ramirez1-3/+3
and #include "util.h" from epan code. Move get_home_dir() into epan/filesystem.c as it's used by plugins.c. svn path=/trunk/; revision=2461
2000-09-27First step in moving core Ethereal routines to libepan.Gilbert Ramirez1-0/+46
svn path=/trunk/; revision=2458