glib2 0.90.8-x86-mingw32 → 0.90.9-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +46 -0
- data/Rakefile +1 -0
- data/ext/glib2/rbglib.h +1 -1
- data/ext/glib2/rbglib_iochannel.c +15 -6
- data/ext/glib2/rbgobj_signal.c +1 -1
- data/ext/glib2/rbgobject.h +1 -1
- data/lib/1.8/glib2.so +0 -0
- data/lib/1.9/glib2.so +0 -0
- data/lib/gnome2-raketask.rb +3 -2
- data/lib/mkmf-gnome2.rb +47 -23
- data/test/glib-test-init.rb +1 -3
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +2 -2
- data/vendor/local/bin/glib-mkenums +3 -2
- 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/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/include/glib-2.0/gio/gaction.h +91 -0
- data/vendor/local/include/glib-2.0/gio/gactiongroup.h +151 -0
- data/vendor/local/include/glib-2.0/gio/gappinfo.h +11 -1
- data/vendor/local/include/glib-2.0/gio/gapplication.h +165 -0
- data/vendor/local/include/glib-2.0/gio/gapplicationcommandline.h +118 -0
- data/vendor/local/include/glib-2.0/gio/gasyncresult.h +2 -2
- data/vendor/local/include/glib-2.0/gio/gcancellable.h +2 -0
- data/vendor/local/include/glib-2.0/gio/gemblemedicon.h +15 -0
- data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +2 -2
- data/vendor/local/include/glib-2.0/gio/gfileinputstream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gfileiostream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gfilemonitor.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gfileoutputstream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gio.h +14 -0
- data/vendor/local/include/glib-2.0/gio/gioenums.h +158 -2
- data/vendor/local/include/glib-2.0/gio/gioenumtypes.h +12 -0
- data/vendor/local/include/glib-2.0/gio/giomodule.h +1 -1
- data/vendor/local/include/glib-2.0/gio/giostream.h +11 -0
- data/vendor/local/include/glib-2.0/gio/giotypes.h +48 -0
- data/vendor/local/include/glib-2.0/gio/goutputstream.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gpollableinputstream.h +101 -0
- data/vendor/local/include/glib-2.0/gio/gpollableoutputstream.h +98 -0
- data/vendor/local/include/glib-2.0/gio/gsettings.h +9 -2
- data/vendor/local/include/glib-2.0/gio/gsettingsbackend.h +6 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleaction.h +95 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleactiongroup.h +87 -0
- data/vendor/local/include/glib-2.0/gio/gsimpleasyncresult.h +11 -1
- data/vendor/local/include/glib-2.0/gio/gsocketclient.h +7 -0
- data/vendor/local/include/glib-2.0/gio/gtcpwrapperconnection.h +68 -0
- data/vendor/local/include/glib-2.0/gio/gtlsbackend.h +92 -0
- data/vendor/local/include/glib-2.0/gio/gtlscertificate.h +83 -0
- data/vendor/local/include/glib-2.0/gio/gtlsclientconnection.h +72 -0
- data/vendor/local/include/glib-2.0/gio/gtlsconnection.h +136 -0
- data/vendor/local/include/glib-2.0/gio/gtlsserverconnection.h +61 -0
- data/vendor/local/include/glib-2.0/glib/glist.h +2 -0
- data/vendor/local/include/glib-2.0/glib/gmain.h +27 -6
- data/vendor/local/include/glib-2.0/glib/gmarkup.h +80 -5
- data/vendor/local/include/glib-2.0/glib/grand.h +1 -1
- data/vendor/local/include/glib-2.0/glib/gsequence.h +8 -0
- data/vendor/local/include/glib-2.0/glib/gslist.h +2 -0
- data/vendor/local/include/glib-2.0/glib/gtimezone.h +37 -0
- data/vendor/local/include/glib-2.0/glib/gtypes.h +1 -0
- data/vendor/local/include/glib-2.0/glib/gunicode.h +22 -16
- data/vendor/local/include/glib-2.0/glib/gutils.h +5 -0
- data/vendor/local/include/glib-2.0/glib/gvariant.h +35 -11
- data/vendor/local/include/glib-2.0/gobject/gobject.h +15 -0
- data/vendor/local/include/glib-2.0/gobject/gsignal.h +5 -0
- data/vendor/local/include/glib-2.0/gobject/gsourceclosure.h +4 -2
- data/vendor/local/include/glib-2.0/gobject/gtypemodule.h +1 -1
- data/vendor/local/lib/gio-2.0.def +142 -0
- data/vendor/local/lib/gio-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0.def +21 -0
- data/vendor/local/lib/glib-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +1 -1
- data/vendor/local/lib/gmodule-2.0.lib +0 -0
- data/vendor/local/lib/gobject-2.0.def +3 -0
- data/vendor/local/lib/gobject-2.0.lib +0 -0
- data/vendor/local/lib/gthread-2.0.lib +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/pkgconfig/gio-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/glib-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gobject-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gthread-2.0.pc +1 -1
- data/vendor/local/manifest/{glib-dev_2.26.1-1_win32.mft → glib-dev_2.28.1-1_win32.mft} +55 -19
- data/vendor/local/manifest/{glib_2.26.1-1_win32.mft → glib_2.28.1-1_win32.mft} +3 -2
- data/vendor/local/share/aclocal/glib-2.0.m4 +4 -4
- data/vendor/local/share/doc/{glib-2.26.1 → glib-2.28.1}/COPYING +0 -0
- data/vendor/local/share/doc/{glib-dev-2.26.1 → glib-dev-2.28.1}/COPYING +0 -0
- data/vendor/local/share/glib-2.0/gettext/mkinstalldirs +72 -21
- data/vendor/local/share/glib-2.0/schemas/gschema.dtd +21 -8
- data/vendor/local/share/gtk-doc/html/gio/GAction.html +469 -0
- data/vendor/local/share/gtk-doc/html/gio/GActionGroup.html +754 -0
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +296 -249
- data/vendor/local/share/gtk-doc/html/gio/GApplication.html +1458 -0
- data/vendor/local/share/gtk-doc/html/gio/GApplicationCommandLine.html +815 -0
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +61 -97
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +31 -38
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +52 -68
- data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +38 -50
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +120 -77
- data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +26 -34
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +49 -51
- data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +39 -62
- data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +26 -35
- data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +415 -650
- data/vendor/local/share/gtk-doc/html/gio/{gio-GDBusError.html → GDBusError.html} +118 -147
- data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +204 -347
- data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +66 -111
- data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +210 -309
- data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +68 -87
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +190 -232
- data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +89 -118
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +196 -270
- data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +40 -46
- data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +56 -24
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +1090 -1443
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +13 -16
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +66 -86
- data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +31 -45
- data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +19 -21
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +466 -602
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +32 -40
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +60 -59
- data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +32 -47
- data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +37 -45
- data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +22 -26
- data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +22 -26
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +32 -38
- data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +184 -52
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +45 -54
- data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +96 -125
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +21 -25
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +49 -71
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +102 -134
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +43 -54
- data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +21 -24
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +34 -41
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +223 -294
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +127 -153
- data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +35 -46
- data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +37 -46
- data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +138 -174
- data/vendor/local/share/gtk-doc/html/gio/GPermission.html +46 -68
- data/vendor/local/share/gtk-doc/html/gio/GPollableInputStream.html +398 -0
- data/vendor/local/share/gtk-doc/html/gio/GPollableOutputStream.html +340 -0
- data/vendor/local/share/gtk-doc/html/gio/GProxy.html +89 -32
- data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +42 -56
- data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +59 -34
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +82 -95
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +58 -72
- data/vendor/local/share/gtk-doc/html/gio/GSettings.html +597 -357
- data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +125 -75
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAction.html +339 -0
- data/vendor/local/share/gtk-doc/html/gio/GSimpleActionGroup.html +200 -0
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +232 -167
- data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +15 -16
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +291 -406
- data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +39 -45
- data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +301 -223
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +41 -44
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +41 -49
- data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +22 -32
- data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +88 -107
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +26 -32
- data/vendor/local/share/gtk-doc/html/gio/{gio-GSrvTarget.html → GSrvTarget.html} +74 -77
- data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +21 -22
- data/vendor/local/share/gtk-doc/html/gio/GTcpWrapperConnection.html +156 -0
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +40 -46
- data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +29 -35
- data/vendor/local/share/gtk-doc/html/gio/GTlsBackend.html +260 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsCertificate.html +396 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsClientConnection.html +428 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsConnection.html +869 -0
- data/vendor/local/share/gtk-doc/html/gio/GTlsServerConnection.html +158 -0
- data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +32 -41
- data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +28 -34
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +44 -54
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +36 -41
- data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +35 -32
- data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +35 -32
- data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +59 -67
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +49 -57
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +142 -187
- data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +99 -132
- data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +33 -32
- data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +22 -24
- data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +43 -13
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +10 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +20 -20
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +36 -28
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-28.html +744 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +915 -107
- data/vendor/local/share/gtk-doc/html/gio/application.html +50 -0
- data/vendor/local/share/gtk-doc/html/gio/async.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +23 -24
- data/vendor/local/share/gtk-doc/html/gio/ch26.html +54 -36
- data/vendor/local/share/gtk-doc/html/gio/ch27.html +188 -41
- data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +19 -108
- data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +16 -179
- data/vendor/local/share/gtk-doc/html/gio/ch28.html +57 -0
- data/vendor/local/share/gtk-doc/html/gio/{ch26s02.html → ch28s02.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s03.html → ch28s03.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s04.html → ch28s04.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s05.html → ch28s05.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/{ch26s06.html → ch28s06.html} +17 -15
- data/vendor/local/share/gtk-doc/html/gio/{ch26s07.html → ch28s07.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/ch29.html +70 -0
- data/vendor/local/share/gtk-doc/html/gio/ch29s02.html +130 -0
- data/vendor/local/share/gtk-doc/html/gio/ch29s03.html +202 -0
- data/vendor/local/share/gtk-doc/html/gio/{ch27s04.html → ch29s04.html} +11 -11
- data/vendor/local/share/gtk-doc/html/gio/{ch27s05.html → ch29s05.html} +12 -12
- data/vendor/local/share/gtk-doc/html/gio/{ch27s06.html → ch29s06.html} +10 -10
- data/vendor/local/share/gtk-doc/html/gio/conversion.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +27 -14
- data/vendor/local/share/gtk-doc/html/gio/extending.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/file_mon.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/file_ops.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/gdbus.html +18 -18
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +39 -62
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +141 -248
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +28 -40
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +29 -112
- data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +45 -57
- data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +58 -68
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +16 -18
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +18 -20
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +82 -76
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +34 -28
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +25 -33
- data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +87 -113
- data/vendor/local/share/gtk-doc/html/gio/gio-TLS-Overview.html +287 -0
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +119 -151
- data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +62 -95
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +66 -6
- data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +312 -91
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +386 -133
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +12 -12
- data/vendor/local/share/gtk-doc/html/gio/gsettings-tool.html +162 -0
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +7 -4
- data/vendor/local/share/gtk-doc/html/gio/icons.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/index.html +88 -36
- data/vendor/local/share/gtk-doc/html/gio/index.sgml +506 -95
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +23 -23
- data/vendor/local/share/gtk-doc/html/gio/networking.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/permissions.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +68 -17
- data/vendor/local/share/gtk-doc/html/gio/resolver.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/settings.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/streaming.html +9 -3
- data/vendor/local/share/gtk-doc/html/gio/style.css +2 -1
- data/vendor/local/share/gtk-doc/html/gio/tls.html +50 -0
- data/vendor/local/share/gtk-doc/html/gio/tools.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/types.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/utils.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +8 -11
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +25 -5
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-28.html +112 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +6 -6
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +15 -11
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +9 -5
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +201 -89
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +144 -210
- data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +97 -136
- data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +40 -58
- data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +99 -128
- data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +104 -155
- data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +42 -71
- data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +40 -43
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +224 -314
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +104 -142
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +193 -308
- data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +51 -76
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +170 -307
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +154 -198
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +45 -67
- data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +60 -97
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +390 -428
- data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +265 -333
- data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +306 -330
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +60 -99
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +122 -152
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +241 -571
- data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +233 -330
- data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +310 -34
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +739 -590
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +136 -143
- data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +22 -29
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +210 -297
- data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +294 -355
- data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +27 -39
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +102 -95
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +402 -486
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +308 -442
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +75 -116
- data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +229 -297
- data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +36 -36
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +121 -187
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +23 -27
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +80 -107
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +46 -69
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +63 -99
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +121 -115
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +304 -327
- data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +307 -366
- data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +39 -20
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +230 -343
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +121 -167
- data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +31 -45
- data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +73 -113
- data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +75 -106
- data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +229 -184
- data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +31 -40
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +247 -286
- data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +281 -283
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +83 -337
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +65 -80
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +36 -42
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +408 -621
- data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +253 -322
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +161 -252
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +677 -590
- data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +88 -111
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +378 -475
- data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +27 -48
- data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +39 -48
- data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +19 -25
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +57 -93
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +413 -534
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +117 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +38 -53
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +60 -114
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +38 -39
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +7 -13
- data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/glib-core.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +19 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +6 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +10 -10
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +82 -82
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +9 -9
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +26 -26
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +144 -103
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +170 -105
- data/vendor/local/share/gtk-doc/html/glib/glib.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +10 -10
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +10 -10
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +48 -43
- data/vendor/local/share/gtk-doc/html/glib/gvariant-text.html +660 -0
- data/vendor/local/share/gtk-doc/html/glib/index.html +8 -4
- data/vendor/local/share/gtk-doc/html/glib/index.sgml +67 -2
- data/vendor/local/share/gtk-doc/html/glib/style.css +2 -1
- data/vendor/local/share/gtk-doc/html/glib/tools.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +72 -90
- data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +79 -108
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +67 -85
- data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +63 -9
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-28.html +47 -0
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +65 -53
- data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +8 -11
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +19 -19
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +18 -18
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +22 -22
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +16 -16
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +40 -54
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +405 -512
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +170 -213
- data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +242 -292
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +91 -127
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +407 -573
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +951 -1268
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +383 -441
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +648 -829
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +82 -95
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +31 -49
- data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +15 -14
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +10 -10
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +62 -58
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +62 -58
- data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +11 -11
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +14 -14
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +9 -9
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +10 -10
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/index.html +11 -10
- data/vendor/local/share/gtk-doc/html/gobject/index.sgml +13 -1
- data/vendor/local/share/gtk-doc/html/gobject/pr01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/pt01.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/pt02.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/pt03.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/rn01.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +13 -13
- data/vendor/local/share/gtk-doc/html/gobject/style.css +2 -1
- data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +3 -3
- data/vendor/local/share/locale/ar/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/glib20.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/fr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/he/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/glib20.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nb/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/glib20.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr/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/glib20.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/glib20.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/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/man/man1/glib-genmarshal.1 +2 -2
- data/vendor/local/share/man/man1/glib-mkenums.1 +2 -2
- data/vendor/local/share/man/man1/gobject-query.1 +2 -2
- data/vendor/local/src/tml/packaging/{glib_2.26.1-1_win32.log → glib_2.28.1-1_win32.log} +690 -773
- data/vendor/local/src/tml/packaging/{glib_2.26.1-1_win32.sh → glib_2.28.1-1_win32.sh} +2 -4
- metadata +78 -146
- data/ext/glib2/Makefile +0 -169
- data/ext/glib2/glib-enum-types.c +0 -1065
- data/ext/glib2/glib-enum-types.h +0 -144
- data/ext/glib2/ruby-glib2.pc +0 -3
- data/test-unit/COPYING +0 -56
- data/test-unit/GPL +0 -340
- data/test-unit/History.txt +0 -279
- data/test-unit/Manifest.txt +0 -110
- data/test-unit/PSFL +0 -271
- data/test-unit/README.txt +0 -75
- data/test-unit/Rakefile +0 -53
- data/test-unit/TODO +0 -5
- data/test-unit/bin/testrb +0 -5
- data/test-unit/html/bar.png +0 -0
- data/test-unit/html/bar.svg +0 -153
- data/test-unit/html/developer.png +0 -0
- data/test-unit/html/developer.svg +0 -469
- data/test-unit/html/famfamfam-logo.png +0 -0
- data/test-unit/html/favicon.ico +0 -0
- data/test-unit/html/favicon.png +0 -0
- data/test-unit/html/favicon.svg +0 -82
- data/test-unit/html/heading-mark.png +0 -0
- data/test-unit/html/heading-mark.svg +0 -393
- data/test-unit/html/index.html +0 -285
- data/test-unit/html/index.html.ja +0 -299
- data/test-unit/html/install.png +0 -0
- data/test-unit/html/install.svg +0 -636
- data/test-unit/html/jp.png +0 -0
- data/test-unit/html/kinotan-failure.png +0 -0
- data/test-unit/html/kinotan-pass.png +0 -0
- data/test-unit/html/logo.png +0 -0
- data/test-unit/html/logo.svg +0 -483
- data/test-unit/html/reference.png +0 -0
- data/test-unit/html/rubyforge.png +0 -0
- data/test-unit/html/tango-logo.png +0 -0
- data/test-unit/html/test-unit.css +0 -339
- data/test-unit/html/tutorial.png +0 -0
- data/test-unit/html/tutorial.svg +0 -559
- data/test-unit/html/us.png +0 -0
- data/test-unit/images/color-diff.png +0 -0
- data/test-unit/lib/test/unit.rb +0 -328
- data/test-unit/lib/test/unit/assertionfailederror.rb +0 -25
- data/test-unit/lib/test/unit/assertions.rb +0 -1792
- data/test-unit/lib/test/unit/attribute.rb +0 -125
- data/test-unit/lib/test/unit/autorunner.rb +0 -415
- data/test-unit/lib/test/unit/collector.rb +0 -38
- data/test-unit/lib/test/unit/collector/descendant.rb +0 -23
- data/test-unit/lib/test/unit/collector/dir.rb +0 -108
- data/test-unit/lib/test/unit/collector/load.rb +0 -187
- data/test-unit/lib/test/unit/collector/objectspace.rb +0 -34
- data/test-unit/lib/test/unit/collector/xml.rb +0 -250
- data/test-unit/lib/test/unit/color-scheme.rb +0 -106
- data/test-unit/lib/test/unit/color.rb +0 -96
- data/test-unit/lib/test/unit/diff.rb +0 -740
- data/test-unit/lib/test/unit/error.rb +0 -131
- data/test-unit/lib/test/unit/exceptionhandler.rb +0 -39
- data/test-unit/lib/test/unit/failure.rb +0 -136
- data/test-unit/lib/test/unit/fixture.rb +0 -185
- data/test-unit/lib/test/unit/notification.rb +0 -129
- data/test-unit/lib/test/unit/omission.rb +0 -191
- data/test-unit/lib/test/unit/pending.rb +0 -150
- data/test-unit/lib/test/unit/priority.rb +0 -180
- data/test-unit/lib/test/unit/runner/console.rb +0 -52
- data/test-unit/lib/test/unit/runner/emacs.rb +0 -8
- data/test-unit/lib/test/unit/runner/tap.rb +0 -8
- data/test-unit/lib/test/unit/runner/xml.rb +0 -15
- data/test-unit/lib/test/unit/testcase.rb +0 -515
- data/test-unit/lib/test/unit/testresult.rb +0 -125
- data/test-unit/lib/test/unit/testsuite.rb +0 -134
- data/test-unit/lib/test/unit/ui/console/outputlevel.rb +0 -14
- data/test-unit/lib/test/unit/ui/console/testrunner.rb +0 -467
- data/test-unit/lib/test/unit/ui/emacs/testrunner.rb +0 -63
- data/test-unit/lib/test/unit/ui/tap/testrunner.rb +0 -82
- data/test-unit/lib/test/unit/ui/testrunner.rb +0 -53
- data/test-unit/lib/test/unit/ui/testrunnermediator.rb +0 -86
- data/test-unit/lib/test/unit/ui/testrunnerutilities.rb +0 -41
- data/test-unit/lib/test/unit/ui/xml/testrunner.rb +0 -224
- data/test-unit/lib/test/unit/util/backtracefilter.rb +0 -42
- data/test-unit/lib/test/unit/util/method-owner-finder.rb +0 -28
- data/test-unit/lib/test/unit/util/observable.rb +0 -90
- data/test-unit/lib/test/unit/util/output.rb +0 -31
- data/test-unit/lib/test/unit/util/procwrapper.rb +0 -48
- data/test-unit/lib/test/unit/version.rb +0 -7
- data/test-unit/sample/adder.rb +0 -13
- data/test-unit/sample/subtracter.rb +0 -12
- data/test-unit/sample/test_adder.rb +0 -20
- data/test-unit/sample/test_subtracter.rb +0 -20
- data/test-unit/sample/test_user.rb +0 -23
- data/test-unit/test/collector/test-descendant.rb +0 -133
- data/test-unit/test/collector/test-load.rb +0 -442
- data/test-unit/test/collector/test_dir.rb +0 -406
- data/test-unit/test/collector/test_objectspace.rb +0 -100
- data/test-unit/test/run-test.rb +0 -22
- data/test-unit/test/test-assertions.rb +0 -1849
- data/test-unit/test/test-attribute.rb +0 -86
- data/test-unit/test/test-color-scheme.rb +0 -69
- data/test-unit/test/test-color.rb +0 -47
- data/test-unit/test/test-diff.rb +0 -518
- data/test-unit/test/test-emacs-runner.rb +0 -60
- data/test-unit/test/test-fixture.rb +0 -324
- data/test-unit/test/test-notification.rb +0 -33
- data/test-unit/test/test-omission.rb +0 -81
- data/test-unit/test/test-pending.rb +0 -70
- data/test-unit/test/test-priority.rb +0 -119
- data/test-unit/test/test-testcase.rb +0 -569
- data/test-unit/test/test_error.rb +0 -26
- data/test-unit/test/test_failure.rb +0 -33
- data/test-unit/test/test_testresult.rb +0 -113
- data/test-unit/test/test_testsuite.rb +0 -137
- data/test-unit/test/testunit-test-util.rb +0 -14
- data/test-unit/test/ui/test_tap.rb +0 -33
- data/test-unit/test/ui/test_testrunmediator.rb +0 -20
- data/test-unit/test/util/test-method-owner-finder.rb +0 -38
- data/test-unit/test/util/test-output.rb +0 -11
- data/test-unit/test/util/test_backtracefilter.rb +0 -41
- data/test-unit/test/util/test_observable.rb +0 -102
- data/test-unit/test/util/test_procwrapper.rb +0 -36
- 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
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="glib-utilities.html" title="GLib Utilities">
|
9
9
|
<link rel="prev" href="glib-File-Utilities.html" title="File Utilities">
|
10
10
|
<link rel="next" href="glib-Hostname-Utilities.html" title="Hostname Utilities">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.16.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
@@ -26,7 +26,7 @@
|
|
26
26
|
<a href="#glib-URI-Functions.description" class="shortcut">Description</a>
|
27
27
|
</td></tr>
|
28
28
|
</table>
|
29
|
-
<div class="refentry"
|
29
|
+
<div class="refentry">
|
30
30
|
<a name="glib-URI-Functions"></a><div class="titlepage"></div>
|
31
31
|
<div class="refnamediv"><table width="100%"><tr>
|
32
32
|
<td valign="top">
|
@@ -35,7 +35,7 @@
|
|
35
35
|
</td>
|
36
36
|
<td valign="top" align="right"></td>
|
37
37
|
</tr></table></div>
|
38
|
-
<div class="refsynopsisdiv"
|
38
|
+
<div class="refsynopsisdiv">
|
39
39
|
<a name="glib-URI-Functions.synopsis"></a><h2>Synopsis</h2>
|
40
40
|
<pre class="synopsis">
|
41
41
|
#include <glib.h>
|
@@ -55,15 +55,11 @@
|
|
55
55
|
<em class="parameter"><code>const <span class="type">char</span> *escaped_string_end</code></em>,
|
56
56
|
<em class="parameter"><code>const <span class="type">char</span> *illegal_characters</code></em>);
|
57
57
|
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> ** <a class="link" href="glib-URI-Functions.html#g-uri-list-extract-uris" title="g_uri_list_extract_uris ()">g_uri_list_extract_uris</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri_list</code></em>);
|
58
|
-
|
59
|
-
|
60
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
61
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-URI-Functions.html#g-filename-to-uri" title="g_filename_to_uri ()">g_filename_to_uri</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>,
|
62
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *hostname</code></em>,
|
63
|
-
<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
|
+
#define <a class="link" href="glib-URI-Functions.html#g-filename-from-uri" title="g_filename_from_uri">g_filename_from_uri</a>
|
59
|
+
#define <a class="link" href="glib-URI-Functions.html#g-filename-to-uri" title="g_filename_to_uri">g_filename_to_uri</a>
|
64
60
|
</pre>
|
65
61
|
</div>
|
66
|
-
<div class="refsect1"
|
62
|
+
<div class="refsect1">
|
67
63
|
<a name="glib-URI-Functions.description"></a><h2>Description</h2>
|
68
64
|
<p>
|
69
65
|
Functions for manipulating Universal Resource Identifiers (URIs) as
|
@@ -72,9 +68,9 @@ RFC 3986</a>. It is highly recommended that you have read and
|
|
72
68
|
understand RFC 3986 for understanding this API.
|
73
69
|
</p>
|
74
70
|
</div>
|
75
|
-
<div class="refsect1"
|
71
|
+
<div class="refsect1">
|
76
72
|
<a name="glib-URI-Functions.details"></a><h2>Details</h2>
|
77
|
-
<div class="refsect2"
|
73
|
+
<div class="refsect2">
|
78
74
|
<a name="G-URI-RESERVED-CHARS-ALLOWED-IN-PATH:CAPS"></a><h3>G_URI_RESERVED_CHARS_ALLOWED_IN_PATH</h3>
|
79
75
|
<pre class="programlisting">#define G_URI_RESERVED_CHARS_ALLOWED_IN_PATH G_URI_RESERVED_CHARS_ALLOWED_IN_PATH_ELEMENT "/"
|
80
76
|
</pre>
|
@@ -83,7 +79,7 @@ Allowed characters in a path. Includes "!$&'()*+,;=:@/".
|
|
83
79
|
</p>
|
84
80
|
</div>
|
85
81
|
<hr>
|
86
|
-
<div class="refsect2"
|
82
|
+
<div class="refsect2">
|
87
83
|
<a name="G-URI-RESERVED-CHARS-ALLOWED-IN-PATH-ELEMENT:CAPS"></a><h3>G_URI_RESERVED_CHARS_ALLOWED_IN_PATH_ELEMENT</h3>
|
88
84
|
<pre class="programlisting">#define G_URI_RESERVED_CHARS_ALLOWED_IN_PATH_ELEMENT G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS ":@"
|
89
85
|
</pre>
|
@@ -92,7 +88,7 @@ Allowed characters in path elements. Includes "!$&'()*+,;=:@".
|
|
92
88
|
</p>
|
93
89
|
</div>
|
94
90
|
<hr>
|
95
|
-
<div class="refsect2"
|
91
|
+
<div class="refsect2">
|
96
92
|
<a name="G-URI-RESERVED-CHARS-ALLOWED-IN-USERINFO:CAPS"></a><h3>G_URI_RESERVED_CHARS_ALLOWED_IN_USERINFO</h3>
|
97
93
|
<pre class="programlisting">#define G_URI_RESERVED_CHARS_ALLOWED_IN_USERINFO G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS ":"
|
98
94
|
</pre>
|
@@ -101,7 +97,7 @@ Allowed characters in userinfo as defined in RFC 3986. Includes "!$&'()*+,;=
|
|
101
97
|
</p>
|
102
98
|
</div>
|
103
99
|
<hr>
|
104
|
-
<div class="refsect2"
|
100
|
+
<div class="refsect2">
|
105
101
|
<a name="G-URI-RESERVED-CHARS-GENERIC-DELIMITERS:CAPS"></a><h3>G_URI_RESERVED_CHARS_GENERIC_DELIMITERS</h3>
|
106
102
|
<pre class="programlisting">#define G_URI_RESERVED_CHARS_GENERIC_DELIMITERS ":/?#[]@"
|
107
103
|
</pre>
|
@@ -110,7 +106,7 @@ Generic delimiters characters as defined in RFC 3986. Includes ":/?#[]@".
|
|
110
106
|
</p>
|
111
107
|
</div>
|
112
108
|
<hr>
|
113
|
-
<div class="refsect2"
|
109
|
+
<div class="refsect2">
|
114
110
|
<a name="G-URI-RESERVED-CHARS-SUBCOMPONENT-DELIMITERS:CAPS"></a><h3>G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS</h3>
|
115
111
|
<pre class="programlisting">#define G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS "!$&'()*+,;="
|
116
112
|
</pre>
|
@@ -119,7 +115,7 @@ Subcomponent delimiter characters as defined in RFC 3986. Includes "!$&'()*+
|
|
119
115
|
</p>
|
120
116
|
</div>
|
121
117
|
<hr>
|
122
|
-
<div class="refsect2"
|
118
|
+
<div class="refsect2">
|
123
119
|
<a name="g-uri-parse-scheme"></a><h3>g_uri_parse_scheme ()</h3>
|
124
120
|
<pre class="programlisting"><span class="returnvalue">char</span> * g_uri_parse_scheme (<em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);</pre>
|
125
121
|
<p>
|
@@ -136,22 +132,19 @@ Common schemes include "file", "http", "svn+ssh", etc.
|
|
136
132
|
<tbody>
|
137
133
|
<tr>
|
138
134
|
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
|
139
|
-
<td>a valid URI
|
140
|
-
</td>
|
135
|
+
<td>a valid URI.</td>
|
141
136
|
</tr>
|
142
137
|
<tr>
|
143
138
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
144
|
-
<td>
|
145
|
-
The returned string should be freed when no longer needed
|
146
|
-
|
147
|
-
</td>
|
139
|
+
<td>The "Scheme" component of the URI, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> on error.
|
140
|
+
The returned string should be freed when no longer needed.</td>
|
148
141
|
</tr>
|
149
142
|
</tbody>
|
150
143
|
</table></div>
|
151
144
|
<p class="since">Since 2.16</p>
|
152
145
|
</div>
|
153
146
|
<hr>
|
154
|
-
<div class="refsect2"
|
147
|
+
<div class="refsect2">
|
155
148
|
<a name="g-uri-escape-string"></a><h3>g_uri_escape_string ()</h3>
|
156
149
|
<pre class="programlisting"><span class="returnvalue">char</span> * g_uri_escape_string (<em class="parameter"><code>const <span class="type">char</span> *unescaped</code></em>,
|
157
150
|
<em class="parameter"><code>const <span class="type">char</span> *reserved_chars_allowed</code></em>,
|
@@ -172,34 +165,29 @@ a URI.
|
|
172
165
|
<tbody>
|
173
166
|
<tr>
|
174
167
|
<td><p><span class="term"><em class="parameter"><code>unescaped</code></em> :</span></p></td>
|
175
|
-
<td>the unescaped input string
|
176
|
-
</td>
|
168
|
+
<td>the unescaped input string.</td>
|
177
169
|
</tr>
|
178
170
|
<tr>
|
179
171
|
<td><p><span class="term"><em class="parameter"><code>reserved_chars_allowed</code></em> :</span></p></td>
|
180
172
|
<td>a string of reserved characters that are
|
181
|
-
|
182
|
-
</td>
|
173
|
+
allowed to be used, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.</td>
|
183
174
|
</tr>
|
184
175
|
<tr>
|
185
176
|
<td><p><span class="term"><em class="parameter"><code>allow_utf8</code></em> :</span></p></td>
|
186
177
|
<td>
|
187
|
-
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the result can include UTF-8 characters
|
188
|
-
</td>
|
178
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the result can include UTF-8 characters.</td>
|
189
179
|
</tr>
|
190
180
|
<tr>
|
191
181
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
192
|
-
<td>
|
193
|
-
freed when no longer needed
|
194
|
-
|
195
|
-
</td>
|
182
|
+
<td>an escaped version of <em class="parameter"><code>unescaped</code></em>. The returned string should be
|
183
|
+
freed when no longer needed.</td>
|
196
184
|
</tr>
|
197
185
|
</tbody>
|
198
186
|
</table></div>
|
199
187
|
<p class="since">Since 2.16</p>
|
200
188
|
</div>
|
201
189
|
<hr>
|
202
|
-
<div class="refsect2"
|
190
|
+
<div class="refsect2">
|
203
191
|
<a name="g-uri-unescape-string"></a><h3>g_uri_unescape_string ()</h3>
|
204
192
|
<pre class="programlisting"><span class="returnvalue">char</span> * g_uri_unescape_string (<em class="parameter"><code>const <span class="type">char</span> *escaped_string</code></em>,
|
205
193
|
<em class="parameter"><code>const <span class="type">char</span> *illegal_characters</code></em>);</pre>
|
@@ -218,27 +206,23 @@ handling.
|
|
218
206
|
<tbody>
|
219
207
|
<tr>
|
220
208
|
<td><p><span class="term"><em class="parameter"><code>escaped_string</code></em> :</span></p></td>
|
221
|
-
<td>an escaped string to be unescaped
|
222
|
-
</td>
|
209
|
+
<td>an escaped string to be unescaped.</td>
|
223
210
|
</tr>
|
224
211
|
<tr>
|
225
212
|
<td><p><span class="term"><em class="parameter"><code>illegal_characters</code></em> :</span></p></td>
|
226
|
-
<td>an optional string of illegal characters not to be allowed
|
227
|
-
</td>
|
213
|
+
<td>an optional string of illegal characters not to be allowed.</td>
|
228
214
|
</tr>
|
229
215
|
<tr>
|
230
216
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
231
|
-
<td>
|
232
|
-
should be freed when no longer needed
|
233
|
-
|
234
|
-
</td>
|
217
|
+
<td>an unescaped version of <em class="parameter"><code>escaped_string</code></em>. The returned string
|
218
|
+
should be freed when no longer needed.</td>
|
235
219
|
</tr>
|
236
220
|
</tbody>
|
237
221
|
</table></div>
|
238
222
|
<p class="since">Since 2.16</p>
|
239
223
|
</div>
|
240
224
|
<hr>
|
241
|
-
<div class="refsect2"
|
225
|
+
<div class="refsect2">
|
242
226
|
<a name="g-uri-unescape-segment"></a><h3>g_uri_unescape_segment ()</h3>
|
243
227
|
<pre class="programlisting"><span class="returnvalue">char</span> * g_uri_unescape_segment (<em class="parameter"><code>const <span class="type">char</span> *escaped_string</code></em>,
|
244
228
|
<em class="parameter"><code>const <span class="type">char</span> *escaped_string_end</code></em>,
|
@@ -258,32 +242,27 @@ handling.
|
|
258
242
|
<tbody>
|
259
243
|
<tr>
|
260
244
|
<td><p><span class="term"><em class="parameter"><code>escaped_string</code></em> :</span></p></td>
|
261
|
-
<td>a string
|
262
|
-
</td>
|
245
|
+
<td>a string.</td>
|
263
246
|
</tr>
|
264
247
|
<tr>
|
265
248
|
<td><p><span class="term"><em class="parameter"><code>escaped_string_end</code></em> :</span></p></td>
|
266
|
-
<td>a string
|
267
|
-
</td>
|
249
|
+
<td>a string.</td>
|
268
250
|
</tr>
|
269
251
|
<tr>
|
270
252
|
<td><p><span class="term"><em class="parameter"><code>illegal_characters</code></em> :</span></p></td>
|
271
|
-
<td>an optional string of illegal characters not to be allowed
|
272
|
-
</td>
|
253
|
+
<td>an optional string of illegal characters not to be allowed.</td>
|
273
254
|
</tr>
|
274
255
|
<tr>
|
275
256
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
276
|
-
<td>
|
277
|
-
The returned string should be freed when no longer needed
|
278
|
-
|
279
|
-
</td>
|
257
|
+
<td>an unescaped version of <em class="parameter"><code>escaped_string</code></em> or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> on error.
|
258
|
+
The returned string should be freed when no longer needed.</td>
|
280
259
|
</tr>
|
281
260
|
</tbody>
|
282
261
|
</table></div>
|
283
262
|
<p class="since">Since 2.16</p>
|
284
263
|
</div>
|
285
264
|
<hr>
|
286
|
-
<div class="refsect2"
|
265
|
+
<div class="refsect2">
|
287
266
|
<a name="g-uri-list-extract-uris"></a><h3>g_uri_list_extract_uris ()</h3>
|
288
267
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> ** g_uri_list_extract_uris (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri_list</code></em>);</pre>
|
289
268
|
<p>
|
@@ -296,27 +275,22 @@ discarding any comments. The URIs are not validated.
|
|
296
275
|
<tbody>
|
297
276
|
<tr>
|
298
277
|
<td><p><span class="term"><em class="parameter"><code>uri_list</code></em> :</span></p></td>
|
299
|
-
<td>an URI list
|
300
|
-
</td>
|
278
|
+
<td>an URI list</td>
|
301
279
|
</tr>
|
302
280
|
<tr>
|
303
281
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
304
|
-
<td>
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
</td>
|
282
|
+
<td>a newly allocated <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>-terminated list of
|
283
|
+
strings holding the individual URIs. The array should
|
284
|
+
be freed with <a class="link" href="glib-String-Utility-Functions.html#g-strfreev" title="g_strfreev ()"><code class="function">g_strfreev()</code></a>.</td>
|
309
285
|
</tr>
|
310
286
|
</tbody>
|
311
287
|
</table></div>
|
312
288
|
<p class="since">Since 2.6</p>
|
313
289
|
</div>
|
314
290
|
<hr>
|
315
|
-
<div class="refsect2"
|
316
|
-
<a name="g-filename-from-uri"></a><h3>g_filename_from_uri
|
317
|
-
<pre class="programlisting"
|
318
|
-
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **hostname</code></em>,
|
319
|
-
<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>
|
291
|
+
<div class="refsect2">
|
292
|
+
<a name="g-filename-from-uri"></a><h3>g_filename_from_uri</h3>
|
293
|
+
<pre class="programlisting">#define g_filename_from_uri</pre>
|
320
294
|
<p>
|
321
295
|
Converts an escaped ASCII-encoded URI to a local filename in the
|
322
296
|
encoding used for filenames.
|
@@ -326,37 +300,31 @@ encoding used for filenames.
|
|
326
300
|
<tbody>
|
327
301
|
<tr>
|
328
302
|
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
|
329
|
-
<td>a uri describing a filename (escaped, encoded in ASCII)
|
330
|
-
</td>
|
303
|
+
<td>a uri describing a filename (escaped, encoded in ASCII).</td>
|
331
304
|
</tr>
|
332
305
|
<tr>
|
333
306
|
<td><p><span class="term"><em class="parameter"><code>hostname</code></em> :</span></p></td>
|
334
307
|
<td>Location to store hostname for the URI, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
335
|
-
|
336
|
-
|
337
|
-
</td>
|
308
|
+
If there is no hostname in the URI, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> will be
|
309
|
+
stored in this location.</td>
|
338
310
|
</tr>
|
339
311
|
<tr>
|
340
312
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
341
313
|
<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
|
342
|
-
|
343
|
-
</td>
|
314
|
+
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.</td>
|
344
315
|
</tr>
|
345
316
|
<tr>
|
346
317
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
347
|
-
<td>
|
348
|
-
|
349
|
-
</td>
|
318
|
+
<td>a newly-allocated string holding the resulting
|
319
|
+
filename, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> on an error.</td>
|
350
320
|
</tr>
|
351
321
|
</tbody>
|
352
322
|
</table></div>
|
353
323
|
</div>
|
354
324
|
<hr>
|
355
|
-
<div class="refsect2"
|
356
|
-
<a name="g-filename-to-uri"></a><h3>g_filename_to_uri
|
357
|
-
<pre class="programlisting"
|
358
|
-
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *hostname</code></em>,
|
359
|
-
<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>
|
325
|
+
<div class="refsect2">
|
326
|
+
<a name="g-filename-to-uri"></a><h3>g_filename_to_uri</h3>
|
327
|
+
<pre class="programlisting">#define g_filename_to_uri</pre>
|
360
328
|
<p>
|
361
329
|
Converts an absolute filename to an escaped ASCII-encoded URI, with the path
|
362
330
|
component following Section 3.3. of RFC 2396.
|
@@ -367,26 +335,22 @@ component following Section 3.3. of RFC 2396.
|
|
367
335
|
<tr>
|
368
336
|
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
|
369
337
|
<td>an absolute filename specified in the GLib file name encoding,
|
370
|
-
|
371
|
-
|
372
|
-
</td>
|
338
|
+
which is the on-disk file name bytes on Unix, and UTF-8 on
|
339
|
+
Windows</td>
|
373
340
|
</tr>
|
374
341
|
<tr>
|
375
342
|
<td><p><span class="term"><em class="parameter"><code>hostname</code></em> :</span></p></td>
|
376
|
-
<td>A UTF-8 encoded hostname, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> for none
|
377
|
-
</td>
|
343
|
+
<td>A UTF-8 encoded hostname, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> for none.</td>
|
378
344
|
</tr>
|
379
345
|
<tr>
|
380
346
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
381
347
|
<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
|
382
|
-
|
383
|
-
</td>
|
348
|
+
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.</td>
|
384
349
|
</tr>
|
385
350
|
<tr>
|
386
351
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
387
|
-
<td>
|
388
|
-
|
389
|
-
</td>
|
352
|
+
<td>a newly-allocated string holding the resulting
|
353
|
+
URI, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> on an error.</td>
|
390
354
|
</tr>
|
391
355
|
</tbody>
|
392
356
|
</table></div>
|
@@ -395,6 +359,6 @@ component following Section 3.3. of RFC 2396.
|
|
395
359
|
</div>
|
396
360
|
<div class="footer">
|
397
361
|
<hr>
|
398
|
-
Generated by GTK-Doc V1.
|
362
|
+
Generated by GTK-Doc V1.16.1</div>
|
399
363
|
</body>
|
400
364
|
</html>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="glib-utilities.html" title="GLib Utilities">
|
9
9
|
<link rel="prev" href="glib-Character-Set-Conversion.html" title="Character Set Conversion">
|
10
10
|
<link rel="next" href="glib-Base64-Encoding.html" title="Base64 Encoding">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.16.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
@@ -26,7 +26,7 @@
|
|
26
26
|
<a href="#glib-Unicode-Manipulation.description" class="shortcut">Description</a>
|
27
27
|
</td></tr>
|
28
28
|
</table>
|
29
|
-
<div class="refentry"
|
29
|
+
<div class="refentry">
|
30
30
|
<a name="glib-Unicode-Manipulation"></a><div class="titlepage"></div>
|
31
31
|
<div class="refnamediv"><table width="100%"><tr>
|
32
32
|
<td valign="top">
|
@@ -35,7 +35,7 @@
|
|
35
35
|
</td>
|
36
36
|
<td valign="top" align="right"></td>
|
37
37
|
</tr></table></div>
|
38
|
-
<div class="refsynopsisdiv"
|
38
|
+
<div class="refsynopsisdiv">
|
39
39
|
<a name="glib-Unicode-Manipulation.synopsis"></a><h2>Synopsis</h2>
|
40
40
|
<pre class="synopsis">
|
41
41
|
#include <glib.h>
|
@@ -84,27 +84,27 @@ enum <a class="link" href="glib-Unicode-Manipulation.html#GUnicod
|
|
84
84
|
<a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="returnvalue">gunichar</span></a> <a class="link" href="glib-Unicode-Manipulation.html#g-utf8-get-char" title="g_utf8_get_char ()">g_utf8_get_char</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *p</code></em>);
|
85
85
|
<a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="returnvalue">gunichar</span></a> <a class="link" href="glib-Unicode-Manipulation.html#g-utf8-get-char-validated" title="g_utf8_get_char_validated ()">g_utf8_get_char_validated</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *p</code></em>,
|
86
86
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> max_len</code></em>);
|
87
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
87
|
+
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Unicode-Manipulation.html#g-utf8-offset-to-pointer" title="g_utf8_offset_to_pointer ()">g_utf8_offset_to_pointer</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>,
|
88
88
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> offset</code></em>);
|
89
89
|
<a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="returnvalue">glong</span></a> <a class="link" href="glib-Unicode-Manipulation.html#g-utf8-pointer-to-offset" title="g_utf8_pointer_to_offset ()">g_utf8_pointer_to_offset</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>,
|
90
90
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *pos</code></em>);
|
91
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
92
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
91
|
+
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Unicode-Manipulation.html#g-utf8-prev-char" title="g_utf8_prev_char ()">g_utf8_prev_char</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *p</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-Unicode-Manipulation.html#g-utf8-find-next-char" title="g_utf8_find_next_char ()">g_utf8_find_next_char</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *p</code></em>,
|
93
93
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *end</code></em>);
|
94
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
94
|
+
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Unicode-Manipulation.html#g-utf8-find-prev-char" title="g_utf8_find_prev_char ()">g_utf8_find_prev_char</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>,
|
95
95
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *p</code></em>);
|
96
96
|
<a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="returnvalue">glong</span></a> <a class="link" href="glib-Unicode-Manipulation.html#g-utf8-strlen" title="g_utf8_strlen ()">g_utf8_strlen</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *p</code></em>,
|
97
97
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> max</code></em>);
|
98
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
98
|
+
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Unicode-Manipulation.html#g-utf8-strncpy" title="g_utf8_strncpy ()">g_utf8_strncpy</a> (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *dest</code></em>,
|
99
99
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *src</code></em>,
|
100
100
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n</code></em>);
|
101
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
101
|
+
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Unicode-Manipulation.html#g-utf8-strchr" title="g_utf8_strchr ()">g_utf8_strchr</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *p</code></em>,
|
102
102
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>,
|
103
103
|
<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);
|
104
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
104
|
+
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Unicode-Manipulation.html#g-utf8-strrchr" title="g_utf8_strrchr ()">g_utf8_strrchr</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *p</code></em>,
|
105
105
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>,
|
106
106
|
<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);
|
107
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
107
|
+
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Unicode-Manipulation.html#g-utf8-strreverse" title="g_utf8_strreverse ()">g_utf8_strreverse</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>,
|
108
108
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>);
|
109
109
|
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="glib-Unicode-Manipulation.html#g-utf8-validate" title="g_utf8_validate ()">g_utf8_validate</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>,
|
110
110
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> max_len</code></em>,
|
@@ -131,12 +131,12 @@ enum <a class="link" href="glib-Unicode-Manipulation.html#GNormal
|
|
131
131
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> len</code></em>,
|
132
132
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_read</code></em>,
|
133
133
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_written</code></em>,
|
134
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
134
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
135
135
|
<a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="returnvalue">gunichar</span></a> * <a class="link" href="glib-Unicode-Manipulation.html#g-utf8-to-ucs4" title="g_utf8_to_ucs4 ()">g_utf8_to_ucs4</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>,
|
136
136
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> len</code></em>,
|
137
137
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_read</code></em>,
|
138
138
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_written</code></em>,
|
139
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
139
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
140
140
|
<a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="returnvalue">gunichar</span></a> * <a class="link" href="glib-Unicode-Manipulation.html#g-utf8-to-ucs4-fast" title="g_utf8_to_ucs4_fast ()">g_utf8_to_ucs4_fast</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>,
|
141
141
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> len</code></em>,
|
142
142
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_written</code></em>);
|
@@ -144,27 +144,27 @@ enum <a class="link" href="glib-Unicode-Manipulation.html#GNormal
|
|
144
144
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> len</code></em>,
|
145
145
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_read</code></em>,
|
146
146
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_written</code></em>,
|
147
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
148
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
147
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
148
|
+
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Unicode-Manipulation.html#g-utf16-to-utf8" title="g_utf16_to_utf8 ()">g_utf16_to_utf8</a> (<em class="parameter"><code>const <a class="link" href="glib-Unicode-Manipulation.html#gunichar2" title="gunichar2"><span class="type">gunichar2</span></a> *str</code></em>,
|
149
149
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> len</code></em>,
|
150
150
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_read</code></em>,
|
151
151
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_written</code></em>,
|
152
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
152
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
153
153
|
<a class="link" href="glib-Unicode-Manipulation.html#gunichar2" title="gunichar2"><span class="returnvalue">gunichar2</span></a> * <a class="link" href="glib-Unicode-Manipulation.html#g-ucs4-to-utf16" title="g_ucs4_to_utf16 ()">g_ucs4_to_utf16</a> (<em class="parameter"><code>const <a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> *str</code></em>,
|
154
154
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> len</code></em>,
|
155
155
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_read</code></em>,
|
156
156
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_written</code></em>,
|
157
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
158
|
-
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
157
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
158
|
+
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="glib-Unicode-Manipulation.html#g-ucs4-to-utf8" title="g_ucs4_to_utf8 ()">g_ucs4_to_utf8</a> (<em class="parameter"><code>const <a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> *str</code></em>,
|
159
159
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> len</code></em>,
|
160
160
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_read</code></em>,
|
161
161
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_written</code></em>,
|
162
|
-
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="GError"><span class="type">GError</span></a> **error</code></em>);
|
162
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
|
163
163
|
<a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> <a class="link" href="glib-Unicode-Manipulation.html#g-unichar-to-utf8" title="g_unichar_to_utf8 ()">g_unichar_to_utf8</a> (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>,
|
164
164
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *outbuf</code></em>);
|
165
165
|
</pre>
|
166
166
|
</div>
|
167
|
-
<div class="refsect1"
|
167
|
+
<div class="refsect1">
|
168
168
|
<a name="glib-Unicode-Manipulation.description"></a><h2>Description</h2>
|
169
169
|
<p>
|
170
170
|
This section describes a number of functions for dealing with
|
@@ -183,9 +183,9 @@ GLib 2.8 supports Unicode 4.0, GLib 2.10 supports Unicode 4.1,
|
|
183
183
|
GLib 2.12 supports Unicode 5.0, GLib 2.16.3 supports Unicode 5.1.
|
184
184
|
</p>
|
185
185
|
</div>
|
186
|
-
<div class="refsect1"
|
186
|
+
<div class="refsect1">
|
187
187
|
<a name="glib-Unicode-Manipulation.details"></a><h2>Details</h2>
|
188
|
-
<div class="refsect2"
|
188
|
+
<div class="refsect2">
|
189
189
|
<a name="gunichar"></a><h3>gunichar</h3>
|
190
190
|
<pre class="programlisting">typedef guint32 gunichar;
|
191
191
|
</pre>
|
@@ -230,7 +230,7 @@ To scan, use the format string "U+<code class="literal">06</code>"G_GINT32_FORMA
|
|
230
230
|
</p>
|
231
231
|
</div>
|
232
232
|
<hr>
|
233
|
-
<div class="refsect2"
|
233
|
+
<div class="refsect2">
|
234
234
|
<a name="gunichar2"></a><h3>gunichar2</h3>
|
235
235
|
<pre class="programlisting">typedef guint16 gunichar2;
|
236
236
|
</pre>
|
@@ -248,7 +248,7 @@ To print/scan values of this type as integer, use
|
|
248
248
|
</p>
|
249
249
|
</div>
|
250
250
|
<hr>
|
251
|
-
<div class="refsect2"
|
251
|
+
<div class="refsect2">
|
252
252
|
<a name="g-unichar-validate"></a><h3>g_unichar_validate ()</h3>
|
253
253
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_unichar_validate (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> ch</code></em>);</pre>
|
254
254
|
<p>
|
@@ -261,19 +261,18 @@ character, though it's normally a string terminator.
|
|
261
261
|
<tbody>
|
262
262
|
<tr>
|
263
263
|
<td><p><span class="term"><em class="parameter"><code>ch</code></em> :</span></p></td>
|
264
|
-
<td>a Unicode character
|
265
|
-
</td>
|
264
|
+
<td>a Unicode character</td>
|
266
265
|
</tr>
|
267
266
|
<tr>
|
268
267
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
269
|
-
<td>
|
270
|
-
</td>
|
268
|
+
<td>
|
269
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if <em class="parameter"><code>ch</code></em> is a valid Unicode character</td>
|
271
270
|
</tr>
|
272
271
|
</tbody>
|
273
272
|
</table></div>
|
274
273
|
</div>
|
275
274
|
<hr>
|
276
|
-
<div class="refsect2"
|
275
|
+
<div class="refsect2">
|
277
276
|
<a name="g-unichar-isalnum"></a><h3>g_unichar_isalnum ()</h3>
|
278
277
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_unichar_isalnum (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
279
278
|
<p>
|
@@ -286,19 +285,18 @@ with <a class="link" href="glib-Unicode-Manipulation.html#g-utf8-get-char" title
|
|
286
285
|
<tbody>
|
287
286
|
<tr>
|
288
287
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
289
|
-
<td>a Unicode character
|
290
|
-
</td>
|
288
|
+
<td>a Unicode character</td>
|
291
289
|
</tr>
|
292
290
|
<tr>
|
293
291
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
294
|
-
<td>
|
295
|
-
</td>
|
292
|
+
<td>
|
293
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if <em class="parameter"><code>c</code></em> is an alphanumeric character</td>
|
296
294
|
</tr>
|
297
295
|
</tbody>
|
298
296
|
</table></div>
|
299
297
|
</div>
|
300
298
|
<hr>
|
301
|
-
<div class="refsect2"
|
299
|
+
<div class="refsect2">
|
302
300
|
<a name="g-unichar-isalpha"></a><h3>g_unichar_isalpha ()</h3>
|
303
301
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_unichar_isalpha (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
304
302
|
<p>
|
@@ -311,19 +309,18 @@ Given some UTF-8 text, obtain a character value with
|
|
311
309
|
<tbody>
|
312
310
|
<tr>
|
313
311
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
314
|
-
<td>a Unicode character
|
315
|
-
</td>
|
312
|
+
<td>a Unicode character</td>
|
316
313
|
</tr>
|
317
314
|
<tr>
|
318
315
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
319
|
-
<td>
|
320
|
-
</td>
|
316
|
+
<td>
|
317
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if <em class="parameter"><code>c</code></em> is an alphabetic character</td>
|
321
318
|
</tr>
|
322
319
|
</tbody>
|
323
320
|
</table></div>
|
324
321
|
</div>
|
325
322
|
<hr>
|
326
|
-
<div class="refsect2"
|
323
|
+
<div class="refsect2">
|
327
324
|
<a name="g-unichar-iscntrl"></a><h3>g_unichar_iscntrl ()</h3>
|
328
325
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_unichar_iscntrl (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
329
326
|
<p>
|
@@ -336,19 +333,18 @@ Given some UTF-8 text, obtain a character value with
|
|
336
333
|
<tbody>
|
337
334
|
<tr>
|
338
335
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
339
|
-
<td>a Unicode character
|
340
|
-
</td>
|
336
|
+
<td>a Unicode character</td>
|
341
337
|
</tr>
|
342
338
|
<tr>
|
343
339
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
344
|
-
<td>
|
345
|
-
</td>
|
340
|
+
<td>
|
341
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if <em class="parameter"><code>c</code></em> is a control character</td>
|
346
342
|
</tr>
|
347
343
|
</tbody>
|
348
344
|
</table></div>
|
349
345
|
</div>
|
350
346
|
<hr>
|
351
|
-
<div class="refsect2"
|
347
|
+
<div class="refsect2">
|
352
348
|
<a name="g-unichar-isdefined"></a><h3>g_unichar_isdefined ()</h3>
|
353
349
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_unichar_isdefined (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
354
350
|
<p>
|
@@ -360,19 +356,18 @@ standard.
|
|
360
356
|
<tbody>
|
361
357
|
<tr>
|
362
358
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
363
|
-
<td>a Unicode character
|
364
|
-
</td>
|
359
|
+
<td>a Unicode character</td>
|
365
360
|
</tr>
|
366
361
|
<tr>
|
367
362
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
368
|
-
<td>
|
369
|
-
</td>
|
363
|
+
<td>
|
364
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the character has an assigned value</td>
|
370
365
|
</tr>
|
371
366
|
</tbody>
|
372
367
|
</table></div>
|
373
368
|
</div>
|
374
369
|
<hr>
|
375
|
-
<div class="refsect2"
|
370
|
+
<div class="refsect2">
|
376
371
|
<a name="g-unichar-isdigit"></a><h3>g_unichar_isdigit ()</h3>
|
377
372
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_unichar_isdigit (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
378
373
|
<p>
|
@@ -385,19 +380,18 @@ some UTF-8 text, obtain a character value with <a class="link" href="glib-Unicod
|
|
385
380
|
<tbody>
|
386
381
|
<tr>
|
387
382
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
388
|
-
<td>a Unicode character
|
389
|
-
</td>
|
383
|
+
<td>a Unicode character</td>
|
390
384
|
</tr>
|
391
385
|
<tr>
|
392
386
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
393
|
-
<td>
|
394
|
-
</td>
|
387
|
+
<td>
|
388
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if <em class="parameter"><code>c</code></em> is a digit</td>
|
395
389
|
</tr>
|
396
390
|
</tbody>
|
397
391
|
</table></div>
|
398
392
|
</div>
|
399
393
|
<hr>
|
400
|
-
<div class="refsect2"
|
394
|
+
<div class="refsect2">
|
401
395
|
<a name="g-unichar-isgraph"></a><h3>g_unichar_isgraph ()</h3>
|
402
396
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_unichar_isgraph (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
403
397
|
<p>
|
@@ -412,19 +406,18 @@ spaces. Given some UTF-8 text, obtain a character value with
|
|
412
406
|
<tbody>
|
413
407
|
<tr>
|
414
408
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
415
|
-
<td>a Unicode character
|
416
|
-
</td>
|
409
|
+
<td>a Unicode character</td>
|
417
410
|
</tr>
|
418
411
|
<tr>
|
419
412
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
420
|
-
<td>
|
421
|
-
</td>
|
413
|
+
<td>
|
414
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if <em class="parameter"><code>c</code></em> is printable unless it's a space</td>
|
422
415
|
</tr>
|
423
416
|
</tbody>
|
424
417
|
</table></div>
|
425
418
|
</div>
|
426
419
|
<hr>
|
427
|
-
<div class="refsect2"
|
420
|
+
<div class="refsect2">
|
428
421
|
<a name="g-unichar-islower"></a><h3>g_unichar_islower ()</h3>
|
429
422
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_unichar_islower (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
430
423
|
<p>
|
@@ -437,19 +430,18 @@ Given some UTF-8 text, obtain a character value with
|
|
437
430
|
<tbody>
|
438
431
|
<tr>
|
439
432
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
440
|
-
<td>a Unicode character
|
441
|
-
</td>
|
433
|
+
<td>a Unicode character</td>
|
442
434
|
</tr>
|
443
435
|
<tr>
|
444
436
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
445
|
-
<td>
|
446
|
-
</td>
|
437
|
+
<td>
|
438
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if <em class="parameter"><code>c</code></em> is a lowercase letter</td>
|
447
439
|
</tr>
|
448
440
|
</tbody>
|
449
441
|
</table></div>
|
450
442
|
</div>
|
451
443
|
<hr>
|
452
|
-
<div class="refsect2"
|
444
|
+
<div class="refsect2">
|
453
445
|
<a name="g-unichar-ismark"></a><h3>g_unichar_ismark ()</h3>
|
454
446
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_unichar_ismark (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
455
447
|
<p>
|
@@ -469,21 +461,19 @@ scripts.
|
|
469
461
|
<tbody>
|
470
462
|
<tr>
|
471
463
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
472
|
-
<td>a Unicode character
|
473
|
-
</td>
|
464
|
+
<td>a Unicode character</td>
|
474
465
|
</tr>
|
475
466
|
<tr>
|
476
467
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
477
|
-
<td>
|
478
|
-
|
479
|
-
</td>
|
468
|
+
<td>
|
469
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if <em class="parameter"><code>c</code></em> is a mark character</td>
|
480
470
|
</tr>
|
481
471
|
</tbody>
|
482
472
|
</table></div>
|
483
473
|
<p class="since">Since 2.14</p>
|
484
474
|
</div>
|
485
475
|
<hr>
|
486
|
-
<div class="refsect2"
|
476
|
+
<div class="refsect2">
|
487
477
|
<a name="g-unichar-isprint"></a><h3>g_unichar_isprint ()</h3>
|
488
478
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_unichar_isprint (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
489
479
|
<p>
|
@@ -497,19 +487,18 @@ Given some UTF-8 text, obtain a character value with
|
|
497
487
|
<tbody>
|
498
488
|
<tr>
|
499
489
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
500
|
-
<td>a Unicode character
|
501
|
-
</td>
|
490
|
+
<td>a Unicode character</td>
|
502
491
|
</tr>
|
503
492
|
<tr>
|
504
493
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
505
|
-
<td>
|
506
|
-
</td>
|
494
|
+
<td>
|
495
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if <em class="parameter"><code>c</code></em> is printable</td>
|
507
496
|
</tr>
|
508
497
|
</tbody>
|
509
498
|
</table></div>
|
510
499
|
</div>
|
511
500
|
<hr>
|
512
|
-
<div class="refsect2"
|
501
|
+
<div class="refsect2">
|
513
502
|
<a name="g-unichar-ispunct"></a><h3>g_unichar_ispunct ()</h3>
|
514
503
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_unichar_ispunct (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
515
504
|
<p>
|
@@ -522,19 +511,18 @@ Given some UTF-8 text, obtain a character value with
|
|
522
511
|
<tbody>
|
523
512
|
<tr>
|
524
513
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
525
|
-
<td>a Unicode character
|
526
|
-
</td>
|
514
|
+
<td>a Unicode character</td>
|
527
515
|
</tr>
|
528
516
|
<tr>
|
529
517
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
530
|
-
<td>
|
531
|
-
</td>
|
518
|
+
<td>
|
519
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if <em class="parameter"><code>c</code></em> is a punctuation or symbol character</td>
|
532
520
|
</tr>
|
533
521
|
</tbody>
|
534
522
|
</table></div>
|
535
523
|
</div>
|
536
524
|
<hr>
|
537
|
-
<div class="refsect2"
|
525
|
+
<div class="refsect2">
|
538
526
|
<a name="g-unichar-isspace"></a><h3>g_unichar_isspace ()</h3>
|
539
527
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_unichar_isspace (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
540
528
|
<p>
|
@@ -552,19 +540,18 @@ is fairly complex.)
|
|
552
540
|
<tbody>
|
553
541
|
<tr>
|
554
542
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
555
|
-
<td>a Unicode character
|
556
|
-
</td>
|
543
|
+
<td>a Unicode character</td>
|
557
544
|
</tr>
|
558
545
|
<tr>
|
559
546
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
560
|
-
<td>
|
561
|
-
</td>
|
547
|
+
<td>
|
548
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if <em class="parameter"><code>c</code></em> is a space character</td>
|
562
549
|
</tr>
|
563
550
|
</tbody>
|
564
551
|
</table></div>
|
565
552
|
</div>
|
566
553
|
<hr>
|
567
|
-
<div class="refsect2"
|
554
|
+
<div class="refsect2">
|
568
555
|
<a name="g-unichar-istitle"></a><h3>g_unichar_istitle ()</h3>
|
569
556
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_unichar_istitle (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
570
557
|
<p>
|
@@ -580,19 +567,18 @@ digraph is U+01F2 LATIN CAPITAL LETTTER D WITH SMALL LETTER Z.
|
|
580
567
|
<tbody>
|
581
568
|
<tr>
|
582
569
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
583
|
-
<td>a Unicode character
|
584
|
-
</td>
|
570
|
+
<td>a Unicode character</td>
|
585
571
|
</tr>
|
586
572
|
<tr>
|
587
573
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
588
|
-
<td>
|
589
|
-
</td>
|
574
|
+
<td>
|
575
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the character is titlecase</td>
|
590
576
|
</tr>
|
591
577
|
</tbody>
|
592
578
|
</table></div>
|
593
579
|
</div>
|
594
580
|
<hr>
|
595
|
-
<div class="refsect2"
|
581
|
+
<div class="refsect2">
|
596
582
|
<a name="g-unichar-isupper"></a><h3>g_unichar_isupper ()</h3>
|
597
583
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_unichar_isupper (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
598
584
|
<p>
|
@@ -603,19 +589,18 @@ Determines if a character is uppercase.
|
|
603
589
|
<tbody>
|
604
590
|
<tr>
|
605
591
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
606
|
-
<td>a Unicode character
|
607
|
-
</td>
|
592
|
+
<td>a Unicode character</td>
|
608
593
|
</tr>
|
609
594
|
<tr>
|
610
595
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
611
|
-
<td>
|
612
|
-
</td>
|
596
|
+
<td>
|
597
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if <em class="parameter"><code>c</code></em> is an uppercase character</td>
|
613
598
|
</tr>
|
614
599
|
</tbody>
|
615
600
|
</table></div>
|
616
601
|
</div>
|
617
602
|
<hr>
|
618
|
-
<div class="refsect2"
|
603
|
+
<div class="refsect2">
|
619
604
|
<a name="g-unichar-isxdigit"></a><h3>g_unichar_isxdigit ()</h3>
|
620
605
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_unichar_isxdigit (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
621
606
|
<p>
|
@@ -626,19 +611,18 @@ Determines if a character is a hexidecimal digit.
|
|
626
611
|
<tbody>
|
627
612
|
<tr>
|
628
613
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
629
|
-
<td>a Unicode character
|
630
|
-
</td>
|
614
|
+
<td>a Unicode character.</td>
|
631
615
|
</tr>
|
632
616
|
<tr>
|
633
617
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
634
|
-
<td>
|
635
|
-
</td>
|
618
|
+
<td>
|
619
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the character is a hexadecimal digit</td>
|
636
620
|
</tr>
|
637
621
|
</tbody>
|
638
622
|
</table></div>
|
639
623
|
</div>
|
640
624
|
<hr>
|
641
|
-
<div class="refsect2"
|
625
|
+
<div class="refsect2">
|
642
626
|
<a name="g-unichar-iswide"></a><h3>g_unichar_iswide ()</h3>
|
643
627
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_unichar_iswide (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
644
628
|
<p>
|
@@ -650,19 +634,18 @@ cell.
|
|
650
634
|
<tbody>
|
651
635
|
<tr>
|
652
636
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
653
|
-
<td>a Unicode character
|
654
|
-
</td>
|
637
|
+
<td>a Unicode character</td>
|
655
638
|
</tr>
|
656
639
|
<tr>
|
657
640
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
658
|
-
<td>
|
659
|
-
</td>
|
641
|
+
<td>
|
642
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the character is wide</td>
|
660
643
|
</tr>
|
661
644
|
</tbody>
|
662
645
|
</table></div>
|
663
646
|
</div>
|
664
647
|
<hr>
|
665
|
-
<div class="refsect2"
|
648
|
+
<div class="refsect2">
|
666
649
|
<a name="g-unichar-iswide-cjk"></a><h3>g_unichar_iswide_cjk ()</h3>
|
667
650
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_unichar_iswide_cjk (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
668
651
|
<p>
|
@@ -683,21 +666,19 @@ pas both this test and <a class="link" href="glib-Unicode-Manipulation.html#g-un
|
|
683
666
|
<tbody>
|
684
667
|
<tr>
|
685
668
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
686
|
-
<td>a Unicode character
|
687
|
-
</td>
|
669
|
+
<td>a Unicode character</td>
|
688
670
|
</tr>
|
689
671
|
<tr>
|
690
672
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
691
|
-
<td>
|
692
|
-
|
693
|
-
</td>
|
673
|
+
<td>
|
674
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the character is wide in legacy East Asian locales</td>
|
694
675
|
</tr>
|
695
676
|
</tbody>
|
696
677
|
</table></div>
|
697
678
|
<p class="since">Since 2.12</p>
|
698
679
|
</div>
|
699
680
|
<hr>
|
700
|
-
<div class="refsect2"
|
681
|
+
<div class="refsect2">
|
701
682
|
<a name="g-unichar-iszerowidth"></a><h3>g_unichar_iszerowidth ()</h3>
|
702
683
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_unichar_iszerowidth (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
703
684
|
<p>
|
@@ -717,21 +698,19 @@ terminals support zero-width rendering of zero-width marks.
|
|
717
698
|
<tbody>
|
718
699
|
<tr>
|
719
700
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
720
|
-
<td>a Unicode character
|
721
|
-
</td>
|
701
|
+
<td>a Unicode character</td>
|
722
702
|
</tr>
|
723
703
|
<tr>
|
724
704
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
725
|
-
<td>
|
726
|
-
|
727
|
-
</td>
|
705
|
+
<td>
|
706
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the character has zero width</td>
|
728
707
|
</tr>
|
729
708
|
</tbody>
|
730
709
|
</table></div>
|
731
710
|
<p class="since">Since 2.14</p>
|
732
711
|
</div>
|
733
712
|
<hr>
|
734
|
-
<div class="refsect2"
|
713
|
+
<div class="refsect2">
|
735
714
|
<a name="g-unichar-toupper"></a><h3>g_unichar_toupper ()</h3>
|
736
715
|
<pre class="programlisting"><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="returnvalue">gunichar</span></a> g_unichar_toupper (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
737
716
|
<p>
|
@@ -742,21 +721,19 @@ Converts a character to uppercase.
|
|
742
721
|
<tbody>
|
743
722
|
<tr>
|
744
723
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
745
|
-
<td>a Unicode character
|
746
|
-
</td>
|
724
|
+
<td>a Unicode character</td>
|
747
725
|
</tr>
|
748
726
|
<tr>
|
749
727
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
750
|
-
<td>
|
751
|
-
|
752
|
-
|
753
|
-
</td>
|
728
|
+
<td>the result of converting <em class="parameter"><code>c</code></em> to uppercase.
|
729
|
+
If <em class="parameter"><code>c</code></em> is not an lowercase or titlecase character,
|
730
|
+
or has no upper case equivalent <em class="parameter"><code>c</code></em> is returned unchanged.</td>
|
754
731
|
</tr>
|
755
732
|
</tbody>
|
756
733
|
</table></div>
|
757
734
|
</div>
|
758
735
|
<hr>
|
759
|
-
<div class="refsect2"
|
736
|
+
<div class="refsect2">
|
760
737
|
<a name="g-unichar-tolower"></a><h3>g_unichar_tolower ()</h3>
|
761
738
|
<pre class="programlisting"><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="returnvalue">gunichar</span></a> g_unichar_tolower (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
762
739
|
<p>
|
@@ -767,21 +744,19 @@ Converts a character to lower case.
|
|
767
744
|
<tbody>
|
768
745
|
<tr>
|
769
746
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
770
|
-
<td>a Unicode character
|
771
|
-
</td>
|
747
|
+
<td>a Unicode character.</td>
|
772
748
|
</tr>
|
773
749
|
<tr>
|
774
750
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
775
|
-
<td>
|
776
|
-
|
777
|
-
|
778
|
-
</td>
|
751
|
+
<td>the result of converting <em class="parameter"><code>c</code></em> to lower case.
|
752
|
+
If <em class="parameter"><code>c</code></em> is not an upperlower or titlecase character,
|
753
|
+
or has no lowercase equivalent <em class="parameter"><code>c</code></em> is returned unchanged.</td>
|
779
754
|
</tr>
|
780
755
|
</tbody>
|
781
756
|
</table></div>
|
782
757
|
</div>
|
783
758
|
<hr>
|
784
|
-
<div class="refsect2"
|
759
|
+
<div class="refsect2">
|
785
760
|
<a name="g-unichar-totitle"></a><h3>g_unichar_totitle ()</h3>
|
786
761
|
<pre class="programlisting"><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="returnvalue">gunichar</span></a> g_unichar_totitle (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
787
762
|
<p>
|
@@ -792,21 +767,19 @@ Converts a character to the titlecase.
|
|
792
767
|
<tbody>
|
793
768
|
<tr>
|
794
769
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
795
|
-
<td>a Unicode character
|
796
|
-
</td>
|
770
|
+
<td>a Unicode character</td>
|
797
771
|
</tr>
|
798
772
|
<tr>
|
799
773
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
800
|
-
<td>
|
801
|
-
|
802
|
-
|
803
|
-
</td>
|
774
|
+
<td>the result of converting <em class="parameter"><code>c</code></em> to titlecase.
|
775
|
+
If <em class="parameter"><code>c</code></em> is not an uppercase or lowercase character,
|
776
|
+
<em class="parameter"><code>c</code></em> is returned unchanged.</td>
|
804
777
|
</tr>
|
805
778
|
</tbody>
|
806
779
|
</table></div>
|
807
780
|
</div>
|
808
781
|
<hr>
|
809
|
-
<div class="refsect2"
|
782
|
+
<div class="refsect2">
|
810
783
|
<a name="g-unichar-digit-value"></a><h3>g_unichar_digit_value ()</h3>
|
811
784
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_unichar_digit_value (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
812
785
|
<p>
|
@@ -818,20 +791,18 @@ digit.
|
|
818
791
|
<tbody>
|
819
792
|
<tr>
|
820
793
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
821
|
-
<td>a Unicode character
|
822
|
-
</td>
|
794
|
+
<td>a Unicode character</td>
|
823
795
|
</tr>
|
824
796
|
<tr>
|
825
797
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
826
|
-
<td>
|
827
|
-
<a class="link" href="glib-Unicode-Manipulation.html#g-unichar-isdigit" title="g_unichar_isdigit ()"><code class="function">g_unichar_isdigit()</code></a>), its numeric value. Otherwise, -1
|
828
|
-
</td>
|
798
|
+
<td>If <em class="parameter"><code>c</code></em> is a decimal digit (according to
|
799
|
+
<a class="link" href="glib-Unicode-Manipulation.html#g-unichar-isdigit" title="g_unichar_isdigit ()"><code class="function">g_unichar_isdigit()</code></a>), its numeric value. Otherwise, -1.</td>
|
829
800
|
</tr>
|
830
801
|
</tbody>
|
831
802
|
</table></div>
|
832
803
|
</div>
|
833
804
|
<hr>
|
834
|
-
<div class="refsect2"
|
805
|
+
<div class="refsect2">
|
835
806
|
<a name="g-unichar-xdigit-value"></a><h3>g_unichar_xdigit_value ()</h3>
|
836
807
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_unichar_xdigit_value (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
837
808
|
<p>
|
@@ -843,20 +814,18 @@ digit.
|
|
843
814
|
<tbody>
|
844
815
|
<tr>
|
845
816
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
846
|
-
<td>a Unicode character
|
847
|
-
</td>
|
817
|
+
<td>a Unicode character</td>
|
848
818
|
</tr>
|
849
819
|
<tr>
|
850
820
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
851
|
-
<td>
|
852
|
-
<a class="link" href="glib-Unicode-Manipulation.html#g-unichar-isxdigit" title="g_unichar_isxdigit ()"><code class="function">g_unichar_isxdigit()</code></a>), its numeric value. Otherwise, -1
|
853
|
-
</td>
|
821
|
+
<td>If <em class="parameter"><code>c</code></em> is a hex digit (according to
|
822
|
+
<a class="link" href="glib-Unicode-Manipulation.html#g-unichar-isxdigit" title="g_unichar_isxdigit ()"><code class="function">g_unichar_isxdigit()</code></a>), its numeric value. Otherwise, -1.</td>
|
854
823
|
</tr>
|
855
824
|
</tbody>
|
856
825
|
</table></div>
|
857
826
|
</div>
|
858
827
|
<hr>
|
859
|
-
<div class="refsect2"
|
828
|
+
<div class="refsect2">
|
860
829
|
<a name="GUnicodeType"></a><h3>enum GUnicodeType</h3>
|
861
830
|
<pre class="programlisting">typedef enum
|
862
831
|
{
|
@@ -1054,7 +1023,7 @@ See <a class="ulink" href="http://www.unicode.org/Public/UNIDATA/UnicodeData.htm
|
|
1054
1023
|
</table></div>
|
1055
1024
|
</div>
|
1056
1025
|
<hr>
|
1057
|
-
<div class="refsect2"
|
1026
|
+
<div class="refsect2">
|
1058
1027
|
<a name="g-unichar-type"></a><h3>g_unichar_type ()</h3>
|
1059
1028
|
<pre class="programlisting"><a class="link" href="glib-Unicode-Manipulation.html#GUnicodeType" title="enum GUnicodeType"><span class="returnvalue">GUnicodeType</span></a> g_unichar_type (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
1060
1029
|
<p>
|
@@ -1065,19 +1034,17 @@ Classifies a Unicode character by type.
|
|
1065
1034
|
<tbody>
|
1066
1035
|
<tr>
|
1067
1036
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
1068
|
-
<td>a Unicode character
|
1069
|
-
</td>
|
1037
|
+
<td>a Unicode character</td>
|
1070
1038
|
</tr>
|
1071
1039
|
<tr>
|
1072
1040
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1073
|
-
<td>
|
1074
|
-
</td>
|
1041
|
+
<td>the type of the character.</td>
|
1075
1042
|
</tr>
|
1076
1043
|
</tbody>
|
1077
1044
|
</table></div>
|
1078
1045
|
</div>
|
1079
1046
|
<hr>
|
1080
|
-
<div class="refsect2"
|
1047
|
+
<div class="refsect2">
|
1081
1048
|
<a name="GUnicodeBreakType"></a><h3>enum GUnicodeBreakType</h3>
|
1082
1049
|
<pre class="programlisting">typedef enum
|
1083
1050
|
{
|
@@ -1116,7 +1083,8 @@ Classifies a Unicode character by type.
|
|
1116
1083
|
G_UNICODE_BREAK_HANGUL_V_JAMO,
|
1117
1084
|
G_UNICODE_BREAK_HANGUL_T_JAMO,
|
1118
1085
|
G_UNICODE_BREAK_HANGUL_LV_SYLLABLE,
|
1119
|
-
G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE
|
1086
|
+
G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE,
|
1087
|
+
G_UNICODE_BREAK_CLOSE_PARANTHESIS
|
1120
1088
|
} GUnicodeBreakType;
|
1121
1089
|
</pre>
|
1122
1090
|
<p>
|
@@ -1310,11 +1278,16 @@ See <a class="ulink" href="http://www.unicode.org/unicode/reports/tr14/" target=
|
|
1310
1278
|
<td>Hangul LVT Syllable (H3)
|
1311
1279
|
</td>
|
1312
1280
|
</tr>
|
1281
|
+
<tr>
|
1282
|
+
<td><p><a name="G-UNICODE-BREAK-CLOSE-PARANTHESIS:CAPS"></a><span class="term"><code class="literal">G_UNICODE_BREAK_CLOSE_PARANTHESIS</code></span></p></td>
|
1283
|
+
<td>Closing Parenthesis (CP). Since 2.28
|
1284
|
+
</td>
|
1285
|
+
</tr>
|
1313
1286
|
</tbody>
|
1314
1287
|
</table></div>
|
1315
1288
|
</div>
|
1316
1289
|
<hr>
|
1317
|
-
<div class="refsect2"
|
1290
|
+
<div class="refsect2">
|
1318
1291
|
<a name="g-unichar-break-type"></a><h3>g_unichar_break_type ()</h3>
|
1319
1292
|
<pre class="programlisting"><a class="link" href="glib-Unicode-Manipulation.html#GUnicodeBreakType" title="enum GUnicodeBreakType"><span class="returnvalue">GUnicodeBreakType</span></a> g_unichar_break_type (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
1320
1293
|
<p>
|
@@ -1330,19 +1303,18 @@ as <a href="/usr/share/gtk-doc/html/pango/pango-Text-Processing.html#pango-break
|
|
1330
1303
|
<tbody>
|
1331
1304
|
<tr>
|
1332
1305
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
1333
|
-
<td>a Unicode character
|
1334
|
-
</td>
|
1306
|
+
<td>a Unicode character</td>
|
1335
1307
|
</tr>
|
1336
1308
|
<tr>
|
1337
1309
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1338
|
-
<td>
|
1310
|
+
<td>the break type of <em class="parameter"><code>c</code></em>
|
1339
1311
|
</td>
|
1340
1312
|
</tr>
|
1341
1313
|
</tbody>
|
1342
1314
|
</table></div>
|
1343
1315
|
</div>
|
1344
1316
|
<hr>
|
1345
|
-
<div class="refsect2"
|
1317
|
+
<div class="refsect2">
|
1346
1318
|
<a name="g-unichar-combining-class"></a><h3>g_unichar_combining_class ()</h3>
|
1347
1319
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_unichar_combining_class (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> uc</code></em>);</pre>
|
1348
1320
|
<p>
|
@@ -1353,21 +1325,18 @@ Determines the canonical combining class of a Unicode character.
|
|
1353
1325
|
<tbody>
|
1354
1326
|
<tr>
|
1355
1327
|
<td><p><span class="term"><em class="parameter"><code>uc</code></em> :</span></p></td>
|
1356
|
-
<td>a Unicode character
|
1357
|
-
</td>
|
1328
|
+
<td>a Unicode character</td>
|
1358
1329
|
</tr>
|
1359
1330
|
<tr>
|
1360
1331
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1361
|
-
<td>
|
1362
|
-
|
1363
|
-
</td>
|
1332
|
+
<td>the combining class of the character</td>
|
1364
1333
|
</tr>
|
1365
1334
|
</tbody>
|
1366
1335
|
</table></div>
|
1367
1336
|
<p class="since">Since 2.14</p>
|
1368
1337
|
</div>
|
1369
1338
|
<hr>
|
1370
|
-
<div class="refsect2"
|
1339
|
+
<div class="refsect2">
|
1371
1340
|
<a name="g-unicode-canonical-ordering"></a><h3>g_unicode_canonical_ordering ()</h3>
|
1372
1341
|
<pre class="programlisting"><span class="returnvalue">void</span> g_unicode_canonical_ordering (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> *string</code></em>,
|
1373
1342
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> len</code></em>);</pre>
|
@@ -1382,19 +1351,17 @@ manual for more information.
|
|
1382
1351
|
<tbody>
|
1383
1352
|
<tr>
|
1384
1353
|
<td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td>
|
1385
|
-
<td>a UCS-4 encoded string
|
1386
|
-
</td>
|
1354
|
+
<td>a UCS-4 encoded string.</td>
|
1387
1355
|
</tr>
|
1388
1356
|
<tr>
|
1389
1357
|
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
1390
|
-
<td>the maximum length of <em class="parameter"><code>string</code></em> to use
|
1391
|
-
</td>
|
1358
|
+
<td>the maximum length of <em class="parameter"><code>string</code></em> to use.</td>
|
1392
1359
|
</tr>
|
1393
1360
|
</tbody>
|
1394
1361
|
</table></div>
|
1395
1362
|
</div>
|
1396
1363
|
<hr>
|
1397
|
-
<div class="refsect2"
|
1364
|
+
<div class="refsect2">
|
1398
1365
|
<a name="g-unicode-canonical-decomposition"></a><h3>g_unicode_canonical_decomposition ()</h3>
|
1399
1366
|
<pre class="programlisting"><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="returnvalue">gunichar</span></a> * g_unicode_canonical_decomposition (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> ch</code></em>,
|
1400
1367
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *result_len</code></em>);</pre>
|
@@ -1406,25 +1373,22 @@ Computes the canonical decomposition of a Unicode character.
|
|
1406
1373
|
<tbody>
|
1407
1374
|
<tr>
|
1408
1375
|
<td><p><span class="term"><em class="parameter"><code>ch</code></em> :</span></p></td>
|
1409
|
-
<td>a Unicode character
|
1410
|
-
</td>
|
1376
|
+
<td>a Unicode character.</td>
|
1411
1377
|
</tr>
|
1412
1378
|
<tr>
|
1413
1379
|
<td><p><span class="term"><em class="parameter"><code>result_len</code></em> :</span></p></td>
|
1414
|
-
<td>location to store the length of the return value
|
1415
|
-
</td>
|
1380
|
+
<td>location to store the length of the return value.</td>
|
1416
1381
|
</tr>
|
1417
1382
|
<tr>
|
1418
1383
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1419
|
-
<td>
|
1420
|
-
|
1421
|
-
</td>
|
1384
|
+
<td>a newly allocated string of Unicode characters.
|
1385
|
+
<em class="parameter"><code>result_len</code></em> is set to the resulting length of the string.</td>
|
1422
1386
|
</tr>
|
1423
1387
|
</tbody>
|
1424
1388
|
</table></div>
|
1425
1389
|
</div>
|
1426
1390
|
<hr>
|
1427
|
-
<div class="refsect2"
|
1391
|
+
<div class="refsect2">
|
1428
1392
|
<a name="g-unichar-get-mirror-char"></a><h3>g_unichar_get_mirror_char ()</h3>
|
1429
1393
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_unichar_get_mirror_char (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> ch</code></em>,
|
1430
1394
|
<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> *mirrored_ch</code></em>);</pre>
|
@@ -1445,26 +1409,23 @@ pointed to by <em class="parameter"><code>mirrored_ch</code></em>. Otherwise th
|
|
1445
1409
|
<tbody>
|
1446
1410
|
<tr>
|
1447
1411
|
<td><p><span class="term"><em class="parameter"><code>ch</code></em> :</span></p></td>
|
1448
|
-
<td>a Unicode character
|
1449
|
-
</td>
|
1412
|
+
<td>a Unicode character</td>
|
1450
1413
|
</tr>
|
1451
1414
|
<tr>
|
1452
1415
|
<td><p><span class="term"><em class="parameter"><code>mirrored_ch</code></em> :</span></p></td>
|
1453
|
-
<td>location to store the mirrored character
|
1454
|
-
</td>
|
1416
|
+
<td>location to store the mirrored character</td>
|
1455
1417
|
</tr>
|
1456
1418
|
<tr>
|
1457
1419
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1458
|
-
<td>
|
1459
|
-
|
1460
|
-
</td>
|
1420
|
+
<td>
|
1421
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if <em class="parameter"><code>ch</code></em> has a mirrored character, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> otherwise</td>
|
1461
1422
|
</tr>
|
1462
1423
|
</tbody>
|
1463
1424
|
</table></div>
|
1464
1425
|
<p class="since">Since 2.4</p>
|
1465
1426
|
</div>
|
1466
1427
|
<hr>
|
1467
|
-
<div class="refsect2"
|
1428
|
+
<div class="refsect2">
|
1468
1429
|
<a name="GUnicodeScript"></a><h3>enum GUnicodeScript</h3>
|
1469
1430
|
<pre class="programlisting">typedef enum
|
1470
1431
|
{ /* ISO 15924 code */
|
@@ -1525,7 +1486,7 @@ pointed to by <em class="parameter"><code>mirrored_ch</code></em>. Otherwise th
|
|
1525
1486
|
G_UNICODE_SCRIPT_LINEAR_B, /* Linb */
|
1526
1487
|
G_UNICODE_SCRIPT_TAI_LE, /* Tale */
|
1527
1488
|
G_UNICODE_SCRIPT_UGARITIC, /* Ugar */
|
1528
|
-
|
1489
|
+
|
1529
1490
|
/* Unicode-4.1 additions */
|
1530
1491
|
G_UNICODE_SCRIPT_NEW_TAI_LUE, /* Talu */
|
1531
1492
|
G_UNICODE_SCRIPT_BUGINESE, /* Bugi */
|
@@ -1557,21 +1518,26 @@ pointed to by <em class="parameter"><code>mirrored_ch</code></em>. Otherwise th
|
|
1557
1518
|
G_UNICODE_SCRIPT_LYDIAN, /* Lydi */
|
1558
1519
|
|
1559
1520
|
/* Unicode-5.2 additions */
|
1560
|
-
G_UNICODE_SCRIPT_AVESTAN, /*
|
1561
|
-
G_UNICODE_SCRIPT_BAMUM, /*
|
1562
|
-
G_UNICODE_SCRIPT_EGYPTIAN_HIEROGLYPHS, /*
|
1563
|
-
G_UNICODE_SCRIPT_IMPERIAL_ARAMAIC, /*
|
1564
|
-
G_UNICODE_SCRIPT_INSCRIPTIONAL_PAHLAVI, /*
|
1565
|
-
G_UNICODE_SCRIPT_INSCRIPTIONAL_PARTHIAN, /*
|
1566
|
-
G_UNICODE_SCRIPT_JAVANESE, /*
|
1567
|
-
G_UNICODE_SCRIPT_KAITHI, /*
|
1521
|
+
G_UNICODE_SCRIPT_AVESTAN, /* Avst */
|
1522
|
+
G_UNICODE_SCRIPT_BAMUM, /* Bamu */
|
1523
|
+
G_UNICODE_SCRIPT_EGYPTIAN_HIEROGLYPHS, /* Egyp */
|
1524
|
+
G_UNICODE_SCRIPT_IMPERIAL_ARAMAIC, /* Armi */
|
1525
|
+
G_UNICODE_SCRIPT_INSCRIPTIONAL_PAHLAVI, /* Phli */
|
1526
|
+
G_UNICODE_SCRIPT_INSCRIPTIONAL_PARTHIAN, /* Prti */
|
1527
|
+
G_UNICODE_SCRIPT_JAVANESE, /* Java */
|
1528
|
+
G_UNICODE_SCRIPT_KAITHI, /* Kthi */
|
1568
1529
|
G_UNICODE_SCRIPT_LISU, /* Lisu */
|
1569
|
-
G_UNICODE_SCRIPT_MEETEI_MAYEK, /*
|
1570
|
-
G_UNICODE_SCRIPT_OLD_SOUTH_ARABIAN, /*
|
1571
|
-
|
1572
|
-
G_UNICODE_SCRIPT_SAMARITAN, /*
|
1573
|
-
G_UNICODE_SCRIPT_TAI_THAM, /*
|
1574
|
-
G_UNICODE_SCRIPT_TAI_VIET
|
1530
|
+
G_UNICODE_SCRIPT_MEETEI_MAYEK, /* Mtei */
|
1531
|
+
G_UNICODE_SCRIPT_OLD_SOUTH_ARABIAN, /* Sarb */
|
1532
|
+
G_UNICODE_SCRIPT_OLD_TURKIC, /* Orkh */
|
1533
|
+
G_UNICODE_SCRIPT_SAMARITAN, /* Samr */
|
1534
|
+
G_UNICODE_SCRIPT_TAI_THAM, /* Lana */
|
1535
|
+
G_UNICODE_SCRIPT_TAI_VIET, /* Tavt */
|
1536
|
+
|
1537
|
+
/* Unicode-6.0 additions */
|
1538
|
+
G_UNICODE_SCRIPT_BATAK, /* Batk */
|
1539
|
+
G_UNICODE_SCRIPT_BRAHMI, /* Brah */
|
1540
|
+
G_UNICODE_SCRIPT_MANDAIC /* Mand */
|
1575
1541
|
} GUnicodeScript;
|
1576
1542
|
</pre>
|
1577
1543
|
<p>
|
@@ -2040,8 +2006,8 @@ See <a class="ulink" href="http://www.unicode.org/reports/tr24/" target="_top">U
|
|
2040
2006
|
</td>
|
2041
2007
|
</tr>
|
2042
2008
|
<tr>
|
2043
|
-
<td><p><a name="G-UNICODE-SCRIPT-OLD-
|
2044
|
-
<td>
|
2009
|
+
<td><p><a name="G-UNICODE-SCRIPT-OLD-TURKIC:CAPS"></a><span class="term"><code class="literal">G_UNICODE_SCRIPT_OLD_TURKIC</code></span></p></td>
|
2010
|
+
<td> Old Turkic. Since 2.28
|
2045
2011
|
</td>
|
2046
2012
|
</tr>
|
2047
2013
|
<tr>
|
@@ -2059,11 +2025,26 @@ See <a class="ulink" href="http://www.unicode.org/reports/tr24/" target="_top">U
|
|
2059
2025
|
<td> Tai Viet. Since 2.26
|
2060
2026
|
</td>
|
2061
2027
|
</tr>
|
2028
|
+
<tr>
|
2029
|
+
<td><p><a name="G-UNICODE-SCRIPT-BATAK:CAPS"></a><span class="term"><code class="literal">G_UNICODE_SCRIPT_BATAK</code></span></p></td>
|
2030
|
+
<td> Batak. Since 2.28
|
2031
|
+
</td>
|
2032
|
+
</tr>
|
2033
|
+
<tr>
|
2034
|
+
<td><p><a name="G-UNICODE-SCRIPT-BRAHMI:CAPS"></a><span class="term"><code class="literal">G_UNICODE_SCRIPT_BRAHMI</code></span></p></td>
|
2035
|
+
<td> Brahmi. Since 2.28
|
2036
|
+
</td>
|
2037
|
+
</tr>
|
2038
|
+
<tr>
|
2039
|
+
<td><p><a name="G-UNICODE-SCRIPT-MANDAIC:CAPS"></a><span class="term"><code class="literal">G_UNICODE_SCRIPT_MANDAIC</code></span></p></td>
|
2040
|
+
<td> Mandaic. Since 2.28
|
2041
|
+
</td>
|
2042
|
+
</tr>
|
2062
2043
|
</tbody>
|
2063
2044
|
</table></div>
|
2064
2045
|
</div>
|
2065
2046
|
<hr>
|
2066
|
-
<div class="refsect2"
|
2047
|
+
<div class="refsect2">
|
2067
2048
|
<a name="g-unichar-get-script"></a><h3>g_unichar_get_script ()</h3>
|
2068
2049
|
<pre class="programlisting"><a class="link" href="glib-Unicode-Manipulation.html#GUnicodeScript" title="enum GUnicodeScript"><span class="returnvalue">GUnicodeScript</span></a> g_unichar_get_script (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> ch</code></em>);</pre>
|
2069
2050
|
<p>
|
@@ -2081,21 +2062,18 @@ two are interchangeable.
|
|
2081
2062
|
<tbody>
|
2082
2063
|
<tr>
|
2083
2064
|
<td><p><span class="term"><em class="parameter"><code>ch</code></em> :</span></p></td>
|
2084
|
-
<td>a Unicode character
|
2085
|
-
</td>
|
2065
|
+
<td>a Unicode character</td>
|
2086
2066
|
</tr>
|
2087
2067
|
<tr>
|
2088
2068
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2089
|
-
<td>
|
2090
|
-
|
2091
|
-
</td>
|
2069
|
+
<td>the <a class="link" href="glib-Unicode-Manipulation.html#GUnicodeScript" title="enum GUnicodeScript"><span class="type">GUnicodeScript</span></a> for the character.</td>
|
2092
2070
|
</tr>
|
2093
2071
|
</tbody>
|
2094
2072
|
</table></div>
|
2095
2073
|
<p class="since">Since 2.14</p>
|
2096
2074
|
</div>
|
2097
2075
|
<hr>
|
2098
|
-
<div class="refsect2"
|
2076
|
+
<div class="refsect2">
|
2099
2077
|
<a name="g-utf8-next-char"></a><h3>g_utf8_next_char()</h3>
|
2100
2078
|
<pre class="programlisting">#define g_utf8_next_char(p)</pre>
|
2101
2079
|
<p>
|
@@ -2110,13 +2088,12 @@ that may contain invalid UTF-8.
|
|
2110
2088
|
<col align="left" valign="top">
|
2111
2089
|
<tbody><tr>
|
2112
2090
|
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
|
2113
|
-
<td>Pointer to the start of a valid UTF-8 character
|
2114
|
-
</td>
|
2091
|
+
<td>Pointer to the start of a valid UTF-8 character.</td>
|
2115
2092
|
</tr></tbody>
|
2116
2093
|
</table></div>
|
2117
2094
|
</div>
|
2118
2095
|
<hr>
|
2119
|
-
<div class="refsect2"
|
2096
|
+
<div class="refsect2">
|
2120
2097
|
<a name="g-utf8-get-char"></a><h3>g_utf8_get_char ()</h3>
|
2121
2098
|
<pre class="programlisting"><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="returnvalue">gunichar</span></a> g_utf8_get_char (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *p</code></em>);</pre>
|
2122
2099
|
<p>
|
@@ -2131,19 +2108,17 @@ instead.
|
|
2131
2108
|
<tbody>
|
2132
2109
|
<tr>
|
2133
2110
|
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
|
2134
|
-
<td>a pointer to Unicode character encoded as UTF-8
|
2135
|
-
</td>
|
2111
|
+
<td>a pointer to Unicode character encoded as UTF-8</td>
|
2136
2112
|
</tr>
|
2137
2113
|
<tr>
|
2138
2114
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2139
|
-
<td>
|
2140
|
-
</td>
|
2115
|
+
<td>the resulting character</td>
|
2141
2116
|
</tr>
|
2142
2117
|
</tbody>
|
2143
2118
|
</table></div>
|
2144
2119
|
</div>
|
2145
2120
|
<hr>
|
2146
|
-
<div class="refsect2"
|
2121
|
+
<div class="refsect2">
|
2147
2122
|
<a name="g-utf8-get-char-validated"></a><h3>g_utf8_get_char_validated ()</h3>
|
2148
2123
|
<pre class="programlisting"><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="returnvalue">gunichar</span></a> g_utf8_get_char_validated (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *p</code></em>,
|
2149
2124
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> max_len</code></em>);</pre>
|
@@ -2158,31 +2133,28 @@ overlong encodings of valid characters.
|
|
2158
2133
|
<tbody>
|
2159
2134
|
<tr>
|
2160
2135
|
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
|
2161
|
-
<td>a pointer to Unicode character encoded as UTF-8
|
2162
|
-
</td>
|
2136
|
+
<td>a pointer to Unicode character encoded as UTF-8</td>
|
2163
2137
|
</tr>
|
2164
2138
|
<tr>
|
2165
2139
|
<td><p><span class="term"><em class="parameter"><code>max_len</code></em> :</span></p></td>
|
2166
2140
|
<td>the maximum number of bytes to read, or -1, for no maximum or
|
2167
|
-
|
2168
|
-
</td>
|
2141
|
+
if <em class="parameter"><code>p</code></em> is nul-terminated</td>
|
2169
2142
|
</tr>
|
2170
2143
|
<tr>
|
2171
2144
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2172
|
-
<td>
|
2173
|
-
|
2174
|
-
|
2175
|
-
|
2176
|
-
|
2177
|
-
</td>
|
2145
|
+
<td>the resulting character. If <em class="parameter"><code>p</code></em> points to a partial
|
2146
|
+
sequence at the end of a string that could begin a valid
|
2147
|
+
character (or if <em class="parameter"><code>max_len</code></em> is zero), returns (gunichar)-2;
|
2148
|
+
otherwise, if <em class="parameter"><code>p</code></em> does not point to a valid UTF-8 encoded
|
2149
|
+
Unicode character, returns (gunichar)-1.</td>
|
2178
2150
|
</tr>
|
2179
2151
|
</tbody>
|
2180
2152
|
</table></div>
|
2181
2153
|
</div>
|
2182
2154
|
<hr>
|
2183
|
-
<div class="refsect2"
|
2155
|
+
<div class="refsect2">
|
2184
2156
|
<a name="g-utf8-offset-to-pointer"></a><h3>g_utf8_offset_to_pointer ()</h3>
|
2185
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
2157
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_utf8_offset_to_pointer (<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>,
|
2186
2158
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> offset</code></em>);</pre>
|
2187
2159
|
<p>
|
2188
2160
|
Converts from an integer character offset to a pointer to a position
|
@@ -2196,7 +2168,7 @@ since moving forward is about 3 times faster than moving backward.
|
|
2196
2168
|
</p>
|
2197
2169
|
<p>
|
2198
2170
|
</p>
|
2199
|
-
<div class="note"
|
2171
|
+
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
|
2200
2172
|
<h3 class="title">Note</h3>
|
2201
2173
|
<p>
|
2202
2174
|
This function doesn't abort when reaching the end of <em class="parameter"><code>str</code></em>. Therefore
|
@@ -2215,8 +2187,7 @@ text rendering and therefore has to be as fast as possible.
|
|
2215
2187
|
<tbody>
|
2216
2188
|
<tr>
|
2217
2189
|
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
2218
|
-
<td>a UTF-8 encoded string
|
2219
|
-
</td>
|
2190
|
+
<td>a UTF-8 encoded string</td>
|
2220
2191
|
</tr>
|
2221
2192
|
<tr>
|
2222
2193
|
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
|
@@ -2225,14 +2196,13 @@ text rendering and therefore has to be as fast as possible.
|
|
2225
2196
|
</tr>
|
2226
2197
|
<tr>
|
2227
2198
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2228
|
-
<td>
|
2229
|
-
</td>
|
2199
|
+
<td>the resulting pointer</td>
|
2230
2200
|
</tr>
|
2231
2201
|
</tbody>
|
2232
2202
|
</table></div>
|
2233
2203
|
</div>
|
2234
2204
|
<hr>
|
2235
|
-
<div class="refsect2"
|
2205
|
+
<div class="refsect2">
|
2236
2206
|
<a name="g-utf8-pointer-to-offset"></a><h3>g_utf8_pointer_to_offset ()</h3>
|
2237
2207
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="returnvalue">glong</span></a> g_utf8_pointer_to_offset (<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>,
|
2238
2208
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *pos</code></em>);</pre>
|
@@ -2249,8 +2219,7 @@ a negative offset in this case.
|
|
2249
2219
|
<tbody>
|
2250
2220
|
<tr>
|
2251
2221
|
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
2252
|
-
<td>a UTF-8 encoded string
|
2253
|
-
</td>
|
2222
|
+
<td>a UTF-8 encoded string</td>
|
2254
2223
|
</tr>
|
2255
2224
|
<tr>
|
2256
2225
|
<td><p><span class="term"><em class="parameter"><code>pos</code></em> :</span></p></td>
|
@@ -2259,16 +2228,15 @@ a negative offset in this case.
|
|
2259
2228
|
</tr>
|
2260
2229
|
<tr>
|
2261
2230
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2262
|
-
<td>
|
2263
|
-
</td>
|
2231
|
+
<td>the resulting character offset</td>
|
2264
2232
|
</tr>
|
2265
2233
|
</tbody>
|
2266
2234
|
</table></div>
|
2267
2235
|
</div>
|
2268
2236
|
<hr>
|
2269
|
-
<div class="refsect2"
|
2237
|
+
<div class="refsect2">
|
2270
2238
|
<a name="g-utf8-prev-char"></a><h3>g_utf8_prev_char ()</h3>
|
2271
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
2239
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_utf8_prev_char (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *p</code></em>);</pre>
|
2272
2240
|
<p>
|
2273
2241
|
Finds the previous UTF-8 character in the string before <em class="parameter"><code>p</code></em>.
|
2274
2242
|
</p>
|
@@ -2283,21 +2251,19 @@ character of the string, you must use <a class="link" href="glib-Unicode-Manipul
|
|
2283
2251
|
<tbody>
|
2284
2252
|
<tr>
|
2285
2253
|
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
|
2286
|
-
<td>a pointer to a position within a UTF-8 encoded string
|
2287
|
-
</td>
|
2254
|
+
<td>a pointer to a position within a UTF-8 encoded string</td>
|
2288
2255
|
</tr>
|
2289
2256
|
<tr>
|
2290
2257
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2291
|
-
<td>
|
2292
|
-
</td>
|
2258
|
+
<td>a pointer to the found character.</td>
|
2293
2259
|
</tr>
|
2294
2260
|
</tbody>
|
2295
2261
|
</table></div>
|
2296
2262
|
</div>
|
2297
2263
|
<hr>
|
2298
|
-
<div class="refsect2"
|
2264
|
+
<div class="refsect2">
|
2299
2265
|
<a name="g-utf8-find-next-char"></a><h3>g_utf8_find_next_char ()</h3>
|
2300
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
2266
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_utf8_find_next_char (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *p</code></em>,
|
2301
2267
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *end</code></em>);</pre>
|
2302
2268
|
<p>
|
2303
2269
|
Finds the start of the next UTF-8 character in the string after <em class="parameter"><code>p</code></em>.
|
@@ -2312,27 +2278,25 @@ it starts with an appropriate byte.
|
|
2312
2278
|
<tbody>
|
2313
2279
|
<tr>
|
2314
2280
|
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
|
2315
|
-
<td>a pointer to a position within a UTF-8 encoded string
|
2316
|
-
</td>
|
2281
|
+
<td>a pointer to a position within a UTF-8 encoded string</td>
|
2317
2282
|
</tr>
|
2318
2283
|
<tr>
|
2319
2284
|
<td><p><span class="term"><em class="parameter"><code>end</code></em> :</span></p></td>
|
2320
2285
|
<td>a pointer to the byte following the end of the string,
|
2321
|
-
or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> to indicate that the string is nul-terminated
|
2322
|
-
</td>
|
2286
|
+
or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> to indicate that the string is nul-terminated.</td>
|
2323
2287
|
</tr>
|
2324
2288
|
<tr>
|
2325
2289
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2326
|
-
<td>
|
2290
|
+
<td>a pointer to the found character or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
|
2327
2291
|
</td>
|
2328
2292
|
</tr>
|
2329
2293
|
</tbody>
|
2330
2294
|
</table></div>
|
2331
2295
|
</div>
|
2332
2296
|
<hr>
|
2333
|
-
<div class="refsect2"
|
2297
|
+
<div class="refsect2">
|
2334
2298
|
<a name="g-utf8-find-prev-char"></a><h3>g_utf8_find_prev_char ()</h3>
|
2335
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
2299
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_utf8_find_prev_char (<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>,
|
2336
2300
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *p</code></em>);</pre>
|
2337
2301
|
<p>
|
2338
2302
|
Given a position <em class="parameter"><code>p</code></em> with a UTF-8 encoded string <em class="parameter"><code>str</code></em>, find the start
|
@@ -2349,8 +2313,7 @@ it starts with an appropriate byte.
|
|
2349
2313
|
<tbody>
|
2350
2314
|
<tr>
|
2351
2315
|
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
2352
|
-
<td>pointer to the beginning of a UTF-8 encoded string
|
2353
|
-
</td>
|
2316
|
+
<td>pointer to the beginning of a UTF-8 encoded string</td>
|
2354
2317
|
</tr>
|
2355
2318
|
<tr>
|
2356
2319
|
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
|
@@ -2359,14 +2322,13 @@ it starts with an appropriate byte.
|
|
2359
2322
|
</tr>
|
2360
2323
|
<tr>
|
2361
2324
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2362
|
-
<td>
|
2363
|
-
</td>
|
2325
|
+
<td>a pointer to the found character or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.</td>
|
2364
2326
|
</tr>
|
2365
2327
|
</tbody>
|
2366
2328
|
</table></div>
|
2367
2329
|
</div>
|
2368
2330
|
<hr>
|
2369
|
-
<div class="refsect2"
|
2331
|
+
<div class="refsect2">
|
2370
2332
|
<a name="g-utf8-strlen"></a><h3>g_utf8_strlen ()</h3>
|
2371
2333
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="returnvalue">glong</span></a> g_utf8_strlen (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *p</code></em>,
|
2372
2334
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> max</code></em>);</pre>
|
@@ -2379,29 +2341,26 @@ the terminating nul character.
|
|
2379
2341
|
<tbody>
|
2380
2342
|
<tr>
|
2381
2343
|
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
|
2382
|
-
<td>pointer to the start of a UTF-8 encoded string
|
2383
|
-
</td>
|
2344
|
+
<td>pointer to the start of a UTF-8 encoded string</td>
|
2384
2345
|
</tr>
|
2385
2346
|
<tr>
|
2386
2347
|
<td><p><span class="term"><em class="parameter"><code>max</code></em> :</span></p></td>
|
2387
2348
|
<td>the maximum number of bytes to examine. If <em class="parameter"><code>max</code></em>
|
2388
|
-
|
2389
|
-
|
2390
|
-
|
2391
|
-
</td>
|
2349
|
+
is less than 0, then the string is assumed to be
|
2350
|
+
nul-terminated. If <em class="parameter"><code>max</code></em> is 0, <em class="parameter"><code>p</code></em> will not be examined and
|
2351
|
+
may be <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.</td>
|
2392
2352
|
</tr>
|
2393
2353
|
<tr>
|
2394
2354
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2395
|
-
<td>
|
2396
|
-
</td>
|
2355
|
+
<td>the length of the string in characters</td>
|
2397
2356
|
</tr>
|
2398
2357
|
</tbody>
|
2399
2358
|
</table></div>
|
2400
2359
|
</div>
|
2401
2360
|
<hr>
|
2402
|
-
<div class="refsect2"
|
2361
|
+
<div class="refsect2">
|
2403
2362
|
<a name="g-utf8-strncpy"></a><h3>g_utf8_strncpy ()</h3>
|
2404
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
2363
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_utf8_strncpy (<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *dest</code></em>,
|
2405
2364
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *src</code></em>,
|
2406
2365
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> n</code></em>);</pre>
|
2407
2366
|
<p>
|
@@ -2421,26 +2380,23 @@ utility functions with it.)
|
|
2421
2380
|
</tr>
|
2422
2381
|
<tr>
|
2423
2382
|
<td><p><span class="term"><em class="parameter"><code>src</code></em> :</span></p></td>
|
2424
|
-
<td>UTF-8 encoded string
|
2425
|
-
</td>
|
2383
|
+
<td>UTF-8 encoded string</td>
|
2426
2384
|
</tr>
|
2427
2385
|
<tr>
|
2428
2386
|
<td><p><span class="term"><em class="parameter"><code>n</code></em> :</span></p></td>
|
2429
|
-
<td>character count
|
2430
|
-
</td>
|
2387
|
+
<td>character count</td>
|
2431
2388
|
</tr>
|
2432
2389
|
<tr>
|
2433
2390
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2434
|
-
<td
|
2435
|
-
</td>
|
2391
|
+
<td><em class="parameter"><code>dest</code></em></td>
|
2436
2392
|
</tr>
|
2437
2393
|
</tbody>
|
2438
2394
|
</table></div>
|
2439
2395
|
</div>
|
2440
2396
|
<hr>
|
2441
|
-
<div class="refsect2"
|
2397
|
+
<div class="refsect2">
|
2442
2398
|
<a name="g-utf8-strchr"></a><h3>g_utf8_strchr ()</h3>
|
2443
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
2399
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_utf8_strchr (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *p</code></em>,
|
2444
2400
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>,
|
2445
2401
|
<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
2446
2402
|
<p>
|
@@ -2453,8 +2409,7 @@ If <em class="parameter"><code>len</code></em> is -1, allow unbounded search.
|
|
2453
2409
|
<tbody>
|
2454
2410
|
<tr>
|
2455
2411
|
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
|
2456
|
-
<td>a nul-terminated UTF-8 encoded string
|
2457
|
-
</td>
|
2412
|
+
<td>a nul-terminated UTF-8 encoded string</td>
|
2458
2413
|
</tr>
|
2459
2414
|
<tr>
|
2460
2415
|
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
@@ -2463,23 +2418,22 @@ If <em class="parameter"><code>len</code></em> is -1, allow unbounded search.
|
|
2463
2418
|
</tr>
|
2464
2419
|
<tr>
|
2465
2420
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
2466
|
-
<td>a Unicode character
|
2467
|
-
</td>
|
2421
|
+
<td>a Unicode character</td>
|
2468
2422
|
</tr>
|
2469
2423
|
<tr>
|
2470
2424
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2471
|
-
<td>
|
2472
|
-
|
2473
|
-
|
2474
|
-
|
2425
|
+
<td>
|
2426
|
+
<a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> if the string does not contain the character,
|
2427
|
+
otherwise, a pointer to the start of the leftmost occurrence of
|
2428
|
+
the character in the string.</td>
|
2475
2429
|
</tr>
|
2476
2430
|
</tbody>
|
2477
2431
|
</table></div>
|
2478
2432
|
</div>
|
2479
2433
|
<hr>
|
2480
|
-
<div class="refsect2"
|
2434
|
+
<div class="refsect2">
|
2481
2435
|
<a name="g-utf8-strrchr"></a><h3>g_utf8_strrchr ()</h3>
|
2482
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
2436
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_utf8_strrchr (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *p</code></em>,
|
2483
2437
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>,
|
2484
2438
|
<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>);</pre>
|
2485
2439
|
<p>
|
@@ -2492,8 +2446,7 @@ If <em class="parameter"><code>len</code></em> is -1, allow unbounded search.
|
|
2492
2446
|
<tbody>
|
2493
2447
|
<tr>
|
2494
2448
|
<td><p><span class="term"><em class="parameter"><code>p</code></em> :</span></p></td>
|
2495
|
-
<td>a nul-terminated UTF-8 encoded string
|
2496
|
-
</td>
|
2449
|
+
<td>a nul-terminated UTF-8 encoded string</td>
|
2497
2450
|
</tr>
|
2498
2451
|
<tr>
|
2499
2452
|
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
@@ -2502,23 +2455,22 @@ If <em class="parameter"><code>len</code></em> is -1, allow unbounded search.
|
|
2502
2455
|
</tr>
|
2503
2456
|
<tr>
|
2504
2457
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
2505
|
-
<td>a Unicode character
|
2506
|
-
</td>
|
2458
|
+
<td>a Unicode character</td>
|
2507
2459
|
</tr>
|
2508
2460
|
<tr>
|
2509
2461
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2510
|
-
<td>
|
2511
|
-
|
2512
|
-
|
2513
|
-
|
2462
|
+
<td>
|
2463
|
+
<a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> if the string does not contain the character,
|
2464
|
+
otherwise, a pointer to the start of the rightmost occurrence of the
|
2465
|
+
character in the string.</td>
|
2514
2466
|
</tr>
|
2515
2467
|
</tbody>
|
2516
2468
|
</table></div>
|
2517
2469
|
</div>
|
2518
2470
|
<hr>
|
2519
|
-
<div class="refsect2"
|
2471
|
+
<div class="refsect2">
|
2520
2472
|
<a name="g-utf8-strreverse"></a><h3>g_utf8_strreverse ()</h3>
|
2521
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
2473
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_utf8_strreverse (<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>,
|
2522
2474
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>);</pre>
|
2523
2475
|
<p>
|
2524
2476
|
Reverses a UTF-8 string. <em class="parameter"><code>str</code></em> must be valid UTF-8 encoded text.
|
@@ -2542,27 +2494,23 @@ no longer needed.
|
|
2542
2494
|
<tbody>
|
2543
2495
|
<tr>
|
2544
2496
|
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
2545
|
-
<td>a UTF-8 encoded string
|
2546
|
-
</td>
|
2497
|
+
<td>a UTF-8 encoded string</td>
|
2547
2498
|
</tr>
|
2548
2499
|
<tr>
|
2549
2500
|
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
2550
2501
|
<td>the maximum length of <em class="parameter"><code>str</code></em> to use, in bytes. If <em class="parameter"><code>len</code></em> < 0,
|
2551
|
-
|
2552
|
-
</td>
|
2502
|
+
then the string is nul-terminated.</td>
|
2553
2503
|
</tr>
|
2554
2504
|
<tr>
|
2555
2505
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2556
|
-
<td>
|
2557
|
-
|
2558
|
-
</td>
|
2506
|
+
<td>a newly-allocated string which is the reverse of <em class="parameter"><code>str</code></em>.</td>
|
2559
2507
|
</tr>
|
2560
2508
|
</tbody>
|
2561
2509
|
</table></div>
|
2562
2510
|
<p class="since">Since 2.2</p>
|
2563
2511
|
</div>
|
2564
2512
|
<hr>
|
2565
|
-
<div class="refsect2"
|
2513
|
+
<div class="refsect2">
|
2566
2514
|
<a name="g-utf8-validate"></a><h3>g_utf8_validate ()</h3>
|
2567
2515
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a> g_utf8_validate (<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>,
|
2568
2516
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> max_len</code></em>,
|
@@ -2591,29 +2539,26 @@ with <a class="link" href="glib-Unicode-Manipulation.html#g-utf8-validate" title
|
|
2591
2539
|
<tbody>
|
2592
2540
|
<tr>
|
2593
2541
|
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
2594
|
-
<td>a pointer to character data
|
2595
|
-
</td>
|
2542
|
+
<td>a pointer to character data</td>
|
2596
2543
|
</tr>
|
2597
2544
|
<tr>
|
2598
2545
|
<td><p><span class="term"><em class="parameter"><code>max_len</code></em> :</span></p></td>
|
2599
|
-
<td>max bytes to validate, or -1 to go until NUL
|
2600
|
-
</td>
|
2546
|
+
<td>max bytes to validate, or -1 to go until NUL</td>
|
2601
2547
|
</tr>
|
2602
2548
|
<tr>
|
2603
2549
|
<td><p><span class="term"><em class="parameter"><code>end</code></em> :</span></p></td>
|
2604
|
-
<td>return location for end of valid data
|
2605
|
-
</td>
|
2550
|
+
<td>return location for end of valid data</td>
|
2606
2551
|
</tr>
|
2607
2552
|
<tr>
|
2608
2553
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2609
|
-
<td>
|
2610
|
-
</td>
|
2554
|
+
<td>
|
2555
|
+
<a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the text was valid UTF-8</td>
|
2611
2556
|
</tr>
|
2612
2557
|
</tbody>
|
2613
2558
|
</table></div>
|
2614
2559
|
</div>
|
2615
2560
|
<hr>
|
2616
|
-
<div class="refsect2"
|
2561
|
+
<div class="refsect2">
|
2617
2562
|
<a name="g-utf8-strup"></a><h3>g_utf8_strup ()</h3>
|
2618
2563
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_utf8_strup (<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>,
|
2619
2564
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>);</pre>
|
@@ -2629,25 +2574,22 @@ German ess-zet will be changed to SS.)
|
|
2629
2574
|
<tbody>
|
2630
2575
|
<tr>
|
2631
2576
|
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
2632
|
-
<td>a UTF-8 encoded string
|
2633
|
-
</td>
|
2577
|
+
<td>a UTF-8 encoded string</td>
|
2634
2578
|
</tr>
|
2635
2579
|
<tr>
|
2636
2580
|
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
2637
|
-
<td>length of <em class="parameter"><code>str</code></em>, in bytes, or -1 if <em class="parameter"><code>str</code></em> is nul-terminated
|
2638
|
-
</td>
|
2581
|
+
<td>length of <em class="parameter"><code>str</code></em>, in bytes, or -1 if <em class="parameter"><code>str</code></em> is nul-terminated.</td>
|
2639
2582
|
</tr>
|
2640
2583
|
<tr>
|
2641
2584
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2642
|
-
<td>
|
2643
|
-
|
2644
|
-
</td>
|
2585
|
+
<td>a newly allocated string, with all characters
|
2586
|
+
converted to uppercase.</td>
|
2645
2587
|
</tr>
|
2646
2588
|
</tbody>
|
2647
2589
|
</table></div>
|
2648
2590
|
</div>
|
2649
2591
|
<hr>
|
2650
|
-
<div class="refsect2"
|
2592
|
+
<div class="refsect2">
|
2651
2593
|
<a name="g-utf8-strdown"></a><h3>g_utf8_strdown ()</h3>
|
2652
2594
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_utf8_strdown (<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>,
|
2653
2595
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>);</pre>
|
@@ -2662,25 +2604,22 @@ characters in the string changing.
|
|
2662
2604
|
<tbody>
|
2663
2605
|
<tr>
|
2664
2606
|
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
2665
|
-
<td>a UTF-8 encoded string
|
2666
|
-
</td>
|
2607
|
+
<td>a UTF-8 encoded string</td>
|
2667
2608
|
</tr>
|
2668
2609
|
<tr>
|
2669
2610
|
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
2670
|
-
<td>length of <em class="parameter"><code>str</code></em>, in bytes, or -1 if <em class="parameter"><code>str</code></em> is nul-terminated
|
2671
|
-
</td>
|
2611
|
+
<td>length of <em class="parameter"><code>str</code></em>, in bytes, or -1 if <em class="parameter"><code>str</code></em> is nul-terminated.</td>
|
2672
2612
|
</tr>
|
2673
2613
|
<tr>
|
2674
2614
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2675
|
-
<td>
|
2676
|
-
|
2677
|
-
</td>
|
2615
|
+
<td>a newly allocated string, with all characters
|
2616
|
+
converted to lowercase.</td>
|
2678
2617
|
</tr>
|
2679
2618
|
</tbody>
|
2680
2619
|
</table></div>
|
2681
2620
|
</div>
|
2682
2621
|
<hr>
|
2683
|
-
<div class="refsect2"
|
2622
|
+
<div class="refsect2">
|
2684
2623
|
<a name="g-utf8-casefold"></a><h3>g_utf8_casefold ()</h3>
|
2685
2624
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_utf8_casefold (<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>,
|
2686
2625
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>);</pre>
|
@@ -2703,25 +2642,22 @@ provide such a function.
|
|
2703
2642
|
<tbody>
|
2704
2643
|
<tr>
|
2705
2644
|
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
2706
|
-
<td>a UTF-8 encoded string
|
2707
|
-
</td>
|
2645
|
+
<td>a UTF-8 encoded string</td>
|
2708
2646
|
</tr>
|
2709
2647
|
<tr>
|
2710
2648
|
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
2711
|
-
<td>length of <em class="parameter"><code>str</code></em>, in bytes, or -1 if <em class="parameter"><code>str</code></em> is nul-terminated
|
2712
|
-
</td>
|
2649
|
+
<td>length of <em class="parameter"><code>str</code></em>, in bytes, or -1 if <em class="parameter"><code>str</code></em> is nul-terminated.</td>
|
2713
2650
|
</tr>
|
2714
2651
|
<tr>
|
2715
2652
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2716
|
-
<td>
|
2717
|
-
|
2718
|
-
</td>
|
2653
|
+
<td>a newly allocated string, that is a
|
2654
|
+
case independent form of <em class="parameter"><code>str</code></em>.</td>
|
2719
2655
|
</tr>
|
2720
2656
|
</tbody>
|
2721
2657
|
</table></div>
|
2722
2658
|
</div>
|
2723
2659
|
<hr>
|
2724
|
-
<div class="refsect2"
|
2660
|
+
<div class="refsect2">
|
2725
2661
|
<a name="g-utf8-normalize"></a><h3>g_utf8_normalize ()</h3>
|
2726
2662
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_utf8_normalize (<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>,
|
2727
2663
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>,
|
@@ -2760,31 +2696,27 @@ less capable Unicode handling.
|
|
2760
2696
|
<tbody>
|
2761
2697
|
<tr>
|
2762
2698
|
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
2763
|
-
<td>a UTF-8 encoded string
|
2764
|
-
</td>
|
2699
|
+
<td>a UTF-8 encoded string.</td>
|
2765
2700
|
</tr>
|
2766
2701
|
<tr>
|
2767
2702
|
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
2768
|
-
<td>length of <em class="parameter"><code>str</code></em>, in bytes, or -1 if <em class="parameter"><code>str</code></em> is nul-terminated
|
2769
|
-
</td>
|
2703
|
+
<td>length of <em class="parameter"><code>str</code></em>, in bytes, or -1 if <em class="parameter"><code>str</code></em> is nul-terminated.</td>
|
2770
2704
|
</tr>
|
2771
2705
|
<tr>
|
2772
2706
|
<td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td>
|
2773
|
-
<td>the type of normalization to perform
|
2774
|
-
</td>
|
2707
|
+
<td>the type of normalization to perform.</td>
|
2775
2708
|
</tr>
|
2776
2709
|
<tr>
|
2777
2710
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2778
|
-
<td>
|
2779
|
-
|
2780
|
-
|
2781
|
-
</td>
|
2711
|
+
<td>a newly allocated string, that is the
|
2712
|
+
normalized form of <em class="parameter"><code>str</code></em>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> if <em class="parameter"><code>str</code></em> is not
|
2713
|
+
valid UTF-8.</td>
|
2782
2714
|
</tr>
|
2783
2715
|
</tbody>
|
2784
2716
|
</table></div>
|
2785
2717
|
</div>
|
2786
2718
|
<hr>
|
2787
|
-
<div class="refsect2"
|
2719
|
+
<div class="refsect2">
|
2788
2720
|
<a name="GNormalizeMode"></a><h3>enum GNormalizeMode</h3>
|
2789
2721
|
<pre class="programlisting">typedef enum {
|
2790
2722
|
G_NORMALIZE_DEFAULT,
|
@@ -2857,7 +2789,7 @@ character. Unicode strings should generally be normalized before comparing them.
|
|
2857
2789
|
</table></div>
|
2858
2790
|
</div>
|
2859
2791
|
<hr>
|
2860
|
-
<div class="refsect2"
|
2792
|
+
<div class="refsect2">
|
2861
2793
|
<a name="g-utf8-collate"></a><h3>g_utf8_collate ()</h3>
|
2862
2794
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_utf8_collate (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *str1</code></em>,
|
2863
2795
|
<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *str2</code></em>);</pre>
|
@@ -2874,25 +2806,22 @@ the original strings.
|
|
2874
2806
|
<tbody>
|
2875
2807
|
<tr>
|
2876
2808
|
<td><p><span class="term"><em class="parameter"><code>str1</code></em> :</span></p></td>
|
2877
|
-
<td>a UTF-8 encoded string
|
2878
|
-
</td>
|
2809
|
+
<td>a UTF-8 encoded string</td>
|
2879
2810
|
</tr>
|
2880
2811
|
<tr>
|
2881
2812
|
<td><p><span class="term"><em class="parameter"><code>str2</code></em> :</span></p></td>
|
2882
|
-
<td>a UTF-8 encoded string
|
2883
|
-
</td>
|
2813
|
+
<td>a UTF-8 encoded string</td>
|
2884
2814
|
</tr>
|
2885
2815
|
<tr>
|
2886
2816
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2887
|
-
<td
|
2888
|
-
|
2889
|
-
</td>
|
2817
|
+
<td>< 0 if <em class="parameter"><code>str1</code></em> compares before <em class="parameter"><code>str2</code></em>,
|
2818
|
+
0 if they compare equal, > 0 if <em class="parameter"><code>str1</code></em> compares after <em class="parameter"><code>str2</code></em>.</td>
|
2890
2819
|
</tr>
|
2891
2820
|
</tbody>
|
2892
2821
|
</table></div>
|
2893
2822
|
</div>
|
2894
2823
|
<hr>
|
2895
|
-
<div class="refsect2"
|
2824
|
+
<div class="refsect2">
|
2896
2825
|
<a name="g-utf8-collate-key"></a><h3>g_utf8_collate_key ()</h3>
|
2897
2826
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_utf8_collate_key (<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>,
|
2898
2827
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>);</pre>
|
@@ -2915,25 +2844,22 @@ Note that this function depends on the
|
|
2915
2844
|
<tbody>
|
2916
2845
|
<tr>
|
2917
2846
|
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
2918
|
-
<td>a UTF-8 encoded string
|
2919
|
-
</td>
|
2847
|
+
<td>a UTF-8 encoded string.</td>
|
2920
2848
|
</tr>
|
2921
2849
|
<tr>
|
2922
2850
|
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
2923
|
-
<td>length of <em class="parameter"><code>str</code></em>, in bytes, or -1 if <em class="parameter"><code>str</code></em> is nul-terminated
|
2924
|
-
</td>
|
2851
|
+
<td>length of <em class="parameter"><code>str</code></em>, in bytes, or -1 if <em class="parameter"><code>str</code></em> is nul-terminated.</td>
|
2925
2852
|
</tr>
|
2926
2853
|
<tr>
|
2927
2854
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2928
|
-
<td>
|
2929
|
-
|
2930
|
-
</td>
|
2855
|
+
<td>a newly allocated string. This string should
|
2856
|
+
be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a> when you are done with it.</td>
|
2931
2857
|
</tr>
|
2932
2858
|
</tbody>
|
2933
2859
|
</table></div>
|
2934
2860
|
</div>
|
2935
2861
|
<hr>
|
2936
|
-
<div class="refsect2"
|
2862
|
+
<div class="refsect2">
|
2937
2863
|
<a name="g-utf8-collate-key-for-filename"></a><h3>g_utf8_collate_key_for_filename ()</h3>
|
2938
2864
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_utf8_collate_key_for_filename (<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>,
|
2939
2865
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gssize" title="gssize"><span class="type">gssize</span></a> len</code></em>);</pre>
|
@@ -2958,33 +2884,29 @@ Note that this function depends on the
|
|
2958
2884
|
<tbody>
|
2959
2885
|
<tr>
|
2960
2886
|
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
2961
|
-
<td>a UTF-8 encoded string
|
2962
|
-
</td>
|
2887
|
+
<td>a UTF-8 encoded string.</td>
|
2963
2888
|
</tr>
|
2964
2889
|
<tr>
|
2965
2890
|
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
2966
|
-
<td>length of <em class="parameter"><code>str</code></em>, in bytes, or -1 if <em class="parameter"><code>str</code></em> is nul-terminated
|
2967
|
-
</td>
|
2891
|
+
<td>length of <em class="parameter"><code>str</code></em>, in bytes, or -1 if <em class="parameter"><code>str</code></em> is nul-terminated.</td>
|
2968
2892
|
</tr>
|
2969
2893
|
<tr>
|
2970
2894
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2971
|
-
<td>
|
2972
|
-
|
2973
|
-
|
2974
|
-
</td>
|
2895
|
+
<td>a newly allocated string. This string should
|
2896
|
+
be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a> when you are done with it.</td>
|
2975
2897
|
</tr>
|
2976
2898
|
</tbody>
|
2977
2899
|
</table></div>
|
2978
2900
|
<p class="since">Since 2.8</p>
|
2979
2901
|
</div>
|
2980
2902
|
<hr>
|
2981
|
-
<div class="refsect2"
|
2903
|
+
<div class="refsect2">
|
2982
2904
|
<a name="g-utf8-to-utf16"></a><h3>g_utf8_to_utf16 ()</h3>
|
2983
2905
|
<pre class="programlisting"><a class="link" href="glib-Unicode-Manipulation.html#gunichar2" title="gunichar2"><span class="returnvalue">gunichar2</span></a> * g_utf8_to_utf16 (<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>,
|
2984
2906
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> len</code></em>,
|
2985
2907
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_read</code></em>,
|
2986
2908
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_written</code></em>,
|
2987
|
-
<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>
|
2909
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
2988
2910
|
<p>
|
2989
2911
|
Convert a string from UTF-8 to UTF-16. A 0 character will be
|
2990
2912
|
added to the result after the converted text.
|
@@ -2994,57 +2916,51 @@ added to the result after the converted text.
|
|
2994
2916
|
<tbody>
|
2995
2917
|
<tr>
|
2996
2918
|
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
2997
|
-
<td>a UTF-8 encoded string
|
2998
|
-
</td>
|
2919
|
+
<td>a UTF-8 encoded string</td>
|
2999
2920
|
</tr>
|
3000
2921
|
<tr>
|
3001
2922
|
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
3002
2923
|
<td>the maximum length (number of bytes) of <em class="parameter"><code>str</code></em> to use.
|
3003
|
-
|
3004
|
-
</td>
|
2924
|
+
If <em class="parameter"><code>len</code></em> < 0, then the string is nul-terminated.</td>
|
3005
2925
|
</tr>
|
3006
2926
|
<tr>
|
3007
2927
|
<td><p><span class="term"><em class="parameter"><code>items_read</code></em> :</span></p></td>
|
3008
2928
|
<td>location to store number of bytes read, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
3009
|
-
|
3010
|
-
|
3011
|
-
|
3012
|
-
|
3013
|
-
</td>
|
2929
|
+
If <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, then <a class="link" href="glib-Character-Set-Conversion.html#G-CONVERT-ERROR-PARTIAL-INPUT:CAPS"><code class="literal">G_CONVERT_ERROR_PARTIAL_INPUT</code></a> will be
|
2930
|
+
returned in case <em class="parameter"><code>str</code></em> contains a trailing partial
|
2931
|
+
character. If an error occurs then the index of the
|
2932
|
+
invalid input is stored here.</td>
|
3014
2933
|
</tr>
|
3015
2934
|
<tr>
|
3016
2935
|
<td><p><span class="term"><em class="parameter"><code>items_written</code></em> :</span></p></td>
|
3017
2936
|
<td>location to store number of <span class="type">gunichar2</span> written,
|
3018
|
-
|
3019
|
-
|
3020
|
-
</td>
|
2937
|
+
or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
2938
|
+
The value stored here does not include the trailing 0.</td>
|
3021
2939
|
</tr>
|
3022
2940
|
<tr>
|
3023
2941
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
3024
2942
|
<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
|
3025
|
-
|
3026
|
-
|
3027
|
-
</td>
|
2943
|
+
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> other than
|
2944
|
+
<a class="link" href="glib-Character-Set-Conversion.html#G-CONVERT-ERROR-NO-CONVERSION:CAPS"><code class="literal">G_CONVERT_ERROR_NO_CONVERSION</code></a> may occur.</td>
|
3028
2945
|
</tr>
|
3029
2946
|
<tr>
|
3030
2947
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
3031
|
-
<td>
|
3032
|
-
|
3033
|
-
|
3034
|
-
|
3035
|
-
</td>
|
2948
|
+
<td>a pointer to a newly allocated UTF-16 string.
|
2949
|
+
This value must be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>. If an
|
2950
|
+
error occurs, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> will be returned and
|
2951
|
+
<em class="parameter"><code>error</code></em> set.</td>
|
3036
2952
|
</tr>
|
3037
2953
|
</tbody>
|
3038
2954
|
</table></div>
|
3039
2955
|
</div>
|
3040
2956
|
<hr>
|
3041
|
-
<div class="refsect2"
|
2957
|
+
<div class="refsect2">
|
3042
2958
|
<a name="g-utf8-to-ucs4"></a><h3>g_utf8_to_ucs4 ()</h3>
|
3043
2959
|
<pre class="programlisting"><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="returnvalue">gunichar</span></a> * g_utf8_to_ucs4 (<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>,
|
3044
2960
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> len</code></em>,
|
3045
2961
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_read</code></em>,
|
3046
2962
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_written</code></em>,
|
3047
|
-
<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>
|
2963
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
3048
2964
|
<p>
|
3049
2965
|
Convert a string from UTF-8 to a 32-bit fixed width
|
3050
2966
|
representation as UCS-4. A trailing 0 will be added to the
|
@@ -3055,51 +2971,45 @@ string after the converted text.
|
|
3055
2971
|
<tbody>
|
3056
2972
|
<tr>
|
3057
2973
|
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
3058
|
-
<td>a UTF-8 encoded string
|
3059
|
-
</td>
|
2974
|
+
<td>a UTF-8 encoded string</td>
|
3060
2975
|
</tr>
|
3061
2976
|
<tr>
|
3062
2977
|
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
3063
2978
|
<td>the maximum length of <em class="parameter"><code>str</code></em> to use, in bytes. If <em class="parameter"><code>len</code></em> < 0,
|
3064
|
-
|
3065
|
-
</td>
|
2979
|
+
then the string is nul-terminated.</td>
|
3066
2980
|
</tr>
|
3067
2981
|
<tr>
|
3068
2982
|
<td><p><span class="term"><em class="parameter"><code>items_read</code></em> :</span></p></td>
|
3069
2983
|
<td>location to store number of bytes read, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
3070
|
-
|
3071
|
-
|
3072
|
-
|
3073
|
-
|
3074
|
-
</td>
|
2984
|
+
If <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, then <a class="link" href="glib-Character-Set-Conversion.html#G-CONVERT-ERROR-PARTIAL-INPUT:CAPS"><code class="literal">G_CONVERT_ERROR_PARTIAL_INPUT</code></a> will be
|
2985
|
+
returned in case <em class="parameter"><code>str</code></em> contains a trailing partial
|
2986
|
+
character. If an error occurs then the index of the
|
2987
|
+
invalid input is stored here.</td>
|
3075
2988
|
</tr>
|
3076
2989
|
<tr>
|
3077
2990
|
<td><p><span class="term"><em class="parameter"><code>items_written</code></em> :</span></p></td>
|
3078
2991
|
<td>location to store number of characters written or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
3079
|
-
|
3080
|
-
|
3081
|
-
</td>
|
2992
|
+
The value here stored does not include the trailing 0
|
2993
|
+
character.</td>
|
3082
2994
|
</tr>
|
3083
2995
|
<tr>
|
3084
2996
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
3085
2997
|
<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
|
3086
|
-
|
3087
|
-
|
3088
|
-
</td>
|
2998
|
+
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> other than
|
2999
|
+
<a class="link" href="glib-Character-Set-Conversion.html#G-CONVERT-ERROR-NO-CONVERSION:CAPS"><code class="literal">G_CONVERT_ERROR_NO_CONVERSION</code></a> may occur.</td>
|
3089
3000
|
</tr>
|
3090
3001
|
<tr>
|
3091
3002
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
3092
|
-
<td>
|
3093
|
-
|
3094
|
-
|
3095
|
-
|
3096
|
-
</td>
|
3003
|
+
<td>a pointer to a newly allocated UCS-4 string.
|
3004
|
+
This value must be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>. If an
|
3005
|
+
error occurs, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> will be returned and
|
3006
|
+
<em class="parameter"><code>error</code></em> set.</td>
|
3097
3007
|
</tr>
|
3098
3008
|
</tbody>
|
3099
3009
|
</table></div>
|
3100
3010
|
</div>
|
3101
3011
|
<hr>
|
3102
|
-
<div class="refsect2"
|
3012
|
+
<div class="refsect2">
|
3103
3013
|
<a name="g-utf8-to-ucs4-fast"></a><h3>g_utf8_to_ucs4_fast ()</h3>
|
3104
3014
|
<pre class="programlisting"><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="returnvalue">gunichar</span></a> * g_utf8_to_ucs4_fast (<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>,
|
3105
3015
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> len</code></em>,
|
@@ -3115,38 +3025,34 @@ but does no error checking on the input.
|
|
3115
3025
|
<tbody>
|
3116
3026
|
<tr>
|
3117
3027
|
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
3118
|
-
<td>a UTF-8 encoded string
|
3119
|
-
</td>
|
3028
|
+
<td>a UTF-8 encoded string</td>
|
3120
3029
|
</tr>
|
3121
3030
|
<tr>
|
3122
3031
|
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
3123
3032
|
<td>the maximum length of <em class="parameter"><code>str</code></em> to use, in bytes. If <em class="parameter"><code>len</code></em> < 0,
|
3124
|
-
|
3125
|
-
</td>
|
3033
|
+
then the string is nul-terminated.</td>
|
3126
3034
|
</tr>
|
3127
3035
|
<tr>
|
3128
3036
|
<td><p><span class="term"><em class="parameter"><code>items_written</code></em> :</span></p></td>
|
3129
3037
|
<td>location to store the number of characters in the
|
3130
|
-
|
3131
|
-
</td>
|
3038
|
+
result, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.</td>
|
3132
3039
|
</tr>
|
3133
3040
|
<tr>
|
3134
3041
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
3135
|
-
<td>
|
3136
|
-
|
3137
|
-
</td>
|
3042
|
+
<td>a pointer to a newly allocated UCS-4 string.
|
3043
|
+
This value must be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>.</td>
|
3138
3044
|
</tr>
|
3139
3045
|
</tbody>
|
3140
3046
|
</table></div>
|
3141
3047
|
</div>
|
3142
3048
|
<hr>
|
3143
|
-
<div class="refsect2"
|
3049
|
+
<div class="refsect2">
|
3144
3050
|
<a name="g-utf16-to-ucs4"></a><h3>g_utf16_to_ucs4 ()</h3>
|
3145
3051
|
<pre class="programlisting"><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="returnvalue">gunichar</span></a> * g_utf16_to_ucs4 (<em class="parameter"><code>const <a class="link" href="glib-Unicode-Manipulation.html#gunichar2" title="gunichar2"><span class="type">gunichar2</span></a> *str</code></em>,
|
3146
3052
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> len</code></em>,
|
3147
3053
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_read</code></em>,
|
3148
3054
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_written</code></em>,
|
3149
|
-
<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>
|
3055
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
3150
3056
|
<p>
|
3151
3057
|
Convert a string from UTF-16 to UCS-4. The result will be
|
3152
3058
|
nul-terminated.
|
@@ -3156,57 +3062,51 @@ nul-terminated.
|
|
3156
3062
|
<tbody>
|
3157
3063
|
<tr>
|
3158
3064
|
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
3159
|
-
<td>a UTF-16 encoded string
|
3160
|
-
</td>
|
3065
|
+
<td>a UTF-16 encoded string</td>
|
3161
3066
|
</tr>
|
3162
3067
|
<tr>
|
3163
3068
|
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
3164
|
-
<td>the maximum length (number of <span class="type">gunichar2</span>) of <em class="parameter"><code>str</code></em> to use.
|
3165
|
-
|
3166
|
-
</td>
|
3069
|
+
<td>the maximum length (number of <span class="type">gunichar2</span>) of <em class="parameter"><code>str</code></em> to use.
|
3070
|
+
If <em class="parameter"><code>len</code></em> < 0, then the string is nul-terminated.</td>
|
3167
3071
|
</tr>
|
3168
3072
|
<tr>
|
3169
3073
|
<td><p><span class="term"><em class="parameter"><code>items_read</code></em> :</span></p></td>
|
3170
3074
|
<td>location to store number of words read, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
3171
|
-
|
3172
|
-
|
3173
|
-
|
3174
|
-
|
3175
|
-
</td>
|
3075
|
+
If <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, then <a class="link" href="glib-Character-Set-Conversion.html#G-CONVERT-ERROR-PARTIAL-INPUT:CAPS"><code class="literal">G_CONVERT_ERROR_PARTIAL_INPUT</code></a> will be
|
3076
|
+
returned in case <em class="parameter"><code>str</code></em> contains a trailing partial
|
3077
|
+
character. If an error occurs then the index of the
|
3078
|
+
invalid input is stored here.</td>
|
3176
3079
|
</tr>
|
3177
3080
|
<tr>
|
3178
3081
|
<td><p><span class="term"><em class="parameter"><code>items_written</code></em> :</span></p></td>
|
3179
3082
|
<td>location to store number of characters written, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
3180
|
-
|
3181
|
-
|
3182
|
-
</td>
|
3083
|
+
The value stored here does not include the trailing
|
3084
|
+
0 character.</td>
|
3183
3085
|
</tr>
|
3184
3086
|
<tr>
|
3185
3087
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
3186
3088
|
<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
|
3187
|
-
|
3188
|
-
|
3189
|
-
</td>
|
3089
|
+
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> other than
|
3090
|
+
<a class="link" href="glib-Character-Set-Conversion.html#G-CONVERT-ERROR-NO-CONVERSION:CAPS"><code class="literal">G_CONVERT_ERROR_NO_CONVERSION</code></a> may occur.</td>
|
3190
3091
|
</tr>
|
3191
3092
|
<tr>
|
3192
3093
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
3193
|
-
<td>
|
3194
|
-
|
3195
|
-
|
3196
|
-
|
3197
|
-
</td>
|
3094
|
+
<td>a pointer to a newly allocated UCS-4 string.
|
3095
|
+
This value must be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>. If an
|
3096
|
+
error occurs, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> will be returned and
|
3097
|
+
<em class="parameter"><code>error</code></em> set.</td>
|
3198
3098
|
</tr>
|
3199
3099
|
</tbody>
|
3200
3100
|
</table></div>
|
3201
3101
|
</div>
|
3202
3102
|
<hr>
|
3203
|
-
<div class="refsect2"
|
3103
|
+
<div class="refsect2">
|
3204
3104
|
<a name="g-utf16-to-utf8"></a><h3>g_utf16_to_utf8 ()</h3>
|
3205
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
3105
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_utf16_to_utf8 (<em class="parameter"><code>const <a class="link" href="glib-Unicode-Manipulation.html#gunichar2" title="gunichar2"><span class="type">gunichar2</span></a> *str</code></em>,
|
3206
3106
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> len</code></em>,
|
3207
3107
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_read</code></em>,
|
3208
3108
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_written</code></em>,
|
3209
|
-
<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>
|
3109
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
3210
3110
|
<p>
|
3211
3111
|
Convert a string from UTF-16 to UTF-8. The result will be
|
3212
3112
|
terminated with a 0 byte.
|
@@ -3229,57 +3129,51 @@ things unpaired surrogates.
|
|
3229
3129
|
<tbody>
|
3230
3130
|
<tr>
|
3231
3131
|
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
3232
|
-
<td>a UTF-16 encoded string
|
3233
|
-
</td>
|
3132
|
+
<td>a UTF-16 encoded string</td>
|
3234
3133
|
</tr>
|
3235
3134
|
<tr>
|
3236
3135
|
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
3237
|
-
<td>the maximum length (number of <span class="type">gunichar2</span>) of <em class="parameter"><code>str</code></em> to use.
|
3238
|
-
|
3239
|
-
</td>
|
3136
|
+
<td>the maximum length (number of <span class="type">gunichar2</span>) of <em class="parameter"><code>str</code></em> to use.
|
3137
|
+
If <em class="parameter"><code>len</code></em> < 0, then the string is nul-terminated.</td>
|
3240
3138
|
</tr>
|
3241
3139
|
<tr>
|
3242
3140
|
<td><p><span class="term"><em class="parameter"><code>items_read</code></em> :</span></p></td>
|
3243
3141
|
<td>location to store number of words read, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
3244
|
-
|
3245
|
-
|
3246
|
-
|
3247
|
-
|
3248
|
-
</td>
|
3142
|
+
If <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, then <a class="link" href="glib-Character-Set-Conversion.html#G-CONVERT-ERROR-PARTIAL-INPUT:CAPS"><code class="literal">G_CONVERT_ERROR_PARTIAL_INPUT</code></a> will be
|
3143
|
+
returned in case <em class="parameter"><code>str</code></em> contains a trailing partial
|
3144
|
+
character. If an error occurs then the index of the
|
3145
|
+
invalid input is stored here.</td>
|
3249
3146
|
</tr>
|
3250
3147
|
<tr>
|
3251
3148
|
<td><p><span class="term"><em class="parameter"><code>items_written</code></em> :</span></p></td>
|
3252
3149
|
<td>location to store number of bytes written, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
3253
|
-
|
3254
|
-
|
3255
|
-
</td>
|
3150
|
+
The value stored here does not include the trailing
|
3151
|
+
0 byte.</td>
|
3256
3152
|
</tr>
|
3257
3153
|
<tr>
|
3258
3154
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
3259
3155
|
<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
|
3260
|
-
|
3261
|
-
|
3262
|
-
</td>
|
3156
|
+
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> other than
|
3157
|
+
<a class="link" href="glib-Character-Set-Conversion.html#G-CONVERT-ERROR-NO-CONVERSION:CAPS"><code class="literal">G_CONVERT_ERROR_NO_CONVERSION</code></a> may occur.</td>
|
3263
3158
|
</tr>
|
3264
3159
|
<tr>
|
3265
3160
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
3266
|
-
<td>
|
3267
|
-
|
3268
|
-
|
3269
|
-
|
3270
|
-
</td>
|
3161
|
+
<td>a pointer to a newly allocated UTF-8 string.
|
3162
|
+
This value must be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>. If an
|
3163
|
+
error occurs, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> will be returned and
|
3164
|
+
<em class="parameter"><code>error</code></em> set.</td>
|
3271
3165
|
</tr>
|
3272
3166
|
</tbody>
|
3273
3167
|
</table></div>
|
3274
3168
|
</div>
|
3275
3169
|
<hr>
|
3276
|
-
<div class="refsect2"
|
3170
|
+
<div class="refsect2">
|
3277
3171
|
<a name="g-ucs4-to-utf16"></a><h3>g_ucs4_to_utf16 ()</h3>
|
3278
3172
|
<pre class="programlisting"><a class="link" href="glib-Unicode-Manipulation.html#gunichar2" title="gunichar2"><span class="returnvalue">gunichar2</span></a> * g_ucs4_to_utf16 (<em class="parameter"><code>const <a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> *str</code></em>,
|
3279
3173
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> len</code></em>,
|
3280
3174
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_read</code></em>,
|
3281
3175
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_written</code></em>,
|
3282
|
-
<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>
|
3176
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
3283
3177
|
<p>
|
3284
3178
|
Convert a string from UCS-4 to UTF-16. A 0 character will be
|
3285
3179
|
added to the result after the converted text.
|
@@ -3289,55 +3183,49 @@ added to the result after the converted text.
|
|
3289
3183
|
<tbody>
|
3290
3184
|
<tr>
|
3291
3185
|
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
3292
|
-
<td>a UCS-4 encoded string
|
3293
|
-
</td>
|
3186
|
+
<td>a UCS-4 encoded string</td>
|
3294
3187
|
</tr>
|
3295
3188
|
<tr>
|
3296
3189
|
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
3297
|
-
<td>the maximum length (number of characters) of <em class="parameter"><code>str</code></em> to use.
|
3298
|
-
|
3299
|
-
</td>
|
3190
|
+
<td>the maximum length (number of characters) of <em class="parameter"><code>str</code></em> to use.
|
3191
|
+
If <em class="parameter"><code>len</code></em> < 0, then the string is nul-terminated.</td>
|
3300
3192
|
</tr>
|
3301
3193
|
<tr>
|
3302
3194
|
<td><p><span class="term"><em class="parameter"><code>items_read</code></em> :</span></p></td>
|
3303
3195
|
<td>location to store number of bytes read, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
3304
|
-
|
3305
|
-
|
3306
|
-
</td>
|
3196
|
+
If an error occurs then the index of the invalid input
|
3197
|
+
is stored here.</td>
|
3307
3198
|
</tr>
|
3308
3199
|
<tr>
|
3309
3200
|
<td><p><span class="term"><em class="parameter"><code>items_written</code></em> :</span></p></td>
|
3310
|
-
<td>location to store number of <span class="type">gunichar2</span>
|
3311
|
-
|
3312
|
-
|
3313
|
-
</td>
|
3201
|
+
<td>location to store number of <span class="type">gunichar2</span>
|
3202
|
+
written, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. The value stored here does not
|
3203
|
+
include the trailing 0.</td>
|
3314
3204
|
</tr>
|
3315
3205
|
<tr>
|
3316
3206
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
3317
3207
|
<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
|
3318
|
-
|
3319
|
-
|
3320
|
-
</td>
|
3208
|
+
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> other than
|
3209
|
+
<a class="link" href="glib-Character-Set-Conversion.html#G-CONVERT-ERROR-NO-CONVERSION:CAPS"><code class="literal">G_CONVERT_ERROR_NO_CONVERSION</code></a> may occur.</td>
|
3321
3210
|
</tr>
|
3322
3211
|
<tr>
|
3323
3212
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
3324
|
-
<td>
|
3325
|
-
|
3326
|
-
|
3327
|
-
|
3328
|
-
</td>
|
3213
|
+
<td>a pointer to a newly allocated UTF-16 string.
|
3214
|
+
This value must be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>. If an
|
3215
|
+
error occurs, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> will be returned and
|
3216
|
+
<em class="parameter"><code>error</code></em> set.</td>
|
3329
3217
|
</tr>
|
3330
3218
|
</tbody>
|
3331
3219
|
</table></div>
|
3332
3220
|
</div>
|
3333
3221
|
<hr>
|
3334
|
-
<div class="refsect2"
|
3222
|
+
<div class="refsect2">
|
3335
3223
|
<a name="g-ucs4-to-utf8"></a><h3>g_ucs4_to_utf8 ()</h3>
|
3336
|
-
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a
|
3224
|
+
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> * g_ucs4_to_utf8 (<em class="parameter"><code>const <a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> *str</code></em>,
|
3337
3225
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> len</code></em>,
|
3338
3226
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_read</code></em>,
|
3339
3227
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#glong" title="glong"><span class="type">glong</span></a> *items_written</code></em>,
|
3340
|
-
<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>
|
3228
|
+
<em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
|
3341
3229
|
<p>
|
3342
3230
|
Convert a string from a 32-bit fixed width representation as UCS-4.
|
3343
3231
|
to UTF-8. The result will be terminated with a 0 byte.
|
@@ -3347,49 +3235,43 @@ to UTF-8. The result will be terminated with a 0 byte.
|
|
3347
3235
|
<tbody>
|
3348
3236
|
<tr>
|
3349
3237
|
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
|
3350
|
-
<td>a UCS-4 encoded string
|
3351
|
-
</td>
|
3238
|
+
<td>a UCS-4 encoded string</td>
|
3352
3239
|
</tr>
|
3353
3240
|
<tr>
|
3354
3241
|
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
|
3355
|
-
<td>the maximum length (number of characters) of <em class="parameter"><code>str</code></em> to use.
|
3356
|
-
|
3357
|
-
</td>
|
3242
|
+
<td>the maximum length (number of characters) of <em class="parameter"><code>str</code></em> to use.
|
3243
|
+
If <em class="parameter"><code>len</code></em> < 0, then the string is nul-terminated.</td>
|
3358
3244
|
</tr>
|
3359
3245
|
<tr>
|
3360
3246
|
<td><p><span class="term"><em class="parameter"><code>items_read</code></em> :</span></p></td>
|
3361
|
-
<td>location to store number of characters read, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a
|
3362
|
-
</td>
|
3247
|
+
<td>location to store number of characters read, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.</td>
|
3363
3248
|
</tr>
|
3364
3249
|
<tr>
|
3365
3250
|
<td><p><span class="term"><em class="parameter"><code>items_written</code></em> :</span></p></td>
|
3366
3251
|
<td>location to store number of bytes written or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
|
3367
|
-
|
3368
|
-
|
3369
|
-
</td>
|
3252
|
+
The value here stored does not include the trailing 0
|
3253
|
+
byte.</td>
|
3370
3254
|
</tr>
|
3371
3255
|
<tr>
|
3372
3256
|
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
|
3373
3257
|
<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
|
3374
|
-
|
3375
|
-
|
3376
|
-
</td>
|
3258
|
+
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> other than
|
3259
|
+
<a class="link" href="glib-Character-Set-Conversion.html#G-CONVERT-ERROR-NO-CONVERSION:CAPS"><code class="literal">G_CONVERT_ERROR_NO_CONVERSION</code></a> may occur.</td>
|
3377
3260
|
</tr>
|
3378
3261
|
<tr>
|
3379
3262
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
3380
|
-
<td>
|
3381
|
-
|
3382
|
-
|
3383
|
-
|
3384
|
-
|
3385
|
-
|
3386
|
-
</td>
|
3263
|
+
<td>a pointer to a newly allocated UTF-8 string.
|
3264
|
+
This value must be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>. If an
|
3265
|
+
error occurs, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> will be returned and
|
3266
|
+
<em class="parameter"><code>error</code></em> set. In that case, <em class="parameter"><code>items_read</code></em> will be
|
3267
|
+
set to the position of the first invalid input
|
3268
|
+
character.</td>
|
3387
3269
|
</tr>
|
3388
3270
|
</tbody>
|
3389
3271
|
</table></div>
|
3390
3272
|
</div>
|
3391
3273
|
<hr>
|
3392
|
-
<div class="refsect2"
|
3274
|
+
<div class="refsect2">
|
3393
3275
|
<a name="g-unichar-to-utf8"></a><h3>g_unichar_to_utf8 ()</h3>
|
3394
3276
|
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a> g_unichar_to_utf8 (<em class="parameter"><code><a class="link" href="glib-Unicode-Manipulation.html#gunichar" title="gunichar"><span class="type">gunichar</span></a> c</code></em>,
|
3395
3277
|
<em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *outbuf</code></em>);</pre>
|
@@ -3401,26 +3283,23 @@ Converts a single character to UTF-8.
|
|
3401
3283
|
<tbody>
|
3402
3284
|
<tr>
|
3403
3285
|
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
|
3404
|
-
<td>a Unicode character code
|
3405
|
-
</td>
|
3286
|
+
<td>a Unicode character code</td>
|
3406
3287
|
</tr>
|
3407
3288
|
<tr>
|
3408
3289
|
<td><p><span class="term"><em class="parameter"><code>outbuf</code></em> :</span></p></td>
|
3409
3290
|
<td>output buffer, must have at least 6 bytes of space.
|
3410
|
-
|
3411
|
-
|
3412
|
-
</td>
|
3291
|
+
If <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, the length will be computed and returned
|
3292
|
+
and nothing will be written to <em class="parameter"><code>outbuf</code></em>.</td>
|
3413
3293
|
</tr>
|
3414
3294
|
<tr>
|
3415
3295
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
3416
|
-
<td>
|
3417
|
-
</td>
|
3296
|
+
<td>number of bytes written</td>
|
3418
3297
|
</tr>
|
3419
3298
|
</tbody>
|
3420
3299
|
</table></div>
|
3421
3300
|
</div>
|
3422
3301
|
</div>
|
3423
|
-
<div class="refsect1"
|
3302
|
+
<div class="refsect1">
|
3424
3303
|
<a name="glib-Unicode-Manipulation.see-also"></a><h2>See Also</h2>
|
3425
3304
|
<p>
|
3426
3305
|
</p>
|
@@ -3443,6 +3322,6 @@ Convenience functions for converting between UTF-8 and the locale encoding.
|
|
3443
3322
|
</div>
|
3444
3323
|
<div class="footer">
|
3445
3324
|
<hr>
|
3446
|
-
Generated by GTK-Doc V1.
|
3325
|
+
Generated by GTK-Doc V1.16.1</div>
|
3447
3326
|
</body>
|
3448
3327
|
</html>
|