glib/glib
Paolo Borelli f559bc01dc Make g_utf8_make_valid optionally take a length
g_utf8_make_valid was turned into a public API this cycle. However
now that it is public we should make the API more generic, allowing
the caller to specify the length. This is especially useful if
the function is called with a string that has \0 in the middle
or for chunks of a strings that are not nul terminated.
This is also consistent with most of the other utf8 utils.

Callers inside glib are updated to the new signature.

https://bugzilla.gnome.org/show_bug.cgi?id=779456
2017-03-02 10:46:51 +01:00
..
deprecated Fix g_cond_timed_wait() timeout with !CLOCK_MONOTONIC 2014-10-10 06:41:55 -04:00
glib-mirroring-tab License headers: replace old FSF address by a link to gnu.org 2017-01-04 19:12:57 +01:00
gnulib glib/gnulib/printf-parse.c: Fix build on Visual Studio 2008 2016-05-25 14:13:33 +08:00
libcharset Updated FSF's address 2014-01-31 14:31:55 +01:00
pcre regex test: Fix with --with-pcre=internal 2016-01-18 18:37:28 +00:00
tests ghmac: Add support for G_CHECKSUM_SHA384 to GHmac 2017-02-20 12:40:26 +01:00
update-pcre Rework the build system for a new tests approach 2013-05-31 23:12:15 -04:00
.gitignore update .gitignores 2011-06-12 16:17:30 -04:00
docs.c gmacros: Clarify G_GNUC_[PRINTF|SCANF] macro documentation 2016-11-09 15:11:53 +00:00
galloca.h docs: Fix formatting of g_alloca documentation. 2014-06-28 13:43:23 -04:00
garray.c Avoid calling Standard C string/array functions with NULL arguments 2016-12-02 19:10:39 +00:00
garray.h GArray: Documentation cleanups 2014-02-01 20:46:29 -05:00
gasyncqueue.c Documentation fixups 2015-09-21 06:44:58 -04:00
gasyncqueue.h GAsyncQueue: Add some useful api 2015-06-29 08:20:26 -07:00
gasyncqueueprivate.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gatomic.c gatomic: statically assert that our assumptions hold 2016-11-22 13:11:24 -05:00
gatomic.h gatomic: statically assert that our assumptions hold 2016-11-22 13:11:24 -05:00
gbacktrace.c Use g_abort() instead of abort() where possible 2016-04-27 13:17:28 +00:00
gbacktrace.h gbacktrace: fix G_BREAKPOINT on Darwin (OSX, iOS) 2015-07-09 10:39:42 -04:00
gbase64.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
gbase64.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gbitlock.c glib: Add missing (nullable) and (optional) annotations 2015-11-07 10:48:32 +01:00
gbitlock.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gbookmarkfile.c License headers: replace old FSF address by a link to gnu.org 2017-01-04 19:12:57 +01:00
gbookmarkfile.h License headers: replace old FSF address by a link to gnu.org 2017-01-04 19:12:57 +01:00
gbsearcharray.h Require C90 compliance 2013-11-20 09:16:16 -05:00
gbytes.c glib: Add missing (nullable) and (optional) annotations 2015-11-07 10:48:32 +01:00
gbytes.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gcharset.c Fix thread safety of g_get_language_names() 2016-03-26 08:52:40 -04:00
gcharset.h License headers: "the Gnome Library" -> "this library" 2017-01-04 19:12:56 +01:00
gcharsetprivate.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gchecksum.c gchecksum: Fix validity checks for GChecksumType 2017-02-27 10:19:19 +00:00
gchecksum.h gchecksum: don't break ABI by inserting new enum member in the middle 2017-02-26 11:52:17 +01:00
gconstructor.h gconstructor: Work around constructors being optimized away on MSVC 2015-11-12 15:01:54 +08:00
gconvert.c Make g_utf8_make_valid optionally take a length 2017-03-02 10:46:51 +01:00
gconvert.h Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
gdataset.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gdataset.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gdatasetprivate.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gdate.c Fix a typo 2016-04-07 08:43:24 -05:00
gdate.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gdatetime.c License headers: replace current FSF address by a link to gnu.org 2017-01-04 19:12:57 +01:00
gdatetime.h License headers: replace current FSF address by a link to gnu.org 2017-01-04 19:12:57 +01:00
gdir.c Use Unicode in translatable strings 2016-10-12 21:30:42 +02:00
gdir.h Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
gen-unicode-tables.pl unicode: Update break_mappings 2016-09-21 18:30:52 +02:00
genviron.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
genviron.h Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
gerror.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gerror.h License headers: "the Gnome Library" -> "this library" 2017-01-04 19:12:56 +01:00
gfileutils.c gfileutils: Mention g_dir_make_tmp() in g_mkdtemp*() docs 2017-01-24 11:05:31 +01:00
gfileutils.h License headers: "GLib" -> "This library" 2017-01-04 19:12:56 +01:00
ggettext.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
ggettext.h Updated FSF's address 2014-01-31 14:31:55 +01:00
ghash.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
ghash.h Updated FSF's address 2014-01-31 14:31:55 +01:00
ghmac.c ghmac: use stable version in documentation 2017-02-26 11:53:22 +01:00
ghmac.h Add g_compute_hmac_for_bytes() 2016-07-16 20:48:41 -04:00
ghook.c glib: Add missing (nullable) and (optional) annotations 2015-11-07 10:48:32 +01:00
ghook.h Updated FSF's address 2014-01-31 14:31:55 +01:00
ghostutils.c g_hostname_is_ip_address: detect integer overflow 2016-12-02 19:10:45 +00:00
ghostutils.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gi18n-lib.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gi18n.h Updated FSF's address 2014-01-31 14:31:55 +01:00
giochannel.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
giochannel.h Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
giounix.c Updated FSF's address 2014-01-31 14:31:55 +01:00
giowin32.c Use g_abort() instead of abort() where possible 2016-04-27 13:17:28 +00:00
gkeyfile.c Make g_utf8_make_valid optionally take a length 2017-03-02 10:46:51 +01:00
gkeyfile.h License headers: "GLib" -> "This library" 2017-01-04 19:12:56 +01:00
glib_gdb.py Rename gdb macros with _gdb suffix to avoid ns clashes 2016-05-23 10:52:10 -04:00
glib_probes.d glib: Add SystemTap probe to g_source_add_child_source() 2016-09-23 22:46:30 -07:00
glib_trace.h Updated FSF's address 2014-01-31 14:31:55 +01:00
glib-autocleanups.h Move GStrv typedef to glib.h instead of gobject.h 2015-09-22 11:18:30 -04:00
glib-init.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
glib-init.h Add g_system_thread_set_name() implementation for W32 threads 2016-04-26 10:40:07 +00:00
glib-object.h gobject: add support for g_auto() and g_autoptr() 2015-01-30 16:52:36 +01:00
glib-private.c Maintain the struct order when initializing 2015-10-08 12:32:58 +01:00
glib-private.h Export glib_init via GLIB_PRIVATE_CALL 2015-10-07 23:39:29 -04:00
glib-unix.c Convert remaining uses of 'Rename to:' 2015-03-12 16:55:22 -04:00
glib-unix.h docs: Remove a few trailing <literal>s 2014-02-14 21:49:42 -05:00
glib.h guuid: Add UUID helper functions to GLib 2017-02-06 14:40:38 +01:00
glib.rc.in Update the year in the *.rc.in files 2011-06-07 08:55:31 +08:00
glib.stp.in glib: Namespace global tapset variables by soname 2016-11-23 10:50:39 +00:00
glibconfig.h.win32.in gmain: Add G_PID_FORMAT 2016-06-29 15:16:52 +01:00
glibintl.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
glist.c glist: Clarify that g_list_nth() is expensive 2015-03-03 18:40:33 +00:00
glist.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gmacros.h gmacros.h: offsetof is also available on MSVC 2016-07-13 11:44:34 +08:00
gmain-internal.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gmain.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gmain.h gmain: fix g_main_context_check declaration 2016-11-09 10:38:20 -05:00
gmappedfile.c Use Unicode in translatable strings 2016-10-12 21:30:42 +02:00
gmappedfile.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gmarkup.c Make g_utf8_make_valid optionally take a length 2017-03-02 10:46:51 +01:00
gmarkup.h License headers: "GLib" -> "This library" 2017-01-04 19:12:56 +01:00
gmem.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gmem.h glib: Add missing (nullable) and (optional) annotations 2015-11-07 10:48:32 +01:00
gmessages.c glib/gmessages.c: Fix build when targeting Windows Vista+ 2017-03-02 08:22:49 +08:00
gmessages.h Add g_log_variant(): structured log that accepts a GVariant 2016-09-09 09:07:50 -03:00
gmirroringtable.h Bug 491554 – Update to Unicode 5.1.0 2008-04-08 02:59:05 +00:00
gnode.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
gnode.h glib: Add missing (nullable) and (optional) annotations 2015-11-07 10:48:32 +01:00
goption.c Avoid calling Standard C string/array functions with NULL arguments 2016-12-02 19:10:39 +00:00
goption.h goption: Mention type of G_OPTION_ARG_CALLBACK in documentation 2015-03-13 09:10:25 +00:00
gpattern.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gpattern.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gpoll.c W32: Do not ignore short waits in g_poll 2016-04-28 14:22:51 +00:00
gpoll.h Move G_POLLFD_FORMAT to glibconfig.h 2015-11-02 20:03:38 +02:00
gprimes.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gprimes.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gprintf.c glib: Add missing (nullable) and (optional) annotations 2015-11-07 10:48:32 +01:00
gprintf.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gprintfint.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gqsort.c glib: Add missing (nullable) and (optional) annotations 2015-11-07 10:48:32 +01:00
gqsort.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gquark.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gquark.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gqueue.c Simplify code that uses g_queue_insert_before() and insert_after() 2014-11-09 20:42:50 +01:00
gqueue.h docs: Use markdown links in all .c and .h files 2014-04-15 22:19:07 +02:00
grand.c grand: rand_s is available in mingw64 2016-02-24 11:27:09 +01:00
grand.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gregex.c gregex: Fix an assignment-after-free error 2017-01-12 09:04:39 +00:00
gregex.h License headers: replace current FSF address by a link to gnu.org 2017-01-04 19:12:57 +01:00
gscanner.c Minor documentation additions and corrections 2014-05-31 10:54:02 -04:00
gscanner.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gscripttable.h unicode: Update to unicode 9.0.0 2016-09-21 18:31:04 +02:00
gsequence.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gsequence.h sequence: add g_sequence_is_empty() 2015-10-15 12:54:09 -07:00
gshell.c License headers: "GLib" -> "This library" 2017-01-04 19:12:56 +01:00
gshell.h License headers: "GLib" -> "This library" 2017-01-04 19:12:56 +01:00
gslice.c glib: Add missing (nullable) and (optional) annotations 2015-11-07 10:48:32 +01:00
gslice.h Use G_STMT_START/END in gslice.h 2015-01-14 16:21:00 +01:00
gslist.c glist: Mention that g_list_length() is bad for checking list emptiness 2015-02-11 09:17:33 +00:00
gslist.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gspawn-win32-helper.c License headers: "GLib" -> "This library" 2017-01-04 19:12:56 +01:00
gspawn-win32.c License headers: "GLib" -> "This library" 2017-01-04 19:12:56 +01:00
gspawn.c License headers: "GLib" -> "This library" 2017-01-04 19:12:56 +01:00
gspawn.h License headers: "GLib" -> "This library" 2017-01-04 19:12:56 +01:00
gstdio.c License headers: "GLib" -> "This library" 2017-01-04 19:12:56 +01:00
gstdio.h License headers: "GLib" -> "This library" 2017-01-04 19:12:56 +01:00
gstrfuncs.c Avoid calling Standard C string/array functions with NULL arguments 2016-12-02 19:10:39 +00:00
gstrfuncs.h Move GStrv typedef to glib.h instead of gobject.h 2015-09-22 11:18:30 -04:00
gstring.c gstring: Explictly annotate return-values with (transfer none/full) 2016-02-02 17:38:05 +01:00
gstring.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gstringchunk.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
gstringchunk.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gtester-report Make gtester-report compatible with Python 3 2015-11-05 12:53:19 +01:00
gtester.c Use g_abort() instead of abort() where possible 2016-04-27 13:17:28 +00:00
gtestutils.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gtestutils.h Avoid calling Standard C string/array functions with NULL arguments 2016-12-02 19:10:39 +00:00
gthread-posix.c Use g_abort() instead of abort() where possible 2016-04-27 13:17:28 +00:00
gthread-win32.c Use g_abort() instead of abort() where possible 2016-04-27 13:17:28 +00:00
gthread.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gthread.h gmem.h, gthread.h: Include glib/gutils.h 2015-02-10 23:17:07 +08:00
gthreadpool.c GThreadPool: Add some queue manipulation api 2015-06-29 08:20:26 -07:00
gthreadpool.h GThreadPool: Add some queue manipulation api 2015-06-29 08:20:26 -07:00
gthreadprivate.h License headers: "the Gnome Library" -> "this library" 2017-01-04 19:12:56 +01:00
gtimer.c docs: use "Returns:" consistently 2014-02-19 19:41:52 -05:00
gtimer.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gtimezone.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gtimezone.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gtranslit-data.h Add locale-sensitive ASCII transliteration API 2014-02-20 18:27:24 -05:00
gtranslit.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gtrashstack.c GTrashStack: uninline and deprecate 2015-11-16 13:14:19 -05:00
gtrashstack.h GTrashStack: uninline and deprecate 2015-11-16 13:14:19 -05:00
gtree.c glib: Add missing (nullable) and (optional) annotations 2015-11-07 10:48:32 +01:00
gtree.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gtypes.h Fall back for overflow-checked arithmetic with Intel compiler 2016-07-23 09:27:52 -04:00
gunibreak.c License headers: "the Gnome Library" -> "this library" 2017-01-04 19:12:56 +01:00
gunibreak.h unicode: Update to unicode 9.0.0 2016-09-21 18:31:04 +02:00
gunichartables.h unicode: Update to unicode 9.0.0 2016-09-21 18:31:04 +02:00
gunicode.h Make g_utf8_make_valid optionally take a length 2017-03-02 10:46:51 +01:00
gunicodeprivate.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gunicollate.c License headers: "the Gnome Library" -> "this library" 2017-01-04 19:12:56 +01:00
gunicomp.h unicode: Update to unicode 7.0.0 2014-06-28 12:49:38 -04:00
gunidecomp.c License headers: "the Gnome Library" -> "this library" 2017-01-04 19:12:56 +01:00
gunidecomp.h unicode: Update to unicode 9.0.0 2016-09-21 18:31:04 +02:00
guniprop.c g_unichar_iswide_cjk: add a special case for U+0000 2016-12-02 19:10:44 +00:00
gurifuncs.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gurifuncs.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gutf8.c Make g_utf8_make_valid optionally take a length 2017-03-02 10:46:51 +01:00
gutils.c glib: Add filename type annotations 2016-06-04 20:38:33 +02:00
gutils.h Add g_abort() 2016-04-27 13:17:27 +00:00
guuid.c guuid: Remove support for curly braces and URN UUIDs 2017-02-06 14:40:38 +01:00
guuid.h guuid: Add UUID helper functions to GLib 2017-02-06 14:40:38 +01:00
gvariant-core.c glib: Add missing (nullable) and (optional) annotations 2015-11-07 10:48:32 +01:00
gvariant-core.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gvariant-internal.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gvariant-parser.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gvariant-serialiser.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gvariant-serialiser.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gvariant.c gvariant: Add example to docs for g_variant_builder_open() 2017-01-24 09:50:01 +00:00
gvariant.h gvariant: Avoid anonymous struct and union members 2016-07-21 14:06:58 +02:00
gvarianttype.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gvarianttype.h Removed an unused include 2016-09-09 08:50:55 -03:00
gvarianttypeinfo.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gvarianttypeinfo.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gversion.c Minor documentation additions and corrections 2014-05-31 10:54:02 -04:00
gversion.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gversionmacros.h Add version macros for 2.52 2016-10-12 15:07:31 -04:00
gwakeup.c gwakeup: Clarify buffer sizing in g_wakeup_signal() 2014-06-21 17:41:31 +01:00
gwakeup.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gwin32.c introspection: use (nullable) or (optional) instead of (allow-none) 2016-11-22 14:14:37 -08:00
gwin32.h Win32: Move g_win32_check_windows_version() to the correct place in header 2015-03-12 16:09:14 -04:00
libglib-gdb.py.in Rename gdb macros with _gdb suffix to avoid ns clashes 2016-05-23 10:52:10 -04:00
Makefile.am guuid: Add UUID helper functions to GLib 2017-02-06 14:40:38 +01:00
makefile.msc.in win32: Use timeGetTime as monotonic base 2011-11-16 09:10:46 +01:00
update-gtranslit.py Add locale-sensitive ASCII transliteration API 2014-02-20 18:27:24 -05:00
valgrind.h Doc: glib: Fix all undocumented/unused/undeclared symbols 2014-12-12 11:01:37 -05:00
win_iconv.c win_iconv: Fix some file handler leaks on exit 2016-08-13 10:31:26 +02:00