Like camel_url_encode, but works directly on an existing GString.
authorDan Winship <danw@src.gnome.org>
Thu, 27 Mar 2003 15:37:47 +0000 (15:37 +0000)
committerDan Winship <danw@src.gnome.org>
Thu, 27 Mar 2003 15:37:47 +0000 (15:37 +0000)
commit0df4d2dd582174a5f08f55f6a6133d54c5393db5
treebede77baa588a90deff2c3a21b4970d0fbfc561f
parent052ca7e308a911bf38ad4cd23ae9f14fe651c191
Like camel_url_encode, but works directly on an existing GString.

* camel-url.c (append_url_encoded): Like camel_url_encode, but
works directly on an existing GString.
(camel_url_to_string, output_param): Use it.
(camel_url_encode): Likewise. Remove "escape_unsafe" arg since the
"unsafe" chars are the ones that should *always* be escaped, and
the places we were passing FALSE were wrong.
(camel_url_decode): replace with a new version

* camel-file-utils.c (camel_file_util_safe_filename): Remove extra
arg to camel_url_encode.

* tests/misc/url.c (main): Add tests of basic URL parsing and
unparsing
camel/ChangeLog
camel/camel-file-utils.c
camel/camel-url.c
camel/camel-url.h
camel/tests/misc/.cvsignore
camel/tests/misc/url.c