atk 0.90.5-x86-mingw32 → 0.90.6-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +9 -0
- data/Rakefile +8 -70
- data/ext/atk/Makefile +160 -0
- data/ext/atk/extconf.rb +9 -9
- data/ext/atk/rbatkversion.h +24 -0
- data/lib/1.8/atk.so +0 -0
- data/lib/1.9/atk.so +0 -0
- data/vendor/local/lib/pkgconfig/atk.pc +1 -1
- metadata +150 -902
- data/vendor/local/bin/envsubst.exe +0 -0
- data/vendor/local/bin/gettext.exe +0 -0
- data/vendor/local/bin/gettext.sh +0 -123
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +0 -188
- data/vendor/local/bin/glib-mkenums +0 -537
- data/vendor/local/bin/gobject-query.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper-console.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper.exe +0 -0
- data/vendor/local/bin/intl.dll +0 -0
- data/vendor/local/bin/libasprintf-0.dll +0 -0
- data/vendor/local/bin/libgcc_s_dw2-1.dll +0 -0
- data/vendor/local/bin/libgio-2.0-0.dll +0 -0
- data/vendor/local/bin/libglib-2.0-0.dll +0 -0
- data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
- data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
- data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
- data/vendor/local/bin/ngettext.exe +0 -0
- data/vendor/local/include/autosprintf.h +0 -66
- data/vendor/local/include/glib-2.0/gio/gappinfo.h +0 -236
- data/vendor/local/include/glib-2.0/gio/gasyncinitable.h +0 -119
- data/vendor/local/include/glib-2.0/gio/gasyncresult.h +0 -73
- data/vendor/local/include/glib-2.0/gio/gbufferedinputstream.h +0 -123
- data/vendor/local/include/glib-2.0/gio/gbufferedoutputstream.h +0 -81
- data/vendor/local/include/glib-2.0/gio/gcancellable.h +0 -103
- data/vendor/local/include/glib-2.0/gio/gcharsetconverter.h +0 -60
- data/vendor/local/include/glib-2.0/gio/gcontenttype.h +0 -57
- data/vendor/local/include/glib-2.0/gio/gconverter.h +0 -95
- data/vendor/local/include/glib-2.0/gio/gconverterinputstream.h +0 -79
- data/vendor/local/include/glib-2.0/gio/gconverteroutputstream.h +0 -79
- data/vendor/local/include/glib-2.0/gio/gcredentials.h +0 -76
- data/vendor/local/include/glib-2.0/gio/gdatainputstream.h +0 -150
- data/vendor/local/include/glib-2.0/gio/gdataoutputstream.h +0 -115
- data/vendor/local/include/glib-2.0/gio/gdbusaddress.h +0 -58
- data/vendor/local/include/glib-2.0/gio/gdbusauthobserver.h +0 -46
- data/vendor/local/include/glib-2.0/gio/gdbusconnection.h +0 -562
- data/vendor/local/include/glib-2.0/gio/gdbuserror.h +0 -100
- data/vendor/local/include/glib-2.0/gio/gdbusintrospection.h +0 -286
- data/vendor/local/include/glib-2.0/gio/gdbusmessage.h +0 -149
- data/vendor/local/include/glib-2.0/gio/gdbusmethodinvocation.h +0 -73
- data/vendor/local/include/glib-2.0/gio/gdbusnameowning.h +0 -112
- data/vendor/local/include/glib-2.0/gio/gdbusnamewatching.h +0 -94
- data/vendor/local/include/glib-2.0/gio/gdbusproxy.h +0 -167
- data/vendor/local/include/glib-2.0/gio/gdbusserver.h +0 -54
- data/vendor/local/include/glib-2.0/gio/gdbusutils.h +0 -44
- data/vendor/local/include/glib-2.0/gio/gdrive.h +0 -225
- data/vendor/local/include/glib-2.0/gio/gemblem.h +0 -58
- data/vendor/local/include/glib-2.0/gio/gemblemedicon.h +0 -62
- data/vendor/local/include/glib-2.0/gio/gfile.h +0 -1017
- data/vendor/local/include/glib-2.0/gio/gfileattribute.h +0 -77
- data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +0 -132
- data/vendor/local/include/glib-2.0/gio/gfileicon.h +0 -56
- data/vendor/local/include/glib-2.0/gio/gfileinfo.h +0 -952
- data/vendor/local/include/glib-2.0/gio/gfileinputstream.h +0 -112
- data/vendor/local/include/glib-2.0/gio/gfileiostream.h +0 -118
- data/vendor/local/include/glib-2.0/gio/gfilemonitor.h +0 -95
- data/vendor/local/include/glib-2.0/gio/gfilenamecompleter.h +0 -76
- data/vendor/local/include/glib-2.0/gio/gfileoutputstream.h +0 -119
- data/vendor/local/include/glib-2.0/gio/gfilterinputstream.h +0 -76
- data/vendor/local/include/glib-2.0/gio/gfilteroutputstream.h +0 -76
- data/vendor/local/include/glib-2.0/gio/gicon.h +0 -91
- data/vendor/local/include/glib-2.0/gio/ginetaddress.h +0 -103
- data/vendor/local/include/glib-2.0/gio/ginetsocketaddress.h +0 -69
- data/vendor/local/include/glib-2.0/gio/ginitable.h +0 -96
- data/vendor/local/include/glib-2.0/gio/ginputstream.h +0 -172
- data/vendor/local/include/glib-2.0/gio/gio.h +0 -122
- data/vendor/local/include/glib-2.0/gio/gioenums.h +0 -1221
- data/vendor/local/include/glib-2.0/gio/gioenumtypes.h +0 -121
- data/vendor/local/include/glib-2.0/gio/gioerror.h +0 -52
- data/vendor/local/include/glib-2.0/gio/giomodule.h +0 -132
- data/vendor/local/include/glib-2.0/gio/gioscheduler.h +0 -52
- data/vendor/local/include/glib-2.0/gio/giostream.h +0 -112
- data/vendor/local/include/glib-2.0/gio/giotypes.h +0 -375
- data/vendor/local/include/glib-2.0/gio/gloadableicon.h +0 -97
- data/vendor/local/include/glib-2.0/gio/gmemoryinputstream.h +0 -82
- data/vendor/local/include/glib-2.0/gio/gmemoryoutputstream.h +0 -98
- data/vendor/local/include/glib-2.0/gio/gmount.h +0 -242
- data/vendor/local/include/glib-2.0/gio/gmountoperation.h +0 -123
- data/vendor/local/include/glib-2.0/gio/gnativevolumemonitor.h +0 -62
- data/vendor/local/include/glib-2.0/gio/gnetworkaddress.h +0 -73
- data/vendor/local/include/glib-2.0/gio/gnetworkservice.h +0 -71
- data/vendor/local/include/glib-2.0/gio/goutputstream.h +0 -207
- data/vendor/local/include/glib-2.0/gio/gpermission.h +0 -118
- data/vendor/local/include/glib-2.0/gio/gproxy.h +0 -123
- data/vendor/local/include/glib-2.0/gio/gproxyaddress.h +0 -76
- data/vendor/local/include/glib-2.0/gio/gproxyaddressenumerator.h +0 -75
- data/vendor/local/include/glib-2.0/gio/gproxyresolver.h +0 -96
- data/vendor/local/include/glib-2.0/gio/gresolver.h +0 -167
- data/vendor/local/include/glib-2.0/gio/gseekable.h +0 -99
- data/vendor/local/include/glib-2.0/gio/gsettings.h +0 -258
- data/vendor/local/include/glib-2.0/gio/gsettingsbackend.h +0 -138
- data/vendor/local/include/glib-2.0/gio/gsimpleasyncresult.h +0 -125
- data/vendor/local/include/glib-2.0/gio/gsimplepermission.h +0 -45
- data/vendor/local/include/glib-2.0/gio/gsocket.h +0 -194
- data/vendor/local/include/glib-2.0/gio/gsocketaddress.h +0 -79
- data/vendor/local/include/glib-2.0/gio/gsocketaddressenumerator.h +0 -89
- data/vendor/local/include/glib-2.0/gio/gsocketclient.h +0 -152
- data/vendor/local/include/glib-2.0/gio/gsocketconnectable.h +0 -74
- data/vendor/local/include/glib-2.0/gio/gsocketconnection.h +0 -91
- data/vendor/local/include/glib-2.0/gio/gsocketcontrolmessage.h +0 -105
- data/vendor/local/include/glib-2.0/gio/gsocketlistener.h +0 -138
- data/vendor/local/include/glib-2.0/gio/gsocketservice.h +0 -88
- data/vendor/local/include/glib-2.0/gio/gsrvtarget.h +0 -52
- data/vendor/local/include/glib-2.0/gio/gtcpconnection.h +0 -68
- data/vendor/local/include/glib-2.0/gio/gthemedicon.h +0 -63
- data/vendor/local/include/glib-2.0/gio/gthreadedsocketservice.h +0 -81
- data/vendor/local/include/glib-2.0/gio/gvfs.h +0 -125
- data/vendor/local/include/glib-2.0/gio/gvolume.h +0 -211
- data/vendor/local/include/glib-2.0/gio/gvolumemonitor.h +0 -150
- data/vendor/local/include/glib-2.0/gio/gzlibcompressor.h +0 -60
- data/vendor/local/include/glib-2.0/gio/gzlibdecompressor.h +0 -57
- data/vendor/local/include/glib-2.0/glib-object.h +0 -42
- data/vendor/local/include/glib-2.0/glib.h +0 -99
- data/vendor/local/include/glib-2.0/glib/galloca.h +0 -110
- data/vendor/local/include/glib-2.0/glib/garray.h +0 -179
- data/vendor/local/include/glib-2.0/glib/gasyncqueue.h +0 -120
- data/vendor/local/include/glib-2.0/glib/gatomic.h +0 -105
- data/vendor/local/include/glib-2.0/glib/gbacktrace.h +0 -68
- data/vendor/local/include/glib-2.0/glib/gbase64.h +0 -57
- data/vendor/local/include/glib-2.0/glib/gbitlock.h +0 -43
- data/vendor/local/include/glib-2.0/glib/gbookmarkfile.h +0 -215
- data/vendor/local/include/glib-2.0/glib/gcache.h +0 -69
- data/vendor/local/include/glib-2.0/glib/gchecksum.h +0 -86
- data/vendor/local/include/glib-2.0/glib/gcompletion.h +0 -81
- data/vendor/local/include/glib-2.0/glib/gconvert.h +0 -162
- data/vendor/local/include/glib-2.0/glib/gdataset.h +0 -122
- data/vendor/local/include/glib-2.0/glib/gdate.h +0 -263
- data/vendor/local/include/glib-2.0/glib/gdatetime.h +0 -217
- data/vendor/local/include/glib-2.0/glib/gdir.h +0 -52
- data/vendor/local/include/glib-2.0/glib/gerror.h +0 -98
- data/vendor/local/include/glib-2.0/glib/gfileutils.h +0 -128
- data/vendor/local/include/glib-2.0/glib/ghash.h +0 -166
- data/vendor/local/include/glib-2.0/glib/ghook.h +0 -181
- data/vendor/local/include/glib-2.0/glib/ghostutils.h +0 -40
- data/vendor/local/include/glib-2.0/glib/gi18n-lib.h +0 -38
- data/vendor/local/include/glib-2.0/glib/gi18n.h +0 -34
- data/vendor/local/include/glib-2.0/glib/giochannel.h +0 -366
- data/vendor/local/include/glib-2.0/glib/gkeyfile.h +0 -266
- data/vendor/local/include/glib-2.0/glib/glist.h +0 -120
- data/vendor/local/include/glib-2.0/glib/gmacros.h +0 -284
- data/vendor/local/include/glib-2.0/glib/gmain.h +0 -531
- data/vendor/local/include/glib-2.0/glib/gmappedfile.h +0 -49
- data/vendor/local/include/glib-2.0/glib/gmarkup.h +0 -163
- data/vendor/local/include/glib-2.0/glib/gmem.h +0 -309
- data/vendor/local/include/glib-2.0/glib/gmessages.h +0 -343
- data/vendor/local/include/glib-2.0/glib/gnode.h +0 -290
- data/vendor/local/include/glib-2.0/glib/goption.h +0 -370
- data/vendor/local/include/glib-2.0/glib/gpattern.h +0 -49
- data/vendor/local/include/glib-2.0/glib/gpoll.h +0 -117
- data/vendor/local/include/glib-2.0/glib/gprimes.h +0 -51
- data/vendor/local/include/glib-2.0/glib/gprintf.h +0 -52
- data/vendor/local/include/glib-2.0/glib/gqsort.h +0 -46
- data/vendor/local/include/glib-2.0/glib/gquark.h +0 -52
- data/vendor/local/include/glib-2.0/glib/gqueue.h +0 -127
- data/vendor/local/include/glib-2.0/glib/grand.h +0 -85
- data/vendor/local/include/glib-2.0/glib/gregex.h +0 -471
- data/vendor/local/include/glib-2.0/glib/grel.h +0 -101
- data/vendor/local/include/glib-2.0/glib/gscanner.h +0 -278
- data/vendor/local/include/glib-2.0/glib/gsequence.h +0 -128
- data/vendor/local/include/glib-2.0/glib/gshell.h +0 -55
- data/vendor/local/include/glib-2.0/glib/gslice.h +0 -86
- data/vendor/local/include/glib-2.0/glib/gslist.h +0 -114
- data/vendor/local/include/glib-2.0/glib/gspawn.h +0 -139
- data/vendor/local/include/glib-2.0/glib/gstdio.h +0 -147
- data/vendor/local/include/glib-2.0/glib/gstrfuncs.h +0 -269
- data/vendor/local/include/glib-2.0/glib/gstring.h +0 -178
- data/vendor/local/include/glib-2.0/glib/gtestutils.h +0 -297
- data/vendor/local/include/glib-2.0/glib/gthread.h +0 -407
- data/vendor/local/include/glib-2.0/glib/gthreadpool.h +0 -114
- data/vendor/local/include/glib-2.0/glib/gtimer.h +0 -65
- data/vendor/local/include/glib-2.0/glib/gtimezone.h +0 -44
- data/vendor/local/include/glib-2.0/glib/gtree.h +0 -91
- data/vendor/local/include/glib-2.0/glib/gtypes.h +0 -451
- data/vendor/local/include/glib-2.0/glib/gunicode.h +0 -421
- data/vendor/local/include/glib-2.0/glib/gurifuncs.h +0 -81
- data/vendor/local/include/glib-2.0/glib/gutils.h +0 -490
- data/vendor/local/include/glib-2.0/glib/gvariant.h +0 -248
- data/vendor/local/include/glib-2.0/glib/gvarianttype.h +0 -334
- data/vendor/local/include/glib-2.0/glib/gwin32.h +0 -114
- data/vendor/local/include/glib-2.0/gmodule.h +0 -101
- data/vendor/local/include/glib-2.0/gobject/gbinding.h +0 -136
- data/vendor/local/include/glib-2.0/gobject/gboxed.h +0 -248
- data/vendor/local/include/glib-2.0/gobject/gclosure.h +0 -251
- data/vendor/local/include/glib-2.0/gobject/genums.h +0 -261
- data/vendor/local/include/glib-2.0/gobject/gmarshal.h +0 -186
- data/vendor/local/include/glib-2.0/gobject/gobject.h +0 -567
- data/vendor/local/include/glib-2.0/gobject/gobjectnotifyqueue.c +0 -193
- data/vendor/local/include/glib-2.0/gobject/gparam.h +0 -415
- data/vendor/local/include/glib-2.0/gobject/gparamspecs.h +0 -1137
- data/vendor/local/include/glib-2.0/gobject/gsignal.h +0 -509
- data/vendor/local/include/glib-2.0/gobject/gsourceclosure.h +0 -51
- data/vendor/local/include/glib-2.0/gobject/gtype.h +0 -1736
- data/vendor/local/include/glib-2.0/gobject/gtypemodule.h +0 -263
- data/vendor/local/include/glib-2.0/gobject/gtypeplugin.h +0 -134
- data/vendor/local/include/glib-2.0/gobject/gvalue.h +0 -159
- data/vendor/local/include/glib-2.0/gobject/gvaluearray.h +0 -77
- data/vendor/local/include/glib-2.0/gobject/gvaluecollector.h +0 -227
- data/vendor/local/include/glib-2.0/gobject/gvaluetypes.h +0 -260
- data/vendor/local/include/libintl.h +0 -464
- data/vendor/local/lib/GNU.Gettext.dll +0 -0
- data/vendor/local/lib/gio-2.0.def +0 -1143
- data/vendor/local/lib/gio-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0.def +0 -1452
- data/vendor/local/lib/glib-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +0 -284
- data/vendor/local/lib/gmodule-2.0.def +0 -11
- data/vendor/local/lib/gmodule-2.0.lib +0 -0
- data/vendor/local/lib/gobject-2.0.def +0 -370
- data/vendor/local/lib/gobject-2.0.lib +0 -0
- data/vendor/local/lib/gthread-2.0.def +0 -3
- data/vendor/local/lib/gthread-2.0.lib +0 -0
- data/vendor/local/lib/intl.lib +0 -0
- data/vendor/local/lib/libasprintf.dll.a +0 -0
- data/vendor/local/lib/libgio-2.0.dll.a +0 -0
- data/vendor/local/lib/libglib-2.0.dll.a +0 -0
- data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
- data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
- data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
- data/vendor/local/lib/libintl.def +0 -31
- data/vendor/local/lib/libintl.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gio-2.0.pc +0 -15
- data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +0 -11
- data/vendor/local/lib/pkgconfig/glib-2.0.pc +0 -15
- data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +0 -14
- data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +0 -14
- data/vendor/local/lib/pkgconfig/gobject-2.0.pc +0 -11
- data/vendor/local/lib/pkgconfig/gthread-2.0.pc +0 -11
- data/vendor/local/manifest/gettext-runtime-dev_0.18.1.1-2_win32.mft +0 -81
- data/vendor/local/manifest/gettext-runtime_0.18.1.1-2_win32.mft +0 -3
- data/vendor/local/manifest/glib-dev_2.26.0-2_win32.mft +0 -570
- data/vendor/local/manifest/glib_2.26.0-2_win32.mft +0 -102
- data/vendor/local/share/aclocal/glib-2.0.m4 +0 -211
- data/vendor/local/share/aclocal/glib-gettext.m4 +0 -432
- data/vendor/local/share/doc/gettext/bind_textdomain_codeset.3.html +0 -165
- data/vendor/local/share/doc/gettext/bindtextdomain.3.html +0 -160
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext.html +0 -8
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext_GettextResourceManager.html +0 -305
- data/vendor/local/share/doc/gettext/csharpdoc/GNU_Gettext_GettextResourceSet.html +0 -356
- data/vendor/local/share/doc/gettext/csharpdoc/begin.html +0 -11
- data/vendor/local/share/doc/gettext/csharpdoc/index.html +0 -10
- data/vendor/local/share/doc/gettext/csharpdoc/namespaces.html +0 -6
- data/vendor/local/share/doc/gettext/envsubst.1.html +0 -213
- data/vendor/local/share/doc/gettext/gettext.1.html +0 -266
- data/vendor/local/share/doc/gettext/gettext.3.html +0 -186
- data/vendor/local/share/doc/gettext/ngettext.1.html +0 -280
- data/vendor/local/share/doc/gettext/ngettext.3.html +0 -143
- data/vendor/local/share/doc/gettext/textdomain.3.html +0 -150
- data/vendor/local/share/doc/glib-2.26.0/COPYING +0 -482
- data/vendor/local/share/doc/glib-dev-2.26.0/COPYING +0 -482
- data/vendor/local/share/doc/libasprintf/autosprintf_all.html +0 -174
- data/vendor/local/share/glib-2.0/gdb/glib.py +0 -249
- data/vendor/local/share/glib-2.0/gdb/gobject.py +0 -305
- data/vendor/local/share/glib-2.0/gettext/mkinstalldirs +0 -111
- data/vendor/local/share/glib-2.0/gettext/po/Makefile.in.in +0 -279
- data/vendor/local/share/glib-2.0/schemas/gschema.dtd +0 -60
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +0 -1403
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +0 -733
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +0 -343
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +0 -563
- data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +0 -291
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +0 -620
- data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +0 -245
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +0 -423
- data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +0 -398
- data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +0 -254
- data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +0 -6211
- data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +0 -1833
- data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +0 -618
- data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +0 -2050
- data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +0 -1124
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +0 -1215
- data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +0 -540
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +0 -1416
- data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +0 -272
- data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +0 -206
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +0 -7462
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +0 -120
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +0 -516
- data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +0 -312
- data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +0 -155
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +0 -3144
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +0 -262
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +0 -353
- data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +0 -301
- data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +0 -217
- data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +0 -188
- data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +0 -189
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +0 -261
- data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +0 -479
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +0 -331
- data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +0 -717
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +0 -196
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +0 -388
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +0 -808
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +0 -301
- data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +0 -185
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +0 -393
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +0 -1465
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +0 -848
- data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +0 -343
- data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +0 -311
- data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +0 -1012
- data/vendor/local/share/gtk-doc/html/gio/GPermission.html +0 -560
- data/vendor/local/share/gtk-doc/html/gio/GProxy.html +0 -312
- data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +0 -348
- data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +0 -301
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +0 -787
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +0 -350
- data/vendor/local/share/gtk-doc/html/gio/GSettings.html +0 -2424
- data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +0 -609
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +0 -1193
- data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +0 -107
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +0 -2438
- data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +0 -297
- data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +0 -1292
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +0 -513
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +0 -337
- data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +0 -275
- data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +0 -745
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +0 -258
- data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +0 -165
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +0 -377
- data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +0 -197
- data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +0 -298
- data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +0 -222
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +0 -389
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +0 -288
- data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +0 -237
- data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +0 -237
- data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +0 -491
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +0 -274
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +0 -1028
- data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +0 -705
- data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +0 -252
- data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +0 -170
- data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +0 -65
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +0 -153
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +0 -155
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +0 -1084
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +0 -223
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +0 -1598
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +0 -112
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +0 -6250
- data/vendor/local/share/gtk-doc/html/gio/async.html +0 -44
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +0 -207
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +0 -50
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +0 -180
- data/vendor/local/share/gtk-doc/html/gio/ch24.html +0 -75
- data/vendor/local/share/gtk-doc/html/gio/ch25.html +0 -217
- data/vendor/local/share/gtk-doc/html/gio/ch25s02.html +0 -41
- data/vendor/local/share/gtk-doc/html/gio/ch25s03.html +0 -39
- data/vendor/local/share/gtk-doc/html/gio/ch26.html +0 -57
- data/vendor/local/share/gtk-doc/html/gio/ch26s02.html +0 -59
- data/vendor/local/share/gtk-doc/html/gio/ch26s03.html +0 -159
- data/vendor/local/share/gtk-doc/html/gio/ch26s04.html +0 -46
- data/vendor/local/share/gtk-doc/html/gio/ch26s05.html +0 -48
- data/vendor/local/share/gtk-doc/html/gio/ch26s06.html +0 -277
- data/vendor/local/share/gtk-doc/html/gio/ch26s07.html +0 -95
- data/vendor/local/share/gtk-doc/html/gio/ch27.html +0 -70
- data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +0 -130
- data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +0 -202
- data/vendor/local/share/gtk-doc/html/gio/ch27s04.html +0 -96
- data/vendor/local/share/gtk-doc/html/gio/ch27s05.html +0 -823
- data/vendor/local/share/gtk-doc/html/gio/ch27s06.html +0 -828
- data/vendor/local/share/gtk-doc/html/gio/conversion.html +0 -44
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +0 -109
- data/vendor/local/share/gtk-doc/html/gio/extending.html +0 -41
- data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +0 -38
- data/vendor/local/share/gtk-doc/html/gio/file_mon.html +0 -33
- data/vendor/local/share/gtk-doc/html/gio/file_ops.html +0 -50
- data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +0 -41
- data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +0 -59
- data/vendor/local/share/gtk-doc/html/gio/gdbus.html +0 -243
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +0 -316
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +0 -1117
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +0 -216
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +0 -339
- data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +0 -473
- data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +0 -391
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +0 -159
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +0 -159
- data/vendor/local/share/gtk-doc/html/gio/gio-GDBusError.html +0 -908
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +0 -933
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +0 -409
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +0 -297
- data/vendor/local/share/gtk-doc/html/gio/gio-GSrvTarget.html +0 -313
- data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +0 -736
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +0 -909
- data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +0 -666
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +0 -123
- data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +0 -53
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +0 -1736
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +0 -2006
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +0 -102
- data/vendor/local/share/gtk-doc/html/gio/gvfs-overview.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +0 -53
- data/vendor/local/share/gtk-doc/html/gio/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/icons.html +0 -50
- data/vendor/local/share/gtk-doc/html/gio/index.html +0 -435
- data/vendor/local/share/gtk-doc/html/gio/index.sgml +0 -2513
- data/vendor/local/share/gtk-doc/html/gio/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +0 -62
- data/vendor/local/share/gtk-doc/html/gio/networking.html +0 -69
- data/vendor/local/share/gtk-doc/html/gio/permissions.html +0 -39
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +0 -39
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +0 -390
- data/vendor/local/share/gtk-doc/html/gio/resolver.html +0 -50
- data/vendor/local/share/gtk-doc/html/gio/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/settings.html +0 -38
- data/vendor/local/share/gtk-doc/html/gio/streaming.html +0 -92
- data/vendor/local/share/gtk-doc/html/gio/style.css +0 -265
- data/vendor/local/share/gtk-doc/html/gio/tools.html +0 -44
- data/vendor/local/share/gtk-doc/html/gio/types.html +0 -41
- data/vendor/local/share/gtk-doc/html/gio/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/gio/utils.html +0 -33
- data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +0 -47
- data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +0 -77
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +0 -180
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +0 -312
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +0 -559
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +0 -362
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +0 -102
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +0 -124
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +0 -83
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +0 -194
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +0 -420
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +0 -359
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +0 -396
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +0 -417
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +0 -158
- data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +0 -419
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +0 -8214
- data/vendor/local/share/gtk-doc/html/glib/file-name-encodings.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +0 -893
- data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +0 -818
- data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +0 -414
- data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +0 -466
- data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +0 -802
- data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +0 -372
- data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +0 -500
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +0 -2056
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +0 -560
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +0 -1686
- data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +0 -398
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +0 -1094
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +0 -1671
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +0 -460
- data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +0 -528
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +0 -2045
- data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +0 -1278
- data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +0 -1406
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +0 -548
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +0 -1026
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +0 -1852
- data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +0 -2201
- data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +0 -239
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +0 -4278
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +0 -1864
- data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +0 -295
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +0 -1512
- data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +0 -1367
- data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +0 -229
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +0 -692
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +0 -2196
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +0 -2740
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +0 -612
- data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +0 -1451
- data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +0 -389
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +0 -1033
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +0 -141
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +0 -706
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +0 -510
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +0 -748
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +0 -1105
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +0 -1552
- data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +0 -1468
- data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +0 -194
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +0 -2745
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +0 -752
- data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +0 -269
- data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +0 -578
- data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +0 -532
- data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +0 -1353
- data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +0 -238
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +0 -1282
- data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +0 -1213
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +0 -924
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +0 -470
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +0 -301
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +0 -2960
- data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +0 -1291
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +0 -1805
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +0 -3478
- data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +0 -606
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +0 -3411
- data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +0 -245
- data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +0 -188
- data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +0 -263
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +0 -400
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +0 -3448
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +0 -253
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +0 -438
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +0 -476
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +0 -466
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +0 -159
- data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +0 -118
- data/vendor/local/share/gtk-doc/html/glib/glib-core.html +0 -64
- data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +0 -160
- data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +0 -120
- data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +0 -59
- data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +0 -93
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +0 -2217
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +0 -121
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +0 -319
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +0 -118
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +0 -2183
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +0 -2671
- data/vendor/local/share/gtk-doc/html/glib/glib.html +0 -80
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +0 -72
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +0 -131
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +0 -1288
- data/vendor/local/share/gtk-doc/html/glib/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/index.html +0 -344
- data/vendor/local/share/gtk-doc/html/glib/index.sgml +0 -2846
- data/vendor/local/share/gtk-doc/html/glib/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/mainloop-states.gif +0 -0
- data/vendor/local/share/gtk-doc/html/glib/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/glib/style.css +0 -265
- data/vendor/local/share/gtk-doc/html/glib/tools.html +0 -41
- data/vendor/local/share/gtk-doc/html/glib/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +0 -803
- data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +0 -710
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +0 -453
- data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +0 -47
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +0 -85
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +0 -55
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +0 -51
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +0 -46
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +0 -38
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +0 -46
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +0 -73
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +0 -201
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +0 -178
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +0 -42
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +0 -42
- data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +0 -50
- data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +0 -2721
- data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +0 -136
- data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +0 -113
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +0 -293
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +0 -263
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +0 -92
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +0 -214
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +0 -361
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +0 -307
- data/vendor/local/share/gtk-doc/html/gobject/glue.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +0 -417
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +0 -2412
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +0 -847
- data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +0 -1433
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +0 -776
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +0 -2741
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +0 -5555
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +0 -2875
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +0 -4460
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +0 -416
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +0 -260
- data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +0 -234
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +0 -270
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +0 -117
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +0 -762
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +0 -801
- data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +0 -143
- data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +0 -287
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +0 -316
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +0 -76
- data/vendor/local/share/gtk-doc/html/gobject/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +0 -100
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +0 -86
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +0 -113
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +0 -122
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +0 -257
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +0 -283
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +0 -125
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +0 -167
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +0 -160
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +0 -121
- data/vendor/local/share/gtk-doc/html/gobject/index.html +0 -192
- data/vendor/local/share/gtk-doc/html/gobject/index.sgml +0 -786
- data/vendor/local/share/gtk-doc/html/gobject/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/pr01.html +0 -72
- data/vendor/local/share/gtk-doc/html/gobject/pt01.html +0 -80
- data/vendor/local/share/gtk-doc/html/gobject/pt02.html +0 -66
- data/vendor/local/share/gtk-doc/html/gobject/pt03.html +0 -55
- data/vendor/local/share/gtk-doc/html/gobject/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gobject/rn01.html +0 -85
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +0 -47
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +0 -377
- data/vendor/local/share/gtk-doc/html/gobject/style.css +0 -265
- data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +0 -35
- data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +0 -40
- data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +0 -63
- data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +0 -55
- data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +0 -43
- data/vendor/local/share/gtk-doc/html/gobject/up.png +0 -0
- data/vendor/local/share/locale/af/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/am/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cy/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/dz/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en@boldquot/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/en@quot/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hy/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/is/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ka/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/kk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ku/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/locale.alias +0 -77
- data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mai/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nds/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ps/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/rw/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/si/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@ije/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/wa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/yi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gettext-runtime.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/man/man1/envsubst.1 +0 -54
- data/vendor/local/share/man/man1/gettext.1 +0 -69
- data/vendor/local/share/man/man1/glib-genmarshal.1 +0 -312
- data/vendor/local/share/man/man1/glib-mkenums.1 +0 -246
- data/vendor/local/share/man/man1/gobject-query.1 +0 -83
- data/vendor/local/share/man/man1/ngettext.1 +0 -68
- data/vendor/local/share/man/man3/bind_textdomain_codeset.3 +0 -72
- data/vendor/local/share/man/man3/bindtextdomain.3 +0 -69
- data/vendor/local/share/man/man3/dcgettext.3 +0 -1
- data/vendor/local/share/man/man3/dcngettext.3 +0 -1
- data/vendor/local/share/man/man3/dgettext.3 +0 -1
- data/vendor/local/share/man/man3/dngettext.3 +0 -1
- data/vendor/local/share/man/man3/gettext.3 +0 -99
- data/vendor/local/share/man/man3/ngettext.3 +0 -60
- data/vendor/local/share/man/man3/textdomain.3 +0 -57
- data/vendor/local/src/tml/packaging/gettext_0.18.1.1-2_win32.log +0 -10423
- data/vendor/local/src/tml/packaging/gettext_0.18.1.1-2_win32.sh +0 -457
- data/vendor/local/src/tml/packaging/glib_2.26.0-2_win32.log +0 -2867
- data/vendor/local/src/tml/packaging/glib_2.26.0-2_win32.sh +0 -64
@@ -1,398 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Caches</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
7
|
-
<link rel="home" href="index.html" title="GLib Reference Manual">
|
8
|
-
<link rel="up" href="glib-data-types.html" title="GLib Data Types">
|
9
|
-
<link rel="prev" href="glib-Relations-and-Tuples.html" title="Relations and Tuples">
|
10
|
-
<link rel="next" href="glib-Memory-Allocators.html" title="Memory Allocators">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
|
12
|
-
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
</head>
|
14
|
-
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
16
|
-
<tr valign="middle">
|
17
|
-
<td><a accesskey="p" href="glib-Relations-and-Tuples.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
18
|
-
<td><a accesskey="u" href="glib-data-types.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
19
|
-
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
20
|
-
<th width="100%" align="center">GLib Reference Manual</th>
|
21
|
-
<td><a accesskey="n" href="glib-Memory-Allocators.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
22
|
-
</tr>
|
23
|
-
<tr><td colspan="5" class="shortcuts">
|
24
|
-
<a href="#glib-Caches.synopsis" class="shortcut">Top</a>
|
25
|
-
|
|
26
|
-
<a href="#glib-Caches.description" class="shortcut">Description</a>
|
27
|
-
</td></tr>
|
28
|
-
</table>
|
29
|
-
<div class="refentry">
|
30
|
-
<a name="glib-Caches"></a><div class="titlepage"></div>
|
31
|
-
<div class="refnamediv"><table width="100%"><tr>
|
32
|
-
<td valign="top">
|
33
|
-
<h2><span class="refentrytitle"><a name="glib-Caches.top_of_page"></a>Caches</span></h2>
|
34
|
-
<p>Caches — caches allow sharing of complex data structures
|
35
|
-
to save resources</p>
|
36
|
-
</td>
|
37
|
-
<td valign="top" align="right"></td>
|
38
|
-
</tr></table></div>
|
39
|
-
<div class="refsynopsisdiv">
|
40
|
-
<a name="glib-Caches.synopsis"></a><h2>Synopsis</h2>
|
41
|
-
<pre class="synopsis">
|
42
|
-
#include <glib.h>
|
43
|
-
|
44
|
-
<a class="link" href="glib-Caches.html#GCache" title="GCache">GCache</a>;
|
45
|
-
<a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="returnvalue">GCache</span></a> * <a class="link" href="glib-Caches.html#g-cache-new" title="g_cache_new ()">g_cache_new</a> (<em class="parameter"><code><a class="link" href="glib-Caches.html#GCacheNewFunc" title="GCacheNewFunc ()"><span class="type">GCacheNewFunc</span></a> value_new_func</code></em>,
|
46
|
-
<em class="parameter"><code><a class="link" href="glib-Caches.html#GCacheDestroyFunc" title="GCacheDestroyFunc ()"><span class="type">GCacheDestroyFunc</span></a> value_destroy_func</code></em>,
|
47
|
-
<em class="parameter"><code><a class="link" href="glib-Caches.html#GCacheDupFunc" title="GCacheDupFunc ()"><span class="type">GCacheDupFunc</span></a> key_dup_func</code></em>,
|
48
|
-
<em class="parameter"><code><a class="link" href="glib-Caches.html#GCacheDestroyFunc" title="GCacheDestroyFunc ()"><span class="type">GCacheDestroyFunc</span></a> key_destroy_func</code></em>,
|
49
|
-
<em class="parameter"><code><a class="link" href="glib-Hash-Tables.html#GHashFunc" title="GHashFunc ()"><span class="type">GHashFunc</span></a> hash_key_func</code></em>,
|
50
|
-
<em class="parameter"><code><a class="link" href="glib-Hash-Tables.html#GHashFunc" title="GHashFunc ()"><span class="type">GHashFunc</span></a> hash_value_func</code></em>,
|
51
|
-
<em class="parameter"><code><a class="link" href="glib-Hash-Tables.html#GEqualFunc" title="GEqualFunc ()"><span class="type">GEqualFunc</span></a> key_equal_func</code></em>);
|
52
|
-
<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="glib-Caches.html#g-cache-insert" title="g_cache_insert ()">g_cache_insert</a> (<em class="parameter"><code><a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> *cache</code></em>,
|
53
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> key</code></em>);
|
54
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-Caches.html#g-cache-remove" title="g_cache_remove ()">g_cache_remove</a> (<em class="parameter"><code><a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> *cache</code></em>,
|
55
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gconstpointer" title="gconstpointer"><span class="type">gconstpointer</span></a> value</code></em>);
|
56
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-Caches.html#g-cache-destroy" title="g_cache_destroy ()">g_cache_destroy</a> (<em class="parameter"><code><a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> *cache</code></em>);
|
57
|
-
|
58
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-Caches.html#g-cache-key-foreach" title="g_cache_key_foreach ()">g_cache_key_foreach</a> (<em class="parameter"><code><a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> *cache</code></em>,
|
59
|
-
<em class="parameter"><code><a class="link" href="glib-Hash-Tables.html#GHFunc" title="GHFunc ()"><span class="type">GHFunc</span></a> func</code></em>,
|
60
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
|
61
|
-
<span class="returnvalue">void</span> <a class="link" href="glib-Caches.html#g-cache-value-foreach" title="g_cache_value_foreach ()">g_cache_value_foreach</a> (<em class="parameter"><code><a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> *cache</code></em>,
|
62
|
-
<em class="parameter"><code><a class="link" href="glib-Hash-Tables.html#GHFunc" title="GHFunc ()"><span class="type">GHFunc</span></a> func</code></em>,
|
63
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
|
64
|
-
|
65
|
-
<span class="returnvalue">void</span> (<a class="link" href="glib-Caches.html#GCacheDestroyFunc" title="GCacheDestroyFunc ()">*GCacheDestroyFunc</a>) (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> value</code></em>);
|
66
|
-
<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> (<a class="link" href="glib-Caches.html#GCacheDupFunc" title="GCacheDupFunc ()">*GCacheDupFunc</a>) (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> value</code></em>);
|
67
|
-
<a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> (<a class="link" href="glib-Caches.html#GCacheNewFunc" title="GCacheNewFunc ()">*GCacheNewFunc</a>) (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> key</code></em>);
|
68
|
-
</pre>
|
69
|
-
</div>
|
70
|
-
<div class="refsect1">
|
71
|
-
<a name="glib-Caches.description"></a><h2>Description</h2>
|
72
|
-
<p>
|
73
|
-
A <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> allows sharing of complex data structures, in order to
|
74
|
-
save system resources.
|
75
|
-
</p>
|
76
|
-
<p>
|
77
|
-
GTK+ uses caches for <a href="http://library.gnome.org/devel/gtk/unstable/GtkStyle.html"><span class="type">GtkStyles</span></a> and <a href="http://library.gnome.org/devel/gdk/unstable/gdk3-Graphics-Contexts.html#GdkGC"><span class="type">GdkGCs</span></a>. These consume a lot of
|
78
|
-
resources, so a <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> is used to see if a <a href="http://library.gnome.org/devel/gtk/unstable/GtkStyle.html"><span class="type">GtkStyle</span></a> or <a href="http://library.gnome.org/devel/gdk/unstable/gdk3-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> with
|
79
|
-
the required properties already exists. If it does, then the
|
80
|
-
existing object is used instead of creating a new one.
|
81
|
-
</p>
|
82
|
-
<p>
|
83
|
-
<a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> uses keys and values. A <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> key describes the properties
|
84
|
-
of a particular resource. A <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> value is the actual resource.
|
85
|
-
</p>
|
86
|
-
</div>
|
87
|
-
<div class="refsect1">
|
88
|
-
<a name="glib-Caches.details"></a><h2>Details</h2>
|
89
|
-
<div class="refsect2">
|
90
|
-
<a name="GCache"></a><h3>GCache</h3>
|
91
|
-
<pre class="programlisting">typedef struct _GCache GCache;</pre>
|
92
|
-
<p>
|
93
|
-
The <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> struct is an opaque data structure containing
|
94
|
-
information about a <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a>. It should only be accessed via the
|
95
|
-
following functions.
|
96
|
-
</p>
|
97
|
-
</div>
|
98
|
-
<hr>
|
99
|
-
<div class="refsect2">
|
100
|
-
<a name="g-cache-new"></a><h3>g_cache_new ()</h3>
|
101
|
-
<pre class="programlisting"><a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="returnvalue">GCache</span></a> * g_cache_new (<em class="parameter"><code><a class="link" href="glib-Caches.html#GCacheNewFunc" title="GCacheNewFunc ()"><span class="type">GCacheNewFunc</span></a> value_new_func</code></em>,
|
102
|
-
<em class="parameter"><code><a class="link" href="glib-Caches.html#GCacheDestroyFunc" title="GCacheDestroyFunc ()"><span class="type">GCacheDestroyFunc</span></a> value_destroy_func</code></em>,
|
103
|
-
<em class="parameter"><code><a class="link" href="glib-Caches.html#GCacheDupFunc" title="GCacheDupFunc ()"><span class="type">GCacheDupFunc</span></a> key_dup_func</code></em>,
|
104
|
-
<em class="parameter"><code><a class="link" href="glib-Caches.html#GCacheDestroyFunc" title="GCacheDestroyFunc ()"><span class="type">GCacheDestroyFunc</span></a> key_destroy_func</code></em>,
|
105
|
-
<em class="parameter"><code><a class="link" href="glib-Hash-Tables.html#GHashFunc" title="GHashFunc ()"><span class="type">GHashFunc</span></a> hash_key_func</code></em>,
|
106
|
-
<em class="parameter"><code><a class="link" href="glib-Hash-Tables.html#GHashFunc" title="GHashFunc ()"><span class="type">GHashFunc</span></a> hash_value_func</code></em>,
|
107
|
-
<em class="parameter"><code><a class="link" href="glib-Hash-Tables.html#GEqualFunc" title="GEqualFunc ()"><span class="type">GEqualFunc</span></a> key_equal_func</code></em>);</pre>
|
108
|
-
<p>
|
109
|
-
Creates a new <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a>.
|
110
|
-
</p>
|
111
|
-
<div class="variablelist"><table border="0">
|
112
|
-
<col align="left" valign="top">
|
113
|
-
<tbody>
|
114
|
-
<tr>
|
115
|
-
<td><p><span class="term"><em class="parameter"><code>value_new_func</code></em> :</span></p></td>
|
116
|
-
<td>a function to create a new object given a key.
|
117
|
-
This is called by <a class="link" href="glib-Caches.html#g-cache-insert" title="g_cache_insert ()"><code class="function">g_cache_insert()</code></a> if an object
|
118
|
-
with the given key does not already exist.
|
119
|
-
</td>
|
120
|
-
</tr>
|
121
|
-
<tr>
|
122
|
-
<td><p><span class="term"><em class="parameter"><code>value_destroy_func</code></em> :</span></p></td>
|
123
|
-
<td>a function to destroy an object. It is called
|
124
|
-
by <a class="link" href="glib-Caches.html#g-cache-remove" title="g_cache_remove ()"><code class="function">g_cache_remove()</code></a> when the object is no
|
125
|
-
longer needed (i.e. its reference count drops
|
126
|
-
to 0).
|
127
|
-
</td>
|
128
|
-
</tr>
|
129
|
-
<tr>
|
130
|
-
<td><p><span class="term"><em class="parameter"><code>key_dup_func</code></em> :</span></p></td>
|
131
|
-
<td>a function to copy a key. It is called by
|
132
|
-
<a class="link" href="glib-Caches.html#g-cache-insert" title="g_cache_insert ()"><code class="function">g_cache_insert()</code></a> if the key does not already exist in
|
133
|
-
the <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a>.
|
134
|
-
</td>
|
135
|
-
</tr>
|
136
|
-
<tr>
|
137
|
-
<td><p><span class="term"><em class="parameter"><code>key_destroy_func</code></em> :</span></p></td>
|
138
|
-
<td>a function to destroy a key. It is called by
|
139
|
-
<a class="link" href="glib-Caches.html#g-cache-remove" title="g_cache_remove ()"><code class="function">g_cache_remove()</code></a> when the object is no longer
|
140
|
-
needed (i.e. its reference count drops to 0).
|
141
|
-
</td>
|
142
|
-
</tr>
|
143
|
-
<tr>
|
144
|
-
<td><p><span class="term"><em class="parameter"><code>hash_key_func</code></em> :</span></p></td>
|
145
|
-
<td>a function to create a hash value from a key.
|
146
|
-
</td>
|
147
|
-
</tr>
|
148
|
-
<tr>
|
149
|
-
<td><p><span class="term"><em class="parameter"><code>hash_value_func</code></em> :</span></p></td>
|
150
|
-
<td>a function to create a hash value from a value.
|
151
|
-
</td>
|
152
|
-
</tr>
|
153
|
-
<tr>
|
154
|
-
<td><p><span class="term"><em class="parameter"><code>key_equal_func</code></em> :</span></p></td>
|
155
|
-
<td>a function to compare two keys. It should return
|
156
|
-
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the two keys are equivalent.
|
157
|
-
</td>
|
158
|
-
</tr>
|
159
|
-
<tr>
|
160
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
161
|
-
<td>a new <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a>.
|
162
|
-
</td>
|
163
|
-
</tr>
|
164
|
-
</tbody>
|
165
|
-
</table></div>
|
166
|
-
</div>
|
167
|
-
<hr>
|
168
|
-
<div class="refsect2">
|
169
|
-
<a name="g-cache-insert"></a><h3>g_cache_insert ()</h3>
|
170
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> g_cache_insert (<em class="parameter"><code><a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> *cache</code></em>,
|
171
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> key</code></em>);</pre>
|
172
|
-
<p>
|
173
|
-
Gets the value corresponding to the given key, creating it if
|
174
|
-
necessary. It first checks if the value already exists in the
|
175
|
-
<a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a>, by using the <em class="parameter"><code>key_equal_func</code></em> function passed to
|
176
|
-
<a class="link" href="glib-Caches.html#g-cache-new" title="g_cache_new ()"><code class="function">g_cache_new()</code></a>. If it does already exist it is returned, and its
|
177
|
-
reference count is increased by one. If the value does not currently
|
178
|
-
exist, if is created by calling the <em class="parameter"><code>value_new_func</code></em>. The key is
|
179
|
-
duplicated by calling <em class="parameter"><code>key_dup_func</code></em> and the duplicated key and value
|
180
|
-
are inserted into the <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a>.
|
181
|
-
</p>
|
182
|
-
<div class="variablelist"><table border="0">
|
183
|
-
<col align="left" valign="top">
|
184
|
-
<tbody>
|
185
|
-
<tr>
|
186
|
-
<td><p><span class="term"><em class="parameter"><code>cache</code></em> :</span></p></td>
|
187
|
-
<td>a <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a>.
|
188
|
-
</td>
|
189
|
-
</tr>
|
190
|
-
<tr>
|
191
|
-
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
|
192
|
-
<td>a key describing a <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> object.
|
193
|
-
</td>
|
194
|
-
</tr>
|
195
|
-
<tr>
|
196
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
197
|
-
<td>a pointer to a <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> value.
|
198
|
-
</td>
|
199
|
-
</tr>
|
200
|
-
</tbody>
|
201
|
-
</table></div>
|
202
|
-
</div>
|
203
|
-
<hr>
|
204
|
-
<div class="refsect2">
|
205
|
-
<a name="g-cache-remove"></a><h3>g_cache_remove ()</h3>
|
206
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_cache_remove (<em class="parameter"><code><a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> *cache</code></em>,
|
207
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gconstpointer" title="gconstpointer"><span class="type">gconstpointer</span></a> value</code></em>);</pre>
|
208
|
-
<p>
|
209
|
-
Decreases the reference count of the given value. If it drops to 0
|
210
|
-
then the value and its corresponding key are destroyed, using the
|
211
|
-
<em class="parameter"><code>value_destroy_func</code></em> and <em class="parameter"><code>key_destroy_func</code></em> passed to <a class="link" href="glib-Caches.html#g-cache-new" title="g_cache_new ()"><code class="function">g_cache_new()</code></a>.
|
212
|
-
</p>
|
213
|
-
<div class="variablelist"><table border="0">
|
214
|
-
<col align="left" valign="top">
|
215
|
-
<tbody>
|
216
|
-
<tr>
|
217
|
-
<td><p><span class="term"><em class="parameter"><code>cache</code></em> :</span></p></td>
|
218
|
-
<td>a <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a>.
|
219
|
-
</td>
|
220
|
-
</tr>
|
221
|
-
<tr>
|
222
|
-
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
|
223
|
-
<td>the value to remove.
|
224
|
-
</td>
|
225
|
-
</tr>
|
226
|
-
</tbody>
|
227
|
-
</table></div>
|
228
|
-
</div>
|
229
|
-
<hr>
|
230
|
-
<div class="refsect2">
|
231
|
-
<a name="g-cache-destroy"></a><h3>g_cache_destroy ()</h3>
|
232
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_cache_destroy (<em class="parameter"><code><a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> *cache</code></em>);</pre>
|
233
|
-
<p>
|
234
|
-
Frees the memory allocated for the <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a>.
|
235
|
-
</p>
|
236
|
-
<p>
|
237
|
-
Note that it does not destroy the keys and values which were
|
238
|
-
contained in the <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a>.
|
239
|
-
</p>
|
240
|
-
<div class="variablelist"><table border="0">
|
241
|
-
<col align="left" valign="top">
|
242
|
-
<tbody><tr>
|
243
|
-
<td><p><span class="term"><em class="parameter"><code>cache</code></em> :</span></p></td>
|
244
|
-
<td>a <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a>.
|
245
|
-
</td>
|
246
|
-
</tr></tbody>
|
247
|
-
</table></div>
|
248
|
-
</div>
|
249
|
-
<hr>
|
250
|
-
<div class="refsect2">
|
251
|
-
<a name="g-cache-key-foreach"></a><h3>g_cache_key_foreach ()</h3>
|
252
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_cache_key_foreach (<em class="parameter"><code><a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> *cache</code></em>,
|
253
|
-
<em class="parameter"><code><a class="link" href="glib-Hash-Tables.html#GHFunc" title="GHFunc ()"><span class="type">GHFunc</span></a> func</code></em>,
|
254
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
255
|
-
<p>
|
256
|
-
Calls the given function for each of the keys in the <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a>.
|
257
|
-
</p>
|
258
|
-
<p>
|
259
|
-
NOTE <em class="parameter"><code>func</code></em> is passed three parameters, the value and key of a cache
|
260
|
-
entry and the <em class="parameter"><code>user_data</code></em>. The order of value and key is different
|
261
|
-
from the order in which <a class="link" href="glib-Hash-Tables.html#g-hash-table-foreach" title="g_hash_table_foreach ()"><code class="function">g_hash_table_foreach()</code></a> passes key-value
|
262
|
-
pairs to its callback function !
|
263
|
-
</p>
|
264
|
-
<div class="variablelist"><table border="0">
|
265
|
-
<col align="left" valign="top">
|
266
|
-
<tbody>
|
267
|
-
<tr>
|
268
|
-
<td><p><span class="term"><em class="parameter"><code>cache</code></em> :</span></p></td>
|
269
|
-
<td>a <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a>.
|
270
|
-
</td>
|
271
|
-
</tr>
|
272
|
-
<tr>
|
273
|
-
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
|
274
|
-
<td>the function to call with each <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> key.
|
275
|
-
</td>
|
276
|
-
</tr>
|
277
|
-
<tr>
|
278
|
-
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
279
|
-
<td>user data to pass to the function.
|
280
|
-
</td>
|
281
|
-
</tr>
|
282
|
-
</tbody>
|
283
|
-
</table></div>
|
284
|
-
</div>
|
285
|
-
<hr>
|
286
|
-
<div class="refsect2">
|
287
|
-
<a name="g-cache-value-foreach"></a><h3>g_cache_value_foreach ()</h3>
|
288
|
-
<pre class="programlisting"><span class="returnvalue">void</span> g_cache_value_foreach (<em class="parameter"><code><a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> *cache</code></em>,
|
289
|
-
<em class="parameter"><code><a class="link" href="glib-Hash-Tables.html#GHFunc" title="GHFunc ()"><span class="type">GHFunc</span></a> func</code></em>,
|
290
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
291
|
-
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
292
|
-
<h3 class="title">Warning</h3>
|
293
|
-
<p><code class="literal">g_cache_value_foreach</code> has been deprecated since version 2.10 and should not be used in newly-written code. The reason is that it passes pointers to internal
|
294
|
-
data structures to <em class="parameter"><code>func</code></em>; use <a class="link" href="glib-Caches.html#g-cache-key-foreach" title="g_cache_key_foreach ()"><code class="function">g_cache_key_foreach()</code></a>
|
295
|
-
instead</p>
|
296
|
-
</div>
|
297
|
-
<p>
|
298
|
-
Calls the given function for each of the values in the <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a>.
|
299
|
-
</p>
|
300
|
-
<div class="variablelist"><table border="0">
|
301
|
-
<col align="left" valign="top">
|
302
|
-
<tbody>
|
303
|
-
<tr>
|
304
|
-
<td><p><span class="term"><em class="parameter"><code>cache</code></em> :</span></p></td>
|
305
|
-
<td>a <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a>.
|
306
|
-
</td>
|
307
|
-
</tr>
|
308
|
-
<tr>
|
309
|
-
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
|
310
|
-
<td>the function to call with each <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> value.
|
311
|
-
</td>
|
312
|
-
</tr>
|
313
|
-
<tr>
|
314
|
-
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
|
315
|
-
<td>user data to pass to the function.
|
316
|
-
</td>
|
317
|
-
</tr>
|
318
|
-
</tbody>
|
319
|
-
</table></div>
|
320
|
-
</div>
|
321
|
-
<hr>
|
322
|
-
<div class="refsect2">
|
323
|
-
<a name="GCacheDestroyFunc"></a><h3>GCacheDestroyFunc ()</h3>
|
324
|
-
<pre class="programlisting"><span class="returnvalue">void</span> (*GCacheDestroyFunc) (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> value</code></em>);</pre>
|
325
|
-
<p>
|
326
|
-
Specifies the type of the <em class="parameter"><code>value_destroy_func</code></em> and <em class="parameter"><code>key_destroy_func</code></em>
|
327
|
-
functions passed to <a class="link" href="glib-Caches.html#g-cache-new" title="g_cache_new ()"><code class="function">g_cache_new()</code></a>. The functions are passed a
|
328
|
-
pointer to the <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> key or <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> value and should free any
|
329
|
-
memory and other resources associated with it.
|
330
|
-
</p>
|
331
|
-
<div class="variablelist"><table border="0">
|
332
|
-
<col align="left" valign="top">
|
333
|
-
<tbody><tr>
|
334
|
-
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
|
335
|
-
<td>the <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> value to destroy.
|
336
|
-
</td>
|
337
|
-
</tr></tbody>
|
338
|
-
</table></div>
|
339
|
-
</div>
|
340
|
-
<hr>
|
341
|
-
<div class="refsect2">
|
342
|
-
<a name="GCacheDupFunc"></a><h3>GCacheDupFunc ()</h3>
|
343
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> (*GCacheDupFunc) (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> value</code></em>);</pre>
|
344
|
-
<p>
|
345
|
-
Specifies the type of the <em class="parameter"><code>key_dup_func</code></em> function passed to
|
346
|
-
<a class="link" href="glib-Caches.html#g-cache-new" title="g_cache_new ()"><code class="function">g_cache_new()</code></a>. The function is passed a key
|
347
|
-
(<span class="emphasis"><em>not</em></span> a value as the prototype implies) and
|
348
|
-
should return a duplicate of the key.
|
349
|
-
</p>
|
350
|
-
<div class="variablelist"><table border="0">
|
351
|
-
<col align="left" valign="top">
|
352
|
-
<tbody>
|
353
|
-
<tr>
|
354
|
-
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
|
355
|
-
<td>the <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> key to destroy (<span class="emphasis"><em>not</em></span> a
|
356
|
-
<a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> value as it seems).
|
357
|
-
</td>
|
358
|
-
</tr>
|
359
|
-
<tr>
|
360
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
361
|
-
<td>a copy of the <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> key.
|
362
|
-
</td>
|
363
|
-
</tr>
|
364
|
-
</tbody>
|
365
|
-
</table></div>
|
366
|
-
</div>
|
367
|
-
<hr>
|
368
|
-
<div class="refsect2">
|
369
|
-
<a name="GCacheNewFunc"></a><h3>GCacheNewFunc ()</h3>
|
370
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> (*GCacheNewFunc) (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> key</code></em>);</pre>
|
371
|
-
<p>
|
372
|
-
Specifies the type of the <em class="parameter"><code>value_new_func</code></em> function passed to
|
373
|
-
<a class="link" href="glib-Caches.html#g-cache-new" title="g_cache_new ()"><code class="function">g_cache_new()</code></a>. It is passed a <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> key and should create the
|
374
|
-
value corresponding to the key.
|
375
|
-
</p>
|
376
|
-
<div class="variablelist"><table border="0">
|
377
|
-
<col align="left" valign="top">
|
378
|
-
<tbody>
|
379
|
-
<tr>
|
380
|
-
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
|
381
|
-
<td>a <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> key.
|
382
|
-
</td>
|
383
|
-
</tr>
|
384
|
-
<tr>
|
385
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
386
|
-
<td>a new <a class="link" href="glib-Caches.html#GCache" title="GCache"><span class="type">GCache</span></a> value corresponding to the key.
|
387
|
-
</td>
|
388
|
-
</tr>
|
389
|
-
</tbody>
|
390
|
-
</table></div>
|
391
|
-
</div>
|
392
|
-
</div>
|
393
|
-
</div>
|
394
|
-
<div class="footer">
|
395
|
-
<hr>
|
396
|
-
Generated by GTK-Doc V1.15.1</div>
|
397
|
-
</body>
|
398
|
-
</html>
|
@@ -1,1094 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Character Set Conversion</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
7
|
-
<link rel="home" href="index.html" title="GLib Reference Manual">
|
8
|
-
<link rel="up" href="glib-utilities.html" title="GLib Utilities">
|
9
|
-
<link rel="prev" href="glib-String-Utility-Functions.html" title="String Utility Functions">
|
10
|
-
<link rel="next" href="glib-Unicode-Manipulation.html" title="Unicode Manipulation">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
|
12
|
-
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
</head>
|
14
|
-
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
16
|
-
<tr valign="middle">
|
17
|
-
<td><a accesskey="p" href="glib-String-Utility-Functions.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
18
|
-
<td><a accesskey="u" href="glib-utilities.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
19
|
-
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
20
|
-
<th width="100%" align="center">GLib Reference Manual</th>
|
21
|
-
<td><a accesskey="n" href="glib-Unicode-Manipulation.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
22
|
-
</tr>
|
23
|
-
<tr><td colspan="5" class="shortcuts">
|
24
|
-
<a href="#glib-Character-Set-Conversion.synopsis" class="shortcut">Top</a>
|
25
|
-
|
|
26
|
-
<a href="#glib-Character-Set-Conversion.description" class="shortcut">Description</a>
|
27
|
-
</td></tr>
|
28
|
-
</table>
|
29
|
-
<div class="refentry">
|
30
|
-
<a name="glib-Character-Set-Conversion"></a><div class="titlepage"></div>
|
31
|
-
<div class="refnamediv"><table width="100%"><tr>
|
32
|
-
<td valign="top">
|
33
|
-
<h2><span class="refentrytitle"><a name="glib-Character-Set-Conversion.top_of_page"></a>Character Set Conversion</span></h2>
|
34
|
-
<p>Character Set Conversion — Convert strings between different character sets</p>
|
35
|
-
</td>
|
36
|
-
<td valign="top" align="right"></td>
|
37
|
-
</tr></table></div>
|
38
|
-
<div class="refsynopsisdiv">
|
39
|
-
<a name="glib-Character-Set-Conversion.synopsis"></a><h2>Synopsis</h2>
|
40
|
-
<pre class="synopsis">
|
41
|
-
#include <glib.h>
|
42
|
-
|
43
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Character-Set-Conversion.html#g-convert" title="g_convert ()">g_convert</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *str</code></em>,
|
44
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>,
|
45
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *to_codeset</code></em>,
|
46
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *from_codeset</code></em>,
|
47
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_read</code></em>,
|
48
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_written</code></em>,
|
49
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
50
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Character-Set-Conversion.html#g-convert-with-fallback" title="g_convert_with_fallback ()">g_convert_with_fallback</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *str</code></em>,
|
51
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>,
|
52
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *to_codeset</code></em>,
|
53
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *from_codeset</code></em>,
|
54
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *fallback</code></em>,
|
55
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_read</code></em>,
|
56
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_written</code></em>,
|
57
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
58
|
-
<a class="link" href="glib-Character-Set-Conversion.html#GIConv" title="GIConv">GIConv</a>;
|
59
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Character-Set-Conversion.html#g-convert-with-iconv" title="g_convert_with_iconv ()">g_convert_with_iconv</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *str</code></em>,
|
60
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>,
|
61
|
-
<em class="parameter"><code><a class="link" href="glib-Character-Set-Conversion.html#GIConv" title="GIConv"><span class="type">GIConv</span></a> converter</code></em>,
|
62
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_read</code></em>,
|
63
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_written</code></em>,
|
64
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
65
|
-
#define <a class="link" href="glib-Character-Set-Conversion.html#G-CONVERT-ERROR:CAPS" title="G_CONVERT_ERROR">G_CONVERT_ERROR</a>
|
66
|
-
<a class="link" href="glib-Character-Set-Conversion.html#GIConv" title="GIConv"><span class="returnvalue">GIConv</span></a> <a class="link" href="glib-Character-Set-Conversion.html#g-iconv-open" title="g_iconv_open ()">g_iconv_open</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *to_codeset</code></em>,
|
67
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *from_codeset</code></em>);
|
68
|
-
<a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="returnvalue">gsize</span></a> <a class="link" href="glib-Character-Set-Conversion.html#g-iconv" title="g_iconv ()">g_iconv</a> (<em class="parameter"><code><a class="link" href="glib-Character-Set-Conversion.html#GIConv" title="GIConv"><span class="type">GIConv</span></a> converter</code></em>,
|
69
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **inbuf</code></em>,
|
70
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *inbytes_left</code></em>,
|
71
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **outbuf</code></em>,
|
72
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *outbytes_left</code></em>);
|
73
|
-
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-Character-Set-Conversion.html#g-iconv-close" title="g_iconv_close ()">g_iconv_close</a> (<em class="parameter"><code><a class="link" href="glib-Character-Set-Conversion.html#GIConv" title="GIConv"><span class="type">GIConv</span></a> converter</code></em>);
|
74
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Character-Set-Conversion.html#g-locale-to-utf8" title="g_locale_to_utf8 ()">g_locale_to_utf8</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *opsysstring</code></em>,
|
75
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>,
|
76
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_read</code></em>,
|
77
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_written</code></em>,
|
78
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
79
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Character-Set-Conversion.html#g-filename-to-utf8" title="g_filename_to_utf8 ()">g_filename_to_utf8</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *opsysstring</code></em>,
|
80
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>,
|
81
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_read</code></em>,
|
82
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_written</code></em>,
|
83
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
84
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Character-Set-Conversion.html#g-filename-from-utf8" title="g_filename_from_utf8 ()">g_filename_from_utf8</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *utf8string</code></em>,
|
85
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>,
|
86
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_read</code></em>,
|
87
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_written</code></em>,
|
88
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
89
|
-
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Character-Set-Conversion.html#g-get-filename-charsets" title="g_get_filename_charsets ()">g_get_filename_charsets</a> (<em class="parameter"><code>G_CONST_RETURN <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> ***charsets</code></em>);
|
90
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Character-Set-Conversion.html#g-filename-display-name" title="g_filename_display_name ()">g_filename_display_name</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>);
|
91
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Character-Set-Conversion.html#g-filename-display-basename" title="g_filename_display_basename ()">g_filename_display_basename</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>);
|
92
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Character-Set-Conversion.html#g-locale-from-utf8" title="g_locale_from_utf8 ()">g_locale_from_utf8</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *utf8string</code></em>,
|
93
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>,
|
94
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_read</code></em>,
|
95
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_written</code></em>,
|
96
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
97
|
-
enum <a class="link" href="glib-Character-Set-Conversion.html#GConvertError" title="enum GConvertError">GConvertError</a>;
|
98
|
-
|
99
|
-
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Character-Set-Conversion.html#g-get-charset" title="g_get_charset ()">g_get_charset</a> (<em class="parameter"><code>G_CONST_RETURN <span class="type">char</span> **charset</code></em>);
|
100
|
-
</pre>
|
101
|
-
</div>
|
102
|
-
<div class="refsect1">
|
103
|
-
<a name="glib-Character-Set-Conversion.description"></a><h2>Description</h2>
|
104
|
-
<p>
|
105
|
-
The <a class="link" href="glib-Character-Set-Conversion.html#g-convert" title="g_convert ()"><code class="function">g_convert()</code></a> family of function wraps the functionality of <code class="function">iconv()</code>. In
|
106
|
-
addition to pure character set conversions, GLib has functions to deal
|
107
|
-
with the extra complications of encodings for file names.
|
108
|
-
</p>
|
109
|
-
<p>
|
110
|
-
</p>
|
111
|
-
<div class="refsect2">
|
112
|
-
<a name="file-name-encodings"></a><h3>File Name Encodings</h3>
|
113
|
-
<p>
|
114
|
-
Historically, Unix has not had a defined encoding for file
|
115
|
-
names: a file name is valid as long as it does not have path
|
116
|
-
separators in it ("/"). However, displaying file names may
|
117
|
-
require conversion: from the character set in which they were
|
118
|
-
created, to the character set in which the application
|
119
|
-
operates. Consider the Spanish file name
|
120
|
-
"<code class="filename">Presentación.sxi</code>". If the
|
121
|
-
application which created it uses ISO-8859-1 for its encoding,
|
122
|
-
</p>
|
123
|
-
<a name="filename-iso8859-1"></a><pre class="programlisting">
|
124
|
-
Character: P r e s e n t a c i ó n . s x i
|
125
|
-
Hex code: 50 72 65 73 65 6e 74 61 63 69 f3 6e 2e 73 78 69
|
126
|
-
</pre>
|
127
|
-
<p>
|
128
|
-
However, if the application use UTF-8, the actual file name on
|
129
|
-
disk would look like this:
|
130
|
-
</p>
|
131
|
-
<a name="filename-utf-8"></a><pre class="programlisting">
|
132
|
-
Character: P r e s e n t a c i ó n . s x i
|
133
|
-
Hex code: 50 72 65 73 65 6e 74 61 63 69 c3 b3 6e 2e 73 78 69
|
134
|
-
</pre>
|
135
|
-
<p>
|
136
|
-
Glib uses UTF-8 for its strings, and GUI toolkits like GTK+
|
137
|
-
that use Glib do the same thing. If you get a file name from
|
138
|
-
the file system, for example, from readdir(3) or from <a class="link" href="glib-File-Utilities.html#g-dir-read-name" title="g_dir_read_name ()"><code class="function">g_dir_read_name()</code></a>,
|
139
|
-
and you wish to display the file name to the user, you
|
140
|
-
<span class="emphasis"><em>will</em></span> need to convert it into UTF-8. The
|
141
|
-
opposite case is when the user types the name of a file he
|
142
|
-
wishes to save: the toolkit will give you that string in
|
143
|
-
UTF-8 encoding, and you will need to convert it to the
|
144
|
-
character set used for file names before you can create the
|
145
|
-
file with open(2) or fopen(3).
|
146
|
-
</p>
|
147
|
-
<p>
|
148
|
-
By default, Glib assumes that file names on disk are in UTF-8
|
149
|
-
encoding. This is a valid assumption for file systems which
|
150
|
-
were created relatively recently: most applications use UTF-8
|
151
|
-
encoding for their strings, and that is also what they use for
|
152
|
-
the file names they create. However, older file systems may
|
153
|
-
still contain file names created in "older" encodings, such as
|
154
|
-
ISO-8859-1. In this case, for compatibility reasons, you may
|
155
|
-
want to instruct Glib to use that particular encoding for file
|
156
|
-
names rather than UTF-8. You can do this by specifying the
|
157
|
-
encoding for file names in the <a class="link" href="glib-running.html#G_FILENAME_ENCODING" title="G_FILENAME_ENCODING"><code class="envar">G_FILENAME_ENCODING</code></a>
|
158
|
-
environment variable. For example, if your installation uses
|
159
|
-
ISO-8859-1 for file names, you can put this in your
|
160
|
-
<code class="filename">~/.profile</code>:
|
161
|
-
</p>
|
162
|
-
<pre class="programlisting">
|
163
|
-
export G_FILENAME_ENCODING=ISO-8859-1
|
164
|
-
</pre>
|
165
|
-
<p>
|
166
|
-
Glib provides the functions <a class="link" href="glib-Character-Set-Conversion.html#g-filename-to-utf8" title="g_filename_to_utf8 ()"><code class="function">g_filename_to_utf8()</code></a> and
|
167
|
-
<a class="link" href="glib-Character-Set-Conversion.html#g-filename-from-utf8" title="g_filename_from_utf8 ()"><code class="function">g_filename_from_utf8()</code></a> to perform the necessary conversions. These
|
168
|
-
functions convert file names from the encoding specified in
|
169
|
-
<code class="envar">G_FILENAME_ENCODING</code> to UTF-8 and vice-versa.
|
170
|
-
<a class="xref" href="glib-Character-Set-Conversion.html#file-name-encodings-diagram" title="Figure 2. Conversion between File Name Encodings">Figure 2, “Conversion between File Name Encodings”</a> illustrates how
|
171
|
-
these functions are used to convert between UTF-8 and the
|
172
|
-
encoding for file names in the file system.
|
173
|
-
</p>
|
174
|
-
<div class="figure">
|
175
|
-
<a name="file-name-encodings-diagram"></a><p class="title"><b>Figure 2. Conversion between File Name Encodings</b></p>
|
176
|
-
<div class="figure-contents"><div><img src="file-name-encodings.png" alt="Conversion between File Name Encodings"></div></div>
|
177
|
-
</div>
|
178
|
-
<br class="figure-break"><div class="refsect3">
|
179
|
-
<a name="file-name-encodings-checklist"></a><h4>Checklist for Application Writers</h4>
|
180
|
-
<p>
|
181
|
-
This section is a practical summary of the detailed
|
182
|
-
description above. You can use this as a checklist of
|
183
|
-
things to do to make sure your applications process file
|
184
|
-
name encodings correctly.
|
185
|
-
</p>
|
186
|
-
<div class="orderedlist"><ol class="orderedlist" type="1">
|
187
|
-
<li class="listitem"><p>
|
188
|
-
If you get a file name from the file system from a function
|
189
|
-
such as readdir(3) or <a href="http://library.gnome.org/devel/gtk/unstable/GtkFileChooser.html#gtk-file-chooser-get-filename"><code class="function">gtk_file_chooser_get_filename()</code></a>,
|
190
|
-
you do not need to do any conversion to pass that
|
191
|
-
file name to functions like open(2), rename(2), or
|
192
|
-
fopen(3) — those are "raw" file names which the file
|
193
|
-
system understands.
|
194
|
-
</p></li>
|
195
|
-
<li class="listitem"><p>
|
196
|
-
If you need to display a file name, convert it to UTF-8 first by
|
197
|
-
using <a class="link" href="glib-Character-Set-Conversion.html#g-filename-to-utf8" title="g_filename_to_utf8 ()"><code class="function">g_filename_to_utf8()</code></a>. If conversion fails, display a string like
|
198
|
-
"<code class="literal">Unknown file name</code>". <span class="emphasis"><em>Do not</em></span>
|
199
|
-
convert this string back into the encoding used for file names if you
|
200
|
-
wish to pass it to the file system; use the original file name instead.
|
201
|
-
For example, the document window of a word processor could display
|
202
|
-
"Unknown file name" in its title bar but still let the user save the
|
203
|
-
file, as it would keep the raw file name internally. This can happen
|
204
|
-
if the user has not set the <code class="envar">G_FILENAME_ENCODING</code>
|
205
|
-
environment variable even though he has files whose names are not
|
206
|
-
encoded in UTF-8.
|
207
|
-
</p></li>
|
208
|
-
<li class="listitem"><p>
|
209
|
-
If your user interface lets the user type a file name for saving or
|
210
|
-
renaming, convert it to the encoding used for file names in the file
|
211
|
-
system by using <a class="link" href="glib-Character-Set-Conversion.html#g-filename-from-utf8" title="g_filename_from_utf8 ()"><code class="function">g_filename_from_utf8()</code></a>. Pass the converted file name
|
212
|
-
to functions like fopen(3). If conversion fails, ask the user to enter
|
213
|
-
a different file name. This can happen if the user types Japanese
|
214
|
-
characters when <code class="envar">G_FILENAME_ENCODING</code> is set to
|
215
|
-
<code class="literal">ISO-8859-1</code>, for example.
|
216
|
-
</p></li>
|
217
|
-
</ol></div>
|
218
|
-
</div>
|
219
|
-
</div>
|
220
|
-
<p>
|
221
|
-
</p>
|
222
|
-
</div>
|
223
|
-
<div class="refsect1">
|
224
|
-
<a name="glib-Character-Set-Conversion.details"></a><h2>Details</h2>
|
225
|
-
<div class="refsect2">
|
226
|
-
<a name="g-convert"></a><h3>g_convert ()</h3>
|
227
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_convert (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *str</code></em>,
|
228
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>,
|
229
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *to_codeset</code></em>,
|
230
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *from_codeset</code></em>,
|
231
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_read</code></em>,
|
232
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_written</code></em>,
|
233
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
234
|
-
<p>
|
235
|
-
Converts a string from one character set to another.
|
236
|
-
</p>
|
237
|
-
<p>
|
238
|
-
Note that you should use <a class="link" href="glib-Character-Set-Conversion.html#g-iconv" title="g_iconv ()"><code class="function">g_iconv()</code></a> for streaming
|
239
|
-
conversions<sup>[<a href="glib-Character-Set-Conversion.html#ftn.streaming-state" class="footnoteref">2</a>]</sup>.
|
240
|
-
</p>
|
241
|
-
<div class="variablelist"><table border="0">
|
242
|
-
<col align="left" valign="top">
|
243
|
-
<tbody>
|
244
|
-
<tr>
|
245
|
-
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
246
|
-
<td>the string to convert
|
247
|
-
</td>
|
248
|
-
</tr>
|
249
|
-
<tr>
|
250
|
-
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
251
|
-
<td>the length of the string, or -1 if the string is
|
252
|
-
nul-terminated<sup>[<a name="nul-unsafe" href="#ftn.nul-unsafe" class="footnote">1</a>]</sup>.
|
253
|
-
</td>
|
254
|
-
</tr>
|
255
|
-
<tr>
|
256
|
-
<td><p><span class="term"><em class="parameter"><code>to_codeset</code></em> :</span></p></td>
|
257
|
-
<td>name of character set into which to convert <em class="parameter"><code>str</code></em>
|
258
|
-
</td>
|
259
|
-
</tr>
|
260
|
-
<tr>
|
261
|
-
<td><p><span class="term"><em class="parameter"><code>from_codeset</code></em> :</span></p></td>
|
262
|
-
<td>character set of <em class="parameter"><code>str</code></em>.
|
263
|
-
</td>
|
264
|
-
</tr>
|
265
|
-
<tr>
|
266
|
-
<td><p><span class="term"><em class="parameter"><code>bytes_read</code></em> :</span></p></td>
|
267
|
-
<td>location to store the number of bytes in the
|
268
|
-
input string that were successfully converted, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
269
|
-
Even if the conversion was successful, this may be
|
270
|
-
less than <em class="parameter"><code>len</code></em> if there were partial characters
|
271
|
-
at the end of the input. If the error
|
272
|
-
<a class="link" href="glib-Character-Set-Conversion.html#G-CONVERT-ERROR-ILLEGAL-SEQUENCE:CAPS"><span class="type">G_CONVERT_ERROR_ILLEGAL_SEQUENCE</span></a> occurs, the value
|
273
|
-
stored will the byte offset after the last valid
|
274
|
-
input sequence.
|
275
|
-
</td>
|
276
|
-
</tr>
|
277
|
-
<tr>
|
278
|
-
<td><p><span class="term"><em class="parameter"><code>bytes_written</code></em> :</span></p></td>
|
279
|
-
<td>the number of bytes stored in the output buffer (not
|
280
|
-
including the terminating nul).
|
281
|
-
</td>
|
282
|
-
</tr>
|
283
|
-
<tr>
|
284
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
285
|
-
<td>location to store the error occuring, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> to ignore
|
286
|
-
errors. Any of the errors in <a class="link" href="glib-Character-Set-Conversion.html#GConvertError" title="enum GConvertError"><span class="type">GConvertError</span></a> may occur.
|
287
|
-
</td>
|
288
|
-
</tr>
|
289
|
-
<tr>
|
290
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
291
|
-
<td> If the conversion was successful, a newly allocated
|
292
|
-
nul-terminated string, which must be freed with
|
293
|
-
<a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>. Otherwise <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> and <em class="parameter"><code>error</code></em> will be set.
|
294
|
-
</td>
|
295
|
-
</tr>
|
296
|
-
</tbody>
|
297
|
-
</table></div>
|
298
|
-
</div>
|
299
|
-
<hr>
|
300
|
-
<div class="refsect2">
|
301
|
-
<a name="g-convert-with-fallback"></a><h3>g_convert_with_fallback ()</h3>
|
302
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_convert_with_fallback (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *str</code></em>,
|
303
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>,
|
304
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *to_codeset</code></em>,
|
305
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *from_codeset</code></em>,
|
306
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *fallback</code></em>,
|
307
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_read</code></em>,
|
308
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_written</code></em>,
|
309
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
310
|
-
<p>
|
311
|
-
Converts a string from one character set to another, possibly
|
312
|
-
including fallback sequences for characters not representable
|
313
|
-
in the output. Note that it is not guaranteed that the specification
|
314
|
-
for the fallback sequences in <em class="parameter"><code>fallback</code></em> will be honored. Some
|
315
|
-
systems may do an approximate conversion from <em class="parameter"><code>from_codeset</code></em>
|
316
|
-
to <em class="parameter"><code>to_codeset</code></em> in their <code class="function">iconv()</code> functions,
|
317
|
-
in which case GLib will simply return that approximate conversion.
|
318
|
-
</p>
|
319
|
-
<p>
|
320
|
-
Note that you should use <a class="link" href="glib-Character-Set-Conversion.html#g-iconv" title="g_iconv ()"><code class="function">g_iconv()</code></a> for streaming
|
321
|
-
conversions<sup>[<a href="glib-Character-Set-Conversion.html#ftn.streaming-state" class="footnoteref">2</a>]</sup>.
|
322
|
-
</p>
|
323
|
-
<div class="variablelist"><table border="0">
|
324
|
-
<col align="left" valign="top">
|
325
|
-
<tbody>
|
326
|
-
<tr>
|
327
|
-
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
328
|
-
<td>the string to convert
|
329
|
-
</td>
|
330
|
-
</tr>
|
331
|
-
<tr>
|
332
|
-
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
333
|
-
<td>the length of the string, or -1 if the string is
|
334
|
-
nul-terminated<sup>[<a href="glib-Character-Set-Conversion.html#ftn.nul-unsafe" class="footnoteref">1</a>]</sup>.
|
335
|
-
</td>
|
336
|
-
</tr>
|
337
|
-
<tr>
|
338
|
-
<td><p><span class="term"><em class="parameter"><code>to_codeset</code></em> :</span></p></td>
|
339
|
-
<td>name of character set into which to convert <em class="parameter"><code>str</code></em>
|
340
|
-
</td>
|
341
|
-
</tr>
|
342
|
-
<tr>
|
343
|
-
<td><p><span class="term"><em class="parameter"><code>from_codeset</code></em> :</span></p></td>
|
344
|
-
<td>character set of <em class="parameter"><code>str</code></em>.
|
345
|
-
</td>
|
346
|
-
</tr>
|
347
|
-
<tr>
|
348
|
-
<td><p><span class="term"><em class="parameter"><code>fallback</code></em> :</span></p></td>
|
349
|
-
<td>UTF-8 string to use in place of character not
|
350
|
-
present in the target encoding. (The string must be
|
351
|
-
representable in the target encoding).
|
352
|
-
If <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, characters not in the target encoding will
|
353
|
-
be represented as Unicode escapes \uxxxx or \Uxxxxyyyy.
|
354
|
-
</td>
|
355
|
-
</tr>
|
356
|
-
<tr>
|
357
|
-
<td><p><span class="term"><em class="parameter"><code>bytes_read</code></em> :</span></p></td>
|
358
|
-
<td>location to store the number of bytes in the
|
359
|
-
input string that were successfully converted, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
360
|
-
Even if the conversion was successful, this may be
|
361
|
-
less than <em class="parameter"><code>len</code></em> if there were partial characters
|
362
|
-
at the end of the input.
|
363
|
-
</td>
|
364
|
-
</tr>
|
365
|
-
<tr>
|
366
|
-
<td><p><span class="term"><em class="parameter"><code>bytes_written</code></em> :</span></p></td>
|
367
|
-
<td>the number of bytes stored in the output buffer (not
|
368
|
-
including the terminating nul).
|
369
|
-
</td>
|
370
|
-
</tr>
|
371
|
-
<tr>
|
372
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
373
|
-
<td>location to store the error occuring, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> to ignore
|
374
|
-
errors. Any of the errors in <a class="link" href="glib-Character-Set-Conversion.html#GConvertError" title="enum GConvertError"><span class="type">GConvertError</span></a> may occur.
|
375
|
-
</td>
|
376
|
-
</tr>
|
377
|
-
<tr>
|
378
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
379
|
-
<td> If the conversion was successful, a newly allocated
|
380
|
-
nul-terminated string, which must be freed with
|
381
|
-
<a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>. Otherwise <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> and <em class="parameter"><code>error</code></em> will be set.
|
382
|
-
</td>
|
383
|
-
</tr>
|
384
|
-
</tbody>
|
385
|
-
</table></div>
|
386
|
-
</div>
|
387
|
-
<hr>
|
388
|
-
<div class="refsect2">
|
389
|
-
<a name="GIConv"></a><h3>GIConv</h3>
|
390
|
-
<pre class="programlisting">typedef struct _GIConv GIConv;</pre>
|
391
|
-
<p>
|
392
|
-
</p>
|
393
|
-
</div>
|
394
|
-
<hr>
|
395
|
-
<div class="refsect2">
|
396
|
-
<a name="g-convert-with-iconv"></a><h3>g_convert_with_iconv ()</h3>
|
397
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_convert_with_iconv (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *str</code></em>,
|
398
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>,
|
399
|
-
<em class="parameter"><code><a class="link" href="glib-Character-Set-Conversion.html#GIConv" title="GIConv"><span class="type">GIConv</span></a> converter</code></em>,
|
400
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_read</code></em>,
|
401
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_written</code></em>,
|
402
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
403
|
-
<p>
|
404
|
-
Converts a string from one character set to another.
|
405
|
-
</p>
|
406
|
-
<p>
|
407
|
-
Note that you should use <a class="link" href="glib-Character-Set-Conversion.html#g-iconv" title="g_iconv ()"><code class="function">g_iconv()</code></a> for streaming
|
408
|
-
conversions<sup>[<a name="streaming-state" href="#ftn.streaming-state" class="footnote">2</a>]</sup>.
|
409
|
-
</p>
|
410
|
-
<div class="variablelist"><table border="0">
|
411
|
-
<col align="left" valign="top">
|
412
|
-
<tbody>
|
413
|
-
<tr>
|
414
|
-
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
415
|
-
<td>the string to convert
|
416
|
-
</td>
|
417
|
-
</tr>
|
418
|
-
<tr>
|
419
|
-
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
420
|
-
<td>the length of the string, or -1 if the string is
|
421
|
-
nul-terminated<sup>[<a href="glib-Character-Set-Conversion.html#ftn.nul-unsafe" class="footnoteref">1</a>]</sup>.
|
422
|
-
</td>
|
423
|
-
</tr>
|
424
|
-
<tr>
|
425
|
-
<td><p><span class="term"><em class="parameter"><code>converter</code></em> :</span></p></td>
|
426
|
-
<td>conversion descriptor from <a class="link" href="glib-Character-Set-Conversion.html#g-iconv-open" title="g_iconv_open ()"><code class="function">g_iconv_open()</code></a>
|
427
|
-
</td>
|
428
|
-
</tr>
|
429
|
-
<tr>
|
430
|
-
<td><p><span class="term"><em class="parameter"><code>bytes_read</code></em> :</span></p></td>
|
431
|
-
<td>location to store the number of bytes in the
|
432
|
-
input string that were successfully converted, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
433
|
-
Even if the conversion was successful, this may be
|
434
|
-
less than <em class="parameter"><code>len</code></em> if there were partial characters
|
435
|
-
at the end of the input. If the error
|
436
|
-
<a class="link" href="glib-Character-Set-Conversion.html#G-CONVERT-ERROR-ILLEGAL-SEQUENCE:CAPS"><span class="type">G_CONVERT_ERROR_ILLEGAL_SEQUENCE</span></a> occurs, the value
|
437
|
-
stored will the byte offset after the last valid
|
438
|
-
input sequence.
|
439
|
-
</td>
|
440
|
-
</tr>
|
441
|
-
<tr>
|
442
|
-
<td><p><span class="term"><em class="parameter"><code>bytes_written</code></em> :</span></p></td>
|
443
|
-
<td>the number of bytes stored in the output buffer (not
|
444
|
-
including the terminating nul).
|
445
|
-
</td>
|
446
|
-
</tr>
|
447
|
-
<tr>
|
448
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
449
|
-
<td>location to store the error occuring, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> to ignore
|
450
|
-
errors. Any of the errors in <a class="link" href="glib-Character-Set-Conversion.html#GConvertError" title="enum GConvertError"><span class="type">GConvertError</span></a> may occur.
|
451
|
-
</td>
|
452
|
-
</tr>
|
453
|
-
<tr>
|
454
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
455
|
-
<td> If the conversion was successful, a newly allocated
|
456
|
-
nul-terminated string, which must be freed with
|
457
|
-
<a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>. Otherwise <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> and <em class="parameter"><code>error</code></em> will be set.
|
458
|
-
</td>
|
459
|
-
</tr>
|
460
|
-
</tbody>
|
461
|
-
</table></div>
|
462
|
-
</div>
|
463
|
-
<hr>
|
464
|
-
<div class="refsect2">
|
465
|
-
<a name="G-CONVERT-ERROR:CAPS"></a><h3>G_CONVERT_ERROR</h3>
|
466
|
-
<pre class="programlisting">#define G_CONVERT_ERROR g_convert_error_quark()
|
467
|
-
</pre>
|
468
|
-
<p>
|
469
|
-
Error domain for character set conversions. Errors in this domain will
|
470
|
-
be from the <a class="link" href="glib-Character-Set-Conversion.html#GConvertError" title="enum GConvertError"><span class="type">GConvertError</span></a> enumeration. See <a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> for information on
|
471
|
-
error domains.
|
472
|
-
</p>
|
473
|
-
</div>
|
474
|
-
<hr>
|
475
|
-
<div class="refsect2">
|
476
|
-
<a name="g-iconv-open"></a><h3>g_iconv_open ()</h3>
|
477
|
-
<pre class="programlisting"><a class="link" href="glib-Character-Set-Conversion.html#GIConv" title="GIConv"><span class="returnvalue">GIConv</span></a> g_iconv_open (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *to_codeset</code></em>,
|
478
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *from_codeset</code></em>);</pre>
|
479
|
-
<p>
|
480
|
-
Same as the standard UNIX routine <code class="function">iconv_open()</code>, but
|
481
|
-
may be implemented via libiconv on UNIX flavors that lack
|
482
|
-
a native implementation.
|
483
|
-
</p>
|
484
|
-
<p>
|
485
|
-
GLib provides <a class="link" href="glib-Character-Set-Conversion.html#g-convert" title="g_convert ()"><code class="function">g_convert()</code></a> and <a class="link" href="glib-Character-Set-Conversion.html#g-locale-to-utf8" title="g_locale_to_utf8 ()"><code class="function">g_locale_to_utf8()</code></a> which are likely
|
486
|
-
more convenient than the raw iconv wrappers.
|
487
|
-
</p>
|
488
|
-
<div class="variablelist"><table border="0">
|
489
|
-
<col align="left" valign="top">
|
490
|
-
<tbody>
|
491
|
-
<tr>
|
492
|
-
<td><p><span class="term"><em class="parameter"><code>to_codeset</code></em> :</span></p></td>
|
493
|
-
<td>destination codeset
|
494
|
-
</td>
|
495
|
-
</tr>
|
496
|
-
<tr>
|
497
|
-
<td><p><span class="term"><em class="parameter"><code>from_codeset</code></em> :</span></p></td>
|
498
|
-
<td>source codeset
|
499
|
-
</td>
|
500
|
-
</tr>
|
501
|
-
<tr>
|
502
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
503
|
-
<td> a "conversion descriptor", or (GIConv)-1 if
|
504
|
-
opening the converter failed.
|
505
|
-
</td>
|
506
|
-
</tr>
|
507
|
-
</tbody>
|
508
|
-
</table></div>
|
509
|
-
</div>
|
510
|
-
<hr>
|
511
|
-
<div class="refsect2">
|
512
|
-
<a name="g-iconv"></a><h3>g_iconv ()</h3>
|
513
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="returnvalue">gsize</span></a> g_iconv (<em class="parameter"><code><a class="link" href="glib-Character-Set-Conversion.html#GIConv" title="GIConv"><span class="type">GIConv</span></a> converter</code></em>,
|
514
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **inbuf</code></em>,
|
515
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *inbytes_left</code></em>,
|
516
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **outbuf</code></em>,
|
517
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *outbytes_left</code></em>);</pre>
|
518
|
-
<p>
|
519
|
-
Same as the standard UNIX routine <code class="function">iconv()</code>, but
|
520
|
-
may be implemented via libiconv on UNIX flavors that lack
|
521
|
-
a native implementation.
|
522
|
-
</p>
|
523
|
-
<p>
|
524
|
-
GLib provides <a class="link" href="glib-Character-Set-Conversion.html#g-convert" title="g_convert ()"><code class="function">g_convert()</code></a> and <a class="link" href="glib-Character-Set-Conversion.html#g-locale-to-utf8" title="g_locale_to_utf8 ()"><code class="function">g_locale_to_utf8()</code></a> which are likely
|
525
|
-
more convenient than the raw iconv wrappers.
|
526
|
-
</p>
|
527
|
-
<div class="variablelist"><table border="0">
|
528
|
-
<col align="left" valign="top">
|
529
|
-
<tbody>
|
530
|
-
<tr>
|
531
|
-
<td><p><span class="term"><em class="parameter"><code>converter</code></em> :</span></p></td>
|
532
|
-
<td>conversion descriptor from <a class="link" href="glib-Character-Set-Conversion.html#g-iconv-open" title="g_iconv_open ()"><code class="function">g_iconv_open()</code></a>
|
533
|
-
</td>
|
534
|
-
</tr>
|
535
|
-
<tr>
|
536
|
-
<td><p><span class="term"><em class="parameter"><code>inbuf</code></em> :</span></p></td>
|
537
|
-
<td>bytes to convert
|
538
|
-
</td>
|
539
|
-
</tr>
|
540
|
-
<tr>
|
541
|
-
<td><p><span class="term"><em class="parameter"><code>inbytes_left</code></em> :</span></p></td>
|
542
|
-
<td>inout parameter, bytes remaining to convert in <em class="parameter"><code>inbuf</code></em>
|
543
|
-
</td>
|
544
|
-
</tr>
|
545
|
-
<tr>
|
546
|
-
<td><p><span class="term"><em class="parameter"><code>outbuf</code></em> :</span></p></td>
|
547
|
-
<td>converted output bytes
|
548
|
-
</td>
|
549
|
-
</tr>
|
550
|
-
<tr>
|
551
|
-
<td><p><span class="term"><em class="parameter"><code>outbytes_left</code></em> :</span></p></td>
|
552
|
-
<td>inout parameter, bytes available to fill in <em class="parameter"><code>outbuf</code></em>
|
553
|
-
</td>
|
554
|
-
</tr>
|
555
|
-
<tr>
|
556
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
557
|
-
<td> count of non-reversible conversions, or -1 on error
|
558
|
-
</td>
|
559
|
-
</tr>
|
560
|
-
</tbody>
|
561
|
-
</table></div>
|
562
|
-
</div>
|
563
|
-
<hr>
|
564
|
-
<div class="refsect2">
|
565
|
-
<a name="g-iconv-close"></a><h3>g_iconv_close ()</h3>
|
566
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_iconv_close (<em class="parameter"><code><a class="link" href="glib-Character-Set-Conversion.html#GIConv" title="GIConv"><span class="type">GIConv</span></a> converter</code></em>);</pre>
|
567
|
-
<p>
|
568
|
-
Same as the standard UNIX routine <code class="function">iconv_close()</code>, but
|
569
|
-
may be implemented via libiconv on UNIX flavors that lack
|
570
|
-
a native implementation. Should be called to clean up
|
571
|
-
the conversion descriptor from <a class="link" href="glib-Character-Set-Conversion.html#g-iconv-open" title="g_iconv_open ()"><code class="function">g_iconv_open()</code></a> when
|
572
|
-
you are done converting things.
|
573
|
-
</p>
|
574
|
-
<p>
|
575
|
-
GLib provides <a class="link" href="glib-Character-Set-Conversion.html#g-convert" title="g_convert ()"><code class="function">g_convert()</code></a> and <a class="link" href="glib-Character-Set-Conversion.html#g-locale-to-utf8" title="g_locale_to_utf8 ()"><code class="function">g_locale_to_utf8()</code></a> which are likely
|
576
|
-
more convenient than the raw iconv wrappers.
|
577
|
-
</p>
|
578
|
-
<div class="variablelist"><table border="0">
|
579
|
-
<col align="left" valign="top">
|
580
|
-
<tbody>
|
581
|
-
<tr>
|
582
|
-
<td><p><span class="term"><em class="parameter"><code>converter</code></em> :</span></p></td>
|
583
|
-
<td>a conversion descriptor from <a class="link" href="glib-Character-Set-Conversion.html#g-iconv-open" title="g_iconv_open ()"><code class="function">g_iconv_open()</code></a>
|
584
|
-
</td>
|
585
|
-
</tr>
|
586
|
-
<tr>
|
587
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
588
|
-
<td> -1 on error, 0 on success
|
589
|
-
</td>
|
590
|
-
</tr>
|
591
|
-
</tbody>
|
592
|
-
</table></div>
|
593
|
-
</div>
|
594
|
-
<hr>
|
595
|
-
<div class="refsect2">
|
596
|
-
<a name="g-locale-to-utf8"></a><h3>g_locale_to_utf8 ()</h3>
|
597
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_locale_to_utf8 (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *opsysstring</code></em>,
|
598
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>,
|
599
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_read</code></em>,
|
600
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_written</code></em>,
|
601
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
602
|
-
<p>
|
603
|
-
Converts a string which is in the encoding used for strings by
|
604
|
-
the C runtime (usually the same as that used by the operating
|
605
|
-
system) in the <a class="link" href="glib-running.html#setlocale" title="Locale">current locale</a> into a
|
606
|
-
UTF-8 string.
|
607
|
-
</p>
|
608
|
-
<div class="variablelist"><table border="0">
|
609
|
-
<col align="left" valign="top">
|
610
|
-
<tbody>
|
611
|
-
<tr>
|
612
|
-
<td><p><span class="term"><em class="parameter"><code>opsysstring</code></em> :</span></p></td>
|
613
|
-
<td>a string in the encoding of the current locale. On Windows
|
614
|
-
this means the system codepage.
|
615
|
-
</td>
|
616
|
-
</tr>
|
617
|
-
<tr>
|
618
|
-
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
619
|
-
<td>the length of the string, or -1 if the string is
|
620
|
-
nul-terminated<sup>[<a href="glib-Character-Set-Conversion.html#ftn.nul-unsafe" class="footnoteref">1</a>]</sup>.
|
621
|
-
</td>
|
622
|
-
</tr>
|
623
|
-
<tr>
|
624
|
-
<td><p><span class="term"><em class="parameter"><code>bytes_read</code></em> :</span></p></td>
|
625
|
-
<td>location to store the number of bytes in the
|
626
|
-
input string that were successfully converted, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
627
|
-
Even if the conversion was successful, this may be
|
628
|
-
less than <em class="parameter"><code>len</code></em> if there were partial characters
|
629
|
-
at the end of the input. If the error
|
630
|
-
<a class="link" href="glib-Character-Set-Conversion.html#G-CONVERT-ERROR-ILLEGAL-SEQUENCE:CAPS"><span class="type">G_CONVERT_ERROR_ILLEGAL_SEQUENCE</span></a> occurs, the value
|
631
|
-
stored will the byte offset after the last valid
|
632
|
-
input sequence.
|
633
|
-
</td>
|
634
|
-
</tr>
|
635
|
-
<tr>
|
636
|
-
<td><p><span class="term"><em class="parameter"><code>bytes_written</code></em> :</span></p></td>
|
637
|
-
<td>the number of bytes stored in the output buffer (not
|
638
|
-
including the terminating nul).
|
639
|
-
</td>
|
640
|
-
</tr>
|
641
|
-
<tr>
|
642
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
643
|
-
<td>location to store the error occuring, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> to ignore
|
644
|
-
errors. Any of the errors in <a class="link" href="glib-Character-Set-Conversion.html#GConvertError" title="enum GConvertError"><span class="type">GConvertError</span></a> may occur.
|
645
|
-
</td>
|
646
|
-
</tr>
|
647
|
-
<tr>
|
648
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
649
|
-
<td> The converted string, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> on an error.
|
650
|
-
</td>
|
651
|
-
</tr>
|
652
|
-
</tbody>
|
653
|
-
</table></div>
|
654
|
-
</div>
|
655
|
-
<hr>
|
656
|
-
<div class="refsect2">
|
657
|
-
<a name="g-filename-to-utf8"></a><h3>g_filename_to_utf8 ()</h3>
|
658
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_filename_to_utf8 (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *opsysstring</code></em>,
|
659
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>,
|
660
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_read</code></em>,
|
661
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_written</code></em>,
|
662
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
663
|
-
<p>
|
664
|
-
Converts a string which is in the encoding used by GLib for
|
665
|
-
filenames into a UTF-8 string. Note that on Windows GLib uses UTF-8
|
666
|
-
for filenames; on other platforms, this function indirectly depends on
|
667
|
-
the <a class="link" href="glib-running.html#setlocale" title="Locale">current locale</a>.
|
668
|
-
</p>
|
669
|
-
<div class="variablelist"><table border="0">
|
670
|
-
<col align="left" valign="top">
|
671
|
-
<tbody>
|
672
|
-
<tr>
|
673
|
-
<td><p><span class="term"><em class="parameter"><code>opsysstring</code></em> :</span></p></td>
|
674
|
-
<td>a string in the encoding for filenames
|
675
|
-
</td>
|
676
|
-
</tr>
|
677
|
-
<tr>
|
678
|
-
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
679
|
-
<td>the length of the string, or -1 if the string is
|
680
|
-
nul-terminated<sup>[<a href="glib-Character-Set-Conversion.html#ftn.nul-unsafe" class="footnoteref">1</a>]</sup>.
|
681
|
-
</td>
|
682
|
-
</tr>
|
683
|
-
<tr>
|
684
|
-
<td><p><span class="term"><em class="parameter"><code>bytes_read</code></em> :</span></p></td>
|
685
|
-
<td>location to store the number of bytes in the
|
686
|
-
input string that were successfully converted, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
687
|
-
Even if the conversion was successful, this may be
|
688
|
-
less than <em class="parameter"><code>len</code></em> if there were partial characters
|
689
|
-
at the end of the input. If the error
|
690
|
-
<a class="link" href="glib-Character-Set-Conversion.html#G-CONVERT-ERROR-ILLEGAL-SEQUENCE:CAPS"><span class="type">G_CONVERT_ERROR_ILLEGAL_SEQUENCE</span></a> occurs, the value
|
691
|
-
stored will the byte offset after the last valid
|
692
|
-
input sequence.
|
693
|
-
</td>
|
694
|
-
</tr>
|
695
|
-
<tr>
|
696
|
-
<td><p><span class="term"><em class="parameter"><code>bytes_written</code></em> :</span></p></td>
|
697
|
-
<td>the number of bytes stored in the output buffer (not
|
698
|
-
including the terminating nul).
|
699
|
-
</td>
|
700
|
-
</tr>
|
701
|
-
<tr>
|
702
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
703
|
-
<td>location to store the error occuring, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> to ignore
|
704
|
-
errors. Any of the errors in <a class="link" href="glib-Character-Set-Conversion.html#GConvertError" title="enum GConvertError"><span class="type">GConvertError</span></a> may occur.
|
705
|
-
</td>
|
706
|
-
</tr>
|
707
|
-
<tr>
|
708
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
709
|
-
<td> The converted string, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> on an error.
|
710
|
-
</td>
|
711
|
-
</tr>
|
712
|
-
</tbody>
|
713
|
-
</table></div>
|
714
|
-
</div>
|
715
|
-
<hr>
|
716
|
-
<div class="refsect2">
|
717
|
-
<a name="g-filename-from-utf8"></a><h3>g_filename_from_utf8 ()</h3>
|
718
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_filename_from_utf8 (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *utf8string</code></em>,
|
719
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>,
|
720
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_read</code></em>,
|
721
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_written</code></em>,
|
722
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
723
|
-
<p>
|
724
|
-
Converts a string from UTF-8 to the encoding GLib uses for
|
725
|
-
filenames. Note that on Windows GLib uses UTF-8 for filenames;
|
726
|
-
on other platforms, this function indirectly depends on the
|
727
|
-
<a class="link" href="glib-running.html#setlocale" title="Locale">current locale</a>.
|
728
|
-
</p>
|
729
|
-
<div class="variablelist"><table border="0">
|
730
|
-
<col align="left" valign="top">
|
731
|
-
<tbody>
|
732
|
-
<tr>
|
733
|
-
<td><p><span class="term"><em class="parameter"><code>utf8string</code></em> :</span></p></td>
|
734
|
-
<td>a UTF-8 encoded string.
|
735
|
-
</td>
|
736
|
-
</tr>
|
737
|
-
<tr>
|
738
|
-
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
739
|
-
<td>the length of the string, or -1 if the string is
|
740
|
-
nul-terminated.
|
741
|
-
</td>
|
742
|
-
</tr>
|
743
|
-
<tr>
|
744
|
-
<td><p><span class="term"><em class="parameter"><code>bytes_read</code></em> :</span></p></td>
|
745
|
-
<td>location to store the number of bytes in the
|
746
|
-
input string that were successfully converted, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
747
|
-
Even if the conversion was successful, this may be
|
748
|
-
less than <em class="parameter"><code>len</code></em> if there were partial characters
|
749
|
-
at the end of the input. If the error
|
750
|
-
<a class="link" href="glib-Character-Set-Conversion.html#G-CONVERT-ERROR-ILLEGAL-SEQUENCE:CAPS"><span class="type">G_CONVERT_ERROR_ILLEGAL_SEQUENCE</span></a> occurs, the value
|
751
|
-
stored will the byte offset after the last valid
|
752
|
-
input sequence.
|
753
|
-
</td>
|
754
|
-
</tr>
|
755
|
-
<tr>
|
756
|
-
<td><p><span class="term"><em class="parameter"><code>bytes_written</code></em> :</span></p></td>
|
757
|
-
<td>the number of bytes stored in the output buffer (not
|
758
|
-
including the terminating nul).
|
759
|
-
</td>
|
760
|
-
</tr>
|
761
|
-
<tr>
|
762
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
763
|
-
<td>location to store the error occuring, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> to ignore
|
764
|
-
errors. Any of the errors in <a class="link" href="glib-Character-Set-Conversion.html#GConvertError" title="enum GConvertError"><span class="type">GConvertError</span></a> may occur.
|
765
|
-
</td>
|
766
|
-
</tr>
|
767
|
-
<tr>
|
768
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
769
|
-
<td> The converted string, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> on an error.
|
770
|
-
</td>
|
771
|
-
</tr>
|
772
|
-
</tbody>
|
773
|
-
</table></div>
|
774
|
-
</div>
|
775
|
-
<hr>
|
776
|
-
<div class="refsect2">
|
777
|
-
<a name="g-get-filename-charsets"></a><h3>g_get_filename_charsets ()</h3>
|
778
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_get_filename_charsets (<em class="parameter"><code>G_CONST_RETURN <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> ***charsets</code></em>);</pre>
|
779
|
-
<p>
|
780
|
-
Determines the preferred character sets used for filenames.
|
781
|
-
The first character set from the <em class="parameter"><code>charsets</code></em> is the filename encoding, the
|
782
|
-
subsequent character sets are used when trying to generate a displayable
|
783
|
-
representation of a filename, see <a class="link" href="glib-Character-Set-Conversion.html#g-filename-display-name" title="g_filename_display_name ()"><code class="function">g_filename_display_name()</code></a>.
|
784
|
-
</p>
|
785
|
-
<p>
|
786
|
-
On Unix, the character sets are determined by consulting the
|
787
|
-
environment variables <code class="envar">G_FILENAME_ENCODING</code> and
|
788
|
-
<code class="envar">G_BROKEN_FILENAMES</code>. On Windows, the character set
|
789
|
-
used in the GLib API is always UTF-8 and said environment variables
|
790
|
-
have no effect.
|
791
|
-
</p>
|
792
|
-
<p>
|
793
|
-
<code class="envar">G_FILENAME_ENCODING</code> may be set to a comma-separated list
|
794
|
-
of character set names. The special token "@locale" is taken to
|
795
|
-
mean the character set for the <a class="link" href="glib-running.html#setlocale" title="Locale">current
|
796
|
-
locale</a>. If <code class="envar">G_FILENAME_ENCODING</code> is not set, but
|
797
|
-
<code class="envar">G_BROKEN_FILENAMES</code> is, the character set of the current
|
798
|
-
locale is taken as the filename encoding. If neither environment variable
|
799
|
-
is set, UTF-8 is taken as the filename encoding, but the character
|
800
|
-
set of the current locale is also put in the list of encodings.
|
801
|
-
</p>
|
802
|
-
<p>
|
803
|
-
The returned <em class="parameter"><code>charsets</code></em> belong to GLib and must not be freed.
|
804
|
-
</p>
|
805
|
-
<p>
|
806
|
-
Note that on Unix, regardless of the locale character set or
|
807
|
-
<code class="envar">G_FILENAME_ENCODING</code> value, the actual file names present
|
808
|
-
on a system might be in any random encoding or just gibberish.
|
809
|
-
</p>
|
810
|
-
<div class="variablelist"><table border="0">
|
811
|
-
<col align="left" valign="top">
|
812
|
-
<tbody>
|
813
|
-
<tr>
|
814
|
-
<td><p><span class="term"><em class="parameter"><code>charsets</code></em> :</span></p></td>
|
815
|
-
<td>return location for the <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>-terminated list of encoding names
|
816
|
-
</td>
|
817
|
-
</tr>
|
818
|
-
<tr>
|
819
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
820
|
-
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the filename encoding is UTF-8.
|
821
|
-
|
822
|
-
</td>
|
823
|
-
</tr>
|
824
|
-
</tbody>
|
825
|
-
</table></div>
|
826
|
-
<p class="since">Since 2.6</p>
|
827
|
-
</div>
|
828
|
-
<hr>
|
829
|
-
<div class="refsect2">
|
830
|
-
<a name="g-filename-display-name"></a><h3>g_filename_display_name ()</h3>
|
831
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_filename_display_name (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>);</pre>
|
832
|
-
<p>
|
833
|
-
Converts a filename into a valid UTF-8 string. The conversion is
|
834
|
-
not necessarily reversible, so you should keep the original around
|
835
|
-
and use the return value of this function only for display purposes.
|
836
|
-
Unlike <a class="link" href="glib-Character-Set-Conversion.html#g-filename-to-utf8" title="g_filename_to_utf8 ()"><code class="function">g_filename_to_utf8()</code></a>, the result is guaranteed to be non-<a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
837
|
-
even if the filename actually isn't in the GLib file name encoding.
|
838
|
-
</p>
|
839
|
-
<p>
|
840
|
-
If GLib can not make sense of the encoding of <em class="parameter"><code>filename</code></em>, as a last resort it
|
841
|
-
replaces unknown characters with U+FFFD, the Unicode replacement character.
|
842
|
-
You can search the result for the UTF-8 encoding of this character (which is
|
843
|
-
"\357\277\275" in octal notation) to find out if <em class="parameter"><code>filename</code></em> was in an invalid
|
844
|
-
encoding.
|
845
|
-
</p>
|
846
|
-
<p>
|
847
|
-
If you know the whole pathname of the file you should use
|
848
|
-
<a class="link" href="glib-Character-Set-Conversion.html#g-filename-display-basename" title="g_filename_display_basename ()"><code class="function">g_filename_display_basename()</code></a>, since that allows location-based
|
849
|
-
translation of filenames.
|
850
|
-
</p>
|
851
|
-
<div class="variablelist"><table border="0">
|
852
|
-
<col align="left" valign="top">
|
853
|
-
<tbody>
|
854
|
-
<tr>
|
855
|
-
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
856
|
-
<td>a pathname hopefully in the GLib file name encoding
|
857
|
-
</td>
|
858
|
-
</tr>
|
859
|
-
<tr>
|
860
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
861
|
-
<td> a newly allocated string containing
|
862
|
-
a rendition of the filename in valid UTF-8
|
863
|
-
|
864
|
-
</td>
|
865
|
-
</tr>
|
866
|
-
</tbody>
|
867
|
-
</table></div>
|
868
|
-
<p class="since">Since 2.6</p>
|
869
|
-
</div>
|
870
|
-
<hr>
|
871
|
-
<div class="refsect2">
|
872
|
-
<a name="g-filename-display-basename"></a><h3>g_filename_display_basename ()</h3>
|
873
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_filename_display_basename (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>);</pre>
|
874
|
-
<p>
|
875
|
-
Returns the display basename for the particular filename, guaranteed
|
876
|
-
to be valid UTF-8. The display name might not be identical to the filename,
|
877
|
-
for instance there might be problems converting it to UTF-8, and some files
|
878
|
-
can be translated in the display.
|
879
|
-
</p>
|
880
|
-
<p>
|
881
|
-
If GLib can not make sense of the encoding of <em class="parameter"><code>filename</code></em>, as a last resort it
|
882
|
-
replaces unknown characters with U+FFFD, the Unicode replacement character.
|
883
|
-
You can search the result for the UTF-8 encoding of this character (which is
|
884
|
-
"\357\277\275" in octal notation) to find out if <em class="parameter"><code>filename</code></em> was in an invalid
|
885
|
-
encoding.
|
886
|
-
</p>
|
887
|
-
<p>
|
888
|
-
You must pass the whole absolute pathname to this functions so that
|
889
|
-
translation of well known locations can be done.
|
890
|
-
</p>
|
891
|
-
<p>
|
892
|
-
This function is preferred over <a class="link" href="glib-Character-Set-Conversion.html#g-filename-display-name" title="g_filename_display_name ()"><code class="function">g_filename_display_name()</code></a> if you know the
|
893
|
-
whole path, as it allows translation.
|
894
|
-
</p>
|
895
|
-
<div class="variablelist"><table border="0">
|
896
|
-
<col align="left" valign="top">
|
897
|
-
<tbody>
|
898
|
-
<tr>
|
899
|
-
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
900
|
-
<td>an absolute pathname in the GLib file name encoding
|
901
|
-
</td>
|
902
|
-
</tr>
|
903
|
-
<tr>
|
904
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
905
|
-
<td> a newly allocated string containing
|
906
|
-
a rendition of the basename of the filename in valid UTF-8
|
907
|
-
|
908
|
-
</td>
|
909
|
-
</tr>
|
910
|
-
</tbody>
|
911
|
-
</table></div>
|
912
|
-
<p class="since">Since 2.6</p>
|
913
|
-
</div>
|
914
|
-
<hr>
|
915
|
-
<div class="refsect2">
|
916
|
-
<a name="g-locale-from-utf8"></a><h3>g_locale_from_utf8 ()</h3>
|
917
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_locale_from_utf8 (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *utf8string</code></em>,
|
918
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>,
|
919
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_read</code></em>,
|
920
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *bytes_written</code></em>,
|
921
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
922
|
-
<p>
|
923
|
-
Converts a string from UTF-8 to the encoding used for strings by
|
924
|
-
the C runtime (usually the same as that used by the operating
|
925
|
-
system) in the <a class="link" href="glib-running.html#setlocale" title="Locale">current locale</a>. On
|
926
|
-
Windows this means the system codepage.
|
927
|
-
</p>
|
928
|
-
<div class="variablelist"><table border="0">
|
929
|
-
<col align="left" valign="top">
|
930
|
-
<tbody>
|
931
|
-
<tr>
|
932
|
-
<td><p><span class="term"><em class="parameter"><code>utf8string</code></em> :</span></p></td>
|
933
|
-
<td>a UTF-8 encoded string
|
934
|
-
</td>
|
935
|
-
</tr>
|
936
|
-
<tr>
|
937
|
-
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
938
|
-
<td>the length of the string, or -1 if the string is
|
939
|
-
nul-terminated<sup>[<a href="glib-Character-Set-Conversion.html#ftn.nul-unsafe" class="footnoteref">1</a>]</sup>.
|
940
|
-
</td>
|
941
|
-
</tr>
|
942
|
-
<tr>
|
943
|
-
<td><p><span class="term"><em class="parameter"><code>bytes_read</code></em> :</span></p></td>
|
944
|
-
<td>location to store the number of bytes in the
|
945
|
-
input string that were successfully converted, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
946
|
-
Even if the conversion was successful, this may be
|
947
|
-
less than <em class="parameter"><code>len</code></em> if there were partial characters
|
948
|
-
at the end of the input. If the error
|
949
|
-
<a class="link" href="glib-Character-Set-Conversion.html#G-CONVERT-ERROR-ILLEGAL-SEQUENCE:CAPS"><span class="type">G_CONVERT_ERROR_ILLEGAL_SEQUENCE</span></a> occurs, the value
|
950
|
-
stored will the byte offset after the last valid
|
951
|
-
input sequence.
|
952
|
-
</td>
|
953
|
-
</tr>
|
954
|
-
<tr>
|
955
|
-
<td><p><span class="term"><em class="parameter"><code>bytes_written</code></em> :</span></p></td>
|
956
|
-
<td>the number of bytes stored in the output buffer (not
|
957
|
-
including the terminating nul).
|
958
|
-
</td>
|
959
|
-
</tr>
|
960
|
-
<tr>
|
961
|
-
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
962
|
-
<td>location to store the error occuring, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> to ignore
|
963
|
-
errors. Any of the errors in <a class="link" href="glib-Character-Set-Conversion.html#GConvertError" title="enum GConvertError"><span class="type">GConvertError</span></a> may occur.
|
964
|
-
</td>
|
965
|
-
</tr>
|
966
|
-
<tr>
|
967
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
968
|
-
<td> The converted string, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> on an error.
|
969
|
-
</td>
|
970
|
-
</tr>
|
971
|
-
</tbody>
|
972
|
-
</table></div>
|
973
|
-
</div>
|
974
|
-
<hr>
|
975
|
-
<div class="refsect2">
|
976
|
-
<a name="GConvertError"></a><h3>enum GConvertError</h3>
|
977
|
-
<pre class="programlisting">typedef enum
|
978
|
-
{
|
979
|
-
G_CONVERT_ERROR_NO_CONVERSION,
|
980
|
-
G_CONVERT_ERROR_ILLEGAL_SEQUENCE,
|
981
|
-
G_CONVERT_ERROR_FAILED,
|
982
|
-
G_CONVERT_ERROR_PARTIAL_INPUT,
|
983
|
-
G_CONVERT_ERROR_BAD_URI,
|
984
|
-
G_CONVERT_ERROR_NOT_ABSOLUTE_PATH
|
985
|
-
} GConvertError;
|
986
|
-
</pre>
|
987
|
-
<p>
|
988
|
-
Error codes returned by character set conversion routines.
|
989
|
-
</p>
|
990
|
-
<div class="variablelist"><table border="0">
|
991
|
-
<col align="left" valign="top">
|
992
|
-
<tbody>
|
993
|
-
<tr>
|
994
|
-
<td><p><a name="G-CONVERT-ERROR-NO-CONVERSION:CAPS"></a><span class="term"><code class="literal">G_CONVERT_ERROR_NO_CONVERSION</code></span></p></td>
|
995
|
-
<td>Conversion between the requested character
|
996
|
-
sets is not supported.
|
997
|
-
</td>
|
998
|
-
</tr>
|
999
|
-
<tr>
|
1000
|
-
<td><p><a name="G-CONVERT-ERROR-ILLEGAL-SEQUENCE:CAPS"></a><span class="term"><code class="literal">G_CONVERT_ERROR_ILLEGAL_SEQUENCE</code></span></p></td>
|
1001
|
-
<td>Invalid byte sequence in conversion input.
|
1002
|
-
</td>
|
1003
|
-
</tr>
|
1004
|
-
<tr>
|
1005
|
-
<td><p><a name="G-CONVERT-ERROR-FAILED:CAPS"></a><span class="term"><code class="literal">G_CONVERT_ERROR_FAILED</code></span></p></td>
|
1006
|
-
<td>Conversion failed for some reason.
|
1007
|
-
</td>
|
1008
|
-
</tr>
|
1009
|
-
<tr>
|
1010
|
-
<td><p><a name="G-CONVERT-ERROR-PARTIAL-INPUT:CAPS"></a><span class="term"><code class="literal">G_CONVERT_ERROR_PARTIAL_INPUT</code></span></p></td>
|
1011
|
-
<td>Partial character sequence at end of input.
|
1012
|
-
</td>
|
1013
|
-
</tr>
|
1014
|
-
<tr>
|
1015
|
-
<td><p><a name="G-CONVERT-ERROR-BAD-URI:CAPS"></a><span class="term"><code class="literal">G_CONVERT_ERROR_BAD_URI</code></span></p></td>
|
1016
|
-
<td>URI is invalid.
|
1017
|
-
</td>
|
1018
|
-
</tr>
|
1019
|
-
<tr>
|
1020
|
-
<td><p><a name="G-CONVERT-ERROR-NOT-ABSOLUTE-PATH:CAPS"></a><span class="term"><code class="literal">G_CONVERT_ERROR_NOT_ABSOLUTE_PATH</code></span></p></td>
|
1021
|
-
<td>Pathname is not an absolute path.
|
1022
|
-
</td>
|
1023
|
-
</tr>
|
1024
|
-
</tbody>
|
1025
|
-
</table></div>
|
1026
|
-
</div>
|
1027
|
-
<hr>
|
1028
|
-
<div class="refsect2">
|
1029
|
-
<a name="g-get-charset"></a><h3>g_get_charset ()</h3>
|
1030
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_get_charset (<em class="parameter"><code>G_CONST_RETURN <span class="type">char</span> **charset</code></em>);</pre>
|
1031
|
-
<p>
|
1032
|
-
Obtains the character set for the <a class="link" href="glib-running.html#setlocale" title="Locale">current
|
1033
|
-
locale</a>; you might use this character set as an argument to
|
1034
|
-
<a class="link" href="glib-Character-Set-Conversion.html#g-convert" title="g_convert ()"><code class="function">g_convert()</code></a>, to convert from the current locale's encoding to some
|
1035
|
-
other encoding. (Frequently <a class="link" href="glib-Character-Set-Conversion.html#g-locale-to-utf8" title="g_locale_to_utf8 ()"><code class="function">g_locale_to_utf8()</code></a> and <a class="link" href="glib-Character-Set-Conversion.html#g-locale-from-utf8" title="g_locale_from_utf8 ()"><code class="function">g_locale_from_utf8()</code></a>
|
1036
|
-
are nice shortcuts, though.)
|
1037
|
-
</p>
|
1038
|
-
<p>
|
1039
|
-
On Windows the character set returned by this function is the
|
1040
|
-
so-called system default ANSI code-page. That is the character set
|
1041
|
-
used by the "narrow" versions of C library and Win32 functions that
|
1042
|
-
handle file names. It might be different from the character set
|
1043
|
-
used by the C library's current locale.
|
1044
|
-
</p>
|
1045
|
-
<p>
|
1046
|
-
The return value is <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the locale's encoding is UTF-8, in that
|
1047
|
-
case you can perhaps avoid calling <a class="link" href="glib-Character-Set-Conversion.html#g-convert" title="g_convert ()"><code class="function">g_convert()</code></a>.
|
1048
|
-
</p>
|
1049
|
-
<p>
|
1050
|
-
The string returned in <em class="parameter"><code>charset</code></em> is not allocated, and should not be
|
1051
|
-
freed.
|
1052
|
-
</p>
|
1053
|
-
<div class="variablelist"><table border="0">
|
1054
|
-
<col align="left" valign="top">
|
1055
|
-
<tbody>
|
1056
|
-
<tr>
|
1057
|
-
<td><p><span class="term"><em class="parameter"><code>charset</code></em> :</span></p></td>
|
1058
|
-
<td>return location for character set name
|
1059
|
-
</td>
|
1060
|
-
</tr>
|
1061
|
-
<tr>
|
1062
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1063
|
-
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the returned charset is UTF-8
|
1064
|
-
</td>
|
1065
|
-
</tr>
|
1066
|
-
</tbody>
|
1067
|
-
</table></div>
|
1068
|
-
</div>
|
1069
|
-
</div>
|
1070
|
-
<div class="footnotes">
|
1071
|
-
<br><hr width="100" align="left">
|
1072
|
-
<div class="footnote"><p><sup>[<a name="ftn.nul-unsafe" href="#nul-unsafe" class="para">1</a>] </sup>
|
1073
|
-
Note that some encodings may allow nul bytes to
|
1074
|
-
occur inside strings. In that case, using -1 for
|
1075
|
-
the <em class="parameter"><code>len</code></em> parameter is unsafe.
|
1076
|
-
</p></div>
|
1077
|
-
<div class="footnote"><p><sup>[<a name="ftn.streaming-state" href="#streaming-state" class="para">2</a>] </sup>
|
1078
|
-
Despite the fact that <em class="parameter"><code>byes_read</code></em> can return information about partial
|
1079
|
-
characters, the <code class="literal">g_convert_...</code> functions
|
1080
|
-
are not generally suitable for streaming. If the underlying converter
|
1081
|
-
being used maintains internal state, then this won't be preserved
|
1082
|
-
across successive calls to <a class="link" href="glib-Character-Set-Conversion.html#g-convert" title="g_convert ()"><code class="function">g_convert()</code></a>, <a class="link" href="glib-Character-Set-Conversion.html#g-convert-with-iconv" title="g_convert_with_iconv ()"><code class="function">g_convert_with_iconv()</code></a> or
|
1083
|
-
<a class="link" href="glib-Character-Set-Conversion.html#g-convert-with-fallback" title="g_convert_with_fallback ()"><code class="function">g_convert_with_fallback()</code></a>. (An example of this is the GNU C converter
|
1084
|
-
for CP1255 which does not emit a base character until it knows that
|
1085
|
-
the next character is not a mark that could combine with the base
|
1086
|
-
character.)
|
1087
|
-
</p></div>
|
1088
|
-
</div>
|
1089
|
-
</div>
|
1090
|
-
<div class="footer">
|
1091
|
-
<hr>
|
1092
|
-
Generated by GTK-Doc V1.15.1</div>
|
1093
|
-
</body>
|
1094
|
-
</html>
|