summaryrefslogtreecommitdiff
path: root/utils/utils.h
Commit message (Collapse)AuthorAgeFilesLines
* - introduction of SLEN()John Tytgat2008-05-251-0/+8
| | | | | | | - enforce result of url_normalize() being NULL on failure - plug memory leak when url_normalize() fails svn path=/trunk/netsurf/; revision=4200
* Contribution from Philip Boulain <prb@ecs.soton.ac.uk>:John Tytgat2008-05-251-0/+12
| | | | | | | | | | | | | | | | | | | | | This makes url_normalize take care of whitespace in a fairly useful way, consistent with other browsers: - Leading and trailing whitespace is trimmed - Internal whitespace is urlescaped For example, " http://www.google.co.uk/search?q=hello world " becomes "http://www.google.co.uk/search?q=hello%20world" Explicit trailing whitespace, e.g. "...hello world%20", is left alone. The upshot is that if you sloppily copy-paste a URL from IRC or whatnot into the address bar, NetSurf no longer silently ignores you if you caught some adjacent whitespace. svn path=/trunk/netsurf/; revision=4198
* Add -D_NETBSD_SOURCE to Makefile.unix for building on NetBSD. Also don't ↵Rob Kendrick2008-03-121-1/+1
| | | | | | provide prototype for strcasestr under NetBSD. Fixes segfaults. svn path=/trunk/netsurf/; revision=3943
* Update all source code file headers to reflect GPL version 2 only and ↵Vincent Sanders2007-08-081-3/+14
| | | | | | contain appropriate licence text svn path=/trunk/netsurf/; revision=3486
* Add HAVE_STRNDUP and supporting structure to config.h and make utils.[ch] ↵Rob Kendrick2007-06-161-4/+0
| | | | | | reflect it. svn path=/trunk/netsurf/; revision=3351
* Move user-agent generation into fetch.c and simplify.James Bursa2007-05-021-1/+0
| | | | svn path=/trunk/netsurf/; revision=3260
* Fix almost all warnings in gtk/Rob Kendrick2007-02-101-0/+2
| | | | svn path=/trunk/netsurf/; revision=3173
* Generates and use a User-Agent: string based on new ↵Rob Kendrick2007-01-301-0/+1
| | | | | | netsurf_version_major/minor values, and results of uname(). svn path=/trunk/netsurf/; revision=3158
* Make time taken that is displayed in status bar use gettimeofday()-based ↵Rob Kendrick2007-01-301-0/+1
| | | | | | time rather than clock()-based time svn path=/trunk/netsurf/; revision=3157
* Make GTK build compile on FreeBSD.James Bursa2007-01-291-1/+5
| | | | svn path=/trunk/netsurf/; revision=3154
* Update project URL.Michael Drake2006-11-271-1/+1
| | | | svn path=/trunk/netsurf/; revision=3073
* Finish event based GUI system transition and begin code cleanup.Richard Wilson2006-09-061-1/+0
| | | | svn path=/trunk/netsurf/; revision=2922
* Use case-insensitive strstr to match "stylesheet"John Mark Bell2006-07-021-0/+1
| | | | svn path=/trunk/netsurf/; revision=2689
* Remove clean_cookiejar; it's been redundant for yearsJohn Mark Bell2006-06-271-1/+0
| | | | svn path=/trunk/netsurf/; revision=2654
* [project @ 2006-02-07 16:16:23 by adrianl]Adrian Lees2006-02-071-1/+2
| | | | | | Confirmation before overwriting with download files; Interface Choices dialog svn path=/import/netsurf/; revision=2061
* [project @ 2006-02-06 00:10:09 by jmb]John Mark Bell2006-02-061-0/+1
| | | | | | Implement HTTP caching algorithm; this should avoid stale cache entries being used. svn path=/import/netsurf/; revision=2059
* [project @ 2005-07-16 14:35:20 by jmb]John Mark Bell2005-07-161-1/+0
| | | | | | | | | | | | | | | | | | - Convert Messages files to UTF-8 encoding. - Replace local_encoding_name() with platform specific utf8_[to,from]_local_encoding() functions - this allows mapping of 8bit characters 0x80->0x9f (inclusive). - All text that is rendered by the RISC OS Wimp is now converted to the system local encoding prior to display. - Lose the horrendous hack that was messages_get_key() - Menu text is now translated to system local encoding on the fly (if necessary) rather than at menu creation time. This allows the system alphabet to change under us and our menus remain usable. - The Languages menu now lists all languages that are present in the LangNames file. In the case of selecting the UI language, those languages which are not available are shaded. svn path=/import/netsurf/; revision=1796
* [project @ 2005-06-07 21:29:26 by jmb]John Mark Bell2005-06-071-3/+0
| | | | | | | Lose cnv_str_local_enc and friends. UTF-8 conversion functions now return an enumerated type allowing for fallbacks, if appropriate. svn path=/import/netsurf/; revision=1744
* [project @ 2005-05-24 20:22:14 by bursa]James Bursa2005-05-241-1/+0
| | | | | | Remove unnecessary include. svn path=/import/netsurf/; revision=1737
* [project @ 2005-04-23 02:58:27 by adrianl]Adrian Lees2005-04-231-0/+21
| | | | | | Query windows, desktop save protocol, confirm abort/quit when downloads in progress svn path=/import/netsurf/; revision=1679
* [project @ 2005-04-21 21:36:23 by adrianl]Adrian Lees2005-04-211-0/+9
| | | | | | Dragging URLs into toolbar URL icon; keyboard actions in textareas conform to Wimp's icon editing; display of scale % fixed for 120% svn path=/import/netsurf/; revision=1676
* [project @ 2005-04-16 05:09:32 by jmb]John Mark Bell2005-04-161-3/+5
| | | | | | | | | | | | Split out UTF-8 handling functions. Submit URL-encoded forms in sensible encoding: * First entry in accept-charset list, if present * Document encoding, otherwise We may want to explicitly look for UTF-8, to save converting. Convert cnv_str_local_enc/cnv_local_enc_str to use iconv (they're now veneers for utf8_[to/from]_enc). Provide mechanism for looking up local system charset (derived from system alphabet, under RISC OS) svn path=/import/netsurf/; revision=1647
* [project @ 2005-04-15 05:52:04 by adrianl]Adrian Lees2005-04-151-0/+4
| | | | | | Defined NOF_ELEMENTS utility macro svn path=/import/netsurf/; revision=1635
* [project @ 2005-01-02 03:58:20 by jmb]John Mark Bell2005-01-021-5/+2
| | | | | | xcalloc/xrealloc/xstrdup-purge - Lose remaining calls (and purge the relevant functions from utils.c) svn path=/import/netsurf/; revision=1419
* [project @ 2004-12-08 00:10:17 by kevinb]Kevin Bagust2004-12-081-1/+0
| | | | | | Removed unused function load, and altered call to xcalloc into a call to calloc in clean_cookiejar svn path=/import/netsurf/; revision=1389
* [project @ 2004-07-19 20:29:47 by joty]John Tytgat2004-07-191-0/+1
| | | | | | | Added cnv_local_enc_str() : to convert string in local machine encoding into UTF-8 NUL terminated string. svn path=/import/netsurf/; revision=1116
* [project @ 2004-07-05 20:19:51 by joty]John Tytgat2004-07-051-3/+5
| | | | | | Using UTF-8 instead of Latin1 encoding. svn path=/import/netsurf/; revision=1049
* [project @ 2004-06-10 20:41:26 by bursa]James Bursa2004-06-101-0/+1
| | | | | | Add global content list. Better error handling in content code. Improved code documentation. Remove some obsolete functions. Implement debug window listing contents. svn path=/import/netsurf/; revision=951
* [project @ 2004-04-25 11:40:05 by matthewh]Matthew Hambley2004-04-251-0/+1
| | | | | | A more human face to download bytecounts. Needs someone who can speak French to correct the fr messages file. svn path=/import/netsurf/; revision=803
* [project @ 2004-03-02 18:02:17 by bursa]James Bursa2004-03-021-3/+1
| | | | | | Add new url functions and modify to use them. svn path=/import/netsurf/; revision=578
* [project @ 2003-12-29 00:38:59 by bursa]James Bursa2003-12-291-0/+1
| | | | | | Transliterate Unicode to Latin1 using Markus Kuhn's transtab. svn path=/import/netsurf/; revision=465
* [project @ 2003-12-28 02:35:46 by jmb]John Mark Bell2003-12-281-0/+1
| | | | | | | | | | | Remove expired cookies from the cookiejar. Cookies are removed every time a window is closed and when NetSurf is quit. /me slaps libcurl for not doing it itself. Make cookie_create() read the cookie jar location from the messages file. svn path=/import/netsurf/; revision=463
* [project @ 2003-12-27 20:15:22 by bursa]James Bursa2003-12-271-0/+3
| | | | | | Use charset from Content-Type header. svn path=/import/netsurf/; revision=460
* [project @ 2003-12-26 00:17:55 by bursa]James Bursa2003-12-261-1/+1
| | | | | | New url_join using liburi, <base href=...>. svn path=/import/netsurf/; revision=441
* [project @ 2003-12-21 22:05:05 by jmb]John Mark Bell2003-12-211-1/+0
| | | | | | Clean up version string related mess. svn path=/import/netsurf/; revision=438
* [project @ 2003-12-19 00:59:36 by jmb]John Mark Bell2003-12-191-0/+1
| | | | | | Move version string creation to utils for easy access svn path=/import/netsurf/; revision=432
* [project @ 2003-11-07 23:47:55 by bursa]James Bursa2003-11-071-0/+2
| | | | | | Add is_dir(). svn path=/import/netsurf/; revision=407
* [project @ 2003-10-25 19:20:13 by jmb]John Mark Bell2003-10-251-0/+1
| | | | | | | HTTP Auth login improved (greatly). Addresses all three issues in the previous version. svn path=/import/netsurf/; revision=382
* [project @ 2003-10-07 21:34:39 by bursa]James Bursa2003-10-071-0/+1
| | | | | | Implement white-space property. svn path=/import/netsurf/; revision=348
* [project @ 2003-06-30 12:44:02 by bursa]James Bursa2003-06-301-2/+5
| | | | | | New file headers. svn path=/import/netsurf/; revision=190
* [project @ 2003-04-11 21:06:51 by bursa]James Bursa2003-04-111-1/+4
| | | | | | Memory usage and CSS fixes. svn path=/import/netsurf/; revision=122
* [project @ 2003-04-05 21:38:06 by bursa]James Bursa2003-04-051-1/+2
| | | | | | External stylesheets. svn path=/import/netsurf/; revision=115
* [project @ 2003-02-09 12:58:14 by bursa]James Bursa2003-02-091-3/+3
| | | | | | Reorganization and rewrite of fetch, cache, and content handling. svn path=/import/netsurf/; revision=96
* [project @ 2003-01-07 23:15:23 by bursa]James Bursa2003-01-071-1/+2
| | | | | | Clean up many compiler warnings. svn path=/import/netsurf/; revision=88
* [project @ 2002-08-11 23:04:02 by bursa]James Bursa2002-08-111-1/+7
| | | | | | [monkeyson] Multiple-include guards. svn path=/import/netsurf/; revision=30
* [project @ 2002-05-21 21:27:29 by bursa]James Bursa2002-05-211-1/+3
| | | | | | Add squash_whitespace(). svn path=/import/netsurf/; revision=17
* [project @ 2002-04-22 09:24:35 by bursa]James Bursa2002-04-221-0/+11
Initial revision svn path=/import/netsurf/; revision=2