Revert "chore(deps): pin puregotk nil-signal fix"
This reverts commit a161e348e2093172038390b0906448f0ae979a0d.
- commit
- 40378d5e4fd2372d054e49168ab2a6f67aedd0fd
- author
- brice · · 2026-07-14 17:59 UTC
- parent
- 8d647bb
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +23 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +66 -77 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +18 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +56 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +64 -88 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +30 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +23 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +18 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +38 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +14 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +82 -214 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +24 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +80 -207 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +450 -1148 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +35 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +84 -138 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +15 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +25 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +48 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +1 -90 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +13 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +60 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +50 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +33 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +86 -215 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +32 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +21 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +31 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +19 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +72 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +22 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +21 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +15 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +67 -75 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +67 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +43 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +72 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +44 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +25 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +11 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +39 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +31 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +52 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +22 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +33 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +29 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +46 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +48 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +22 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +22 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +24 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +58 -143 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +19 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +18 -9 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +15 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +28 -32 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +59 -82 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +39 -56 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +34 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +24 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +61 -69 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcache.go +15 -10 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +25 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +17 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +28 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +28 -36 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdate.go +65 -103 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +66 -107 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdir.go +19 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/genviron.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gerror.go +29 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +38 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghash.go +53 -81 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +24 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghook.go +26 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +18 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +67 -83 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +62 -72 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +12 -4 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glist.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmain.go +117 -181 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +21 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +43 -51 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmem.go +31 -44 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +45 -70 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gnode.go +35 -50 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/goption.go +43 -57 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +24 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +23 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +13 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +14 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +20 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gquark.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +52 -84 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grand.go +30 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +27 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +20 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gregex.go +57 -72 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grel.go +21 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +30 -40 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +49 -74 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gshell.go +16 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslice.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslist.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +23 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +27 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +71 -115 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstring.go +51 -77 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstringchunk.go +15 -10 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrvbuilder.go +22 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtestutils.go +80 -132 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthread.go +97 -146 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthreadpool.go +25 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimer.go +20 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimezone.go +26 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtrashstack.go +14 -8 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtree.go +45 -63 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtypes.go +12 -4 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gunicode.go +85 -132
| @@ -2,6 +2,7 @@ | |||
| 2 | 2 | package glib | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | + | "github.com/bnema/purego" | |
| 5 | 6 | "github.com/bnema/puregotk/pkg/core" | |
| 6 | 7 | "github.com/bnema/puregotk/v4/gobject/types" | |
| 7 | 8 | ) | |
| @@ -24,7 +25,6 @@ type NormalizeMode int | |||
| 24 | 25 | var xNormalizeModeGLibType func() types.GType | |
| 25 | 26 | ||
| 26 | 27 | func NormalizeModeGLibType() types.GType { | |
| 27 | - | core.LazyRegister(&xNormalizeModeGLibType, "GLIB", "g_normalize_mode_get_type", false) | |
| 28 | 28 | return xNormalizeModeGLibType() | |
| 29 | 29 | } | |
| 30 | 30 | ||
| @@ -66,7 +66,6 @@ type UnicodeBreakType int | |||
| 66 | 66 | var xUnicodeBreakTypeGLibType func() types.GType | |
| 67 | 67 | ||
| 68 | 68 | func UnicodeBreakTypeGLibType() types.GType { | |
| 69 | - | core.LazyRegister(&xUnicodeBreakTypeGLibType, "GLIB", "g_unicode_break_type_get_type", false) | |
| 70 | 69 | return xUnicodeBreakTypeGLibType() | |
| 71 | 70 | } | |
| 72 | 71 | ||
| @@ -187,7 +186,6 @@ type UnicodeScript int | |||
| 187 | 186 | var xUnicodeScriptGLibType func() types.GType | |
| 188 | 187 | ||
| 189 | 188 | func UnicodeScriptGLibType() types.GType { | |
| 190 | - | core.LazyRegister(&xUnicodeScriptGLibType, "GLIB", "g_unicode_script_get_type", false) | |
| 191 | 189 | return xUnicodeScriptGLibType() | |
| 192 | 190 | } | |
| 193 | 191 | ||
| @@ -558,7 +556,6 @@ type UnicodeType int | |||
| 558 | 556 | var xUnicodeTypeGLibType func() types.GType | |
| 559 | 557 | ||
| 560 | 558 | func UnicodeTypeGLibType() types.GType { | |
| 561 | - | core.LazyRegister(&xUnicodeTypeGLibType, "GLIB", "g_unicode_type_get_type", false) | |
| 562 | 559 | return xUnicodeTypeGLibType() | |
| 563 | 560 | } | |
| 564 | 561 | ||
| @@ -632,7 +629,6 @@ var xUcs4ToUtf16 func([]uint32, int, *int, *int, **Error) uint16 | |||
| 632 | 629 | // | |
| 633 | 630 | // A nul character (U+0000) will be added to the result after the converted text. | |
| 634 | 631 | func Ucs4ToUtf16(StrVar []uint32, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint16, error) { | |
| 635 | - | core.LazyRegister(&xUcs4ToUtf16, "GLIB", "g_ucs4_to_utf16", false) | |
| 636 | 632 | var cerr *Error | |
| 637 | 633 | ||
| 638 | 634 | cret := xUcs4ToUtf16(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | |
| @@ -649,7 +645,6 @@ var xUcs4ToUtf8 func([]uint32, int, *int, *int, **Error) string | |||
| 649 | 645 | // | |
| 650 | 646 | // The result will be terminated with a nul byte. | |
| 651 | 647 | func Ucs4ToUtf8(StrVar []uint32, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (string, error) { | |
| 652 | - | core.LazyRegister(&xUcs4ToUtf8, "GLIB", "g_ucs4_to_utf8", false) | |
| 653 | 648 | var cerr *Error | |
| 654 | 649 | ||
| 655 | 650 | cret := xUcs4ToUtf8(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | |
| @@ -668,8 +663,6 @@ var xUnicharBreakType func(uint32) UnicodeBreakType | |||
| 668 | 663 | // resolution algorithms and normally you would use a function such | |
| 669 | 664 | // as pango_break() instead of caring about break types yourself. | |
| 670 | 665 | func UnicharBreakType(CVar uint32) UnicodeBreakType { | |
| 671 | - | core.LazyRegister(&xUnicharBreakType, "GLIB", "g_unichar_break_type", false) | |
| 672 | - | ||
| 673 | 666 | cret := xUnicharBreakType(CVar) | |
| 674 | 667 | return cret | |
| 675 | 668 | } | |
| @@ -678,8 +671,6 @@ var xUnicharCombiningClass func(uint32) int | |||
| 678 | 671 | ||
| 679 | 672 | // Determines the canonical combining class of a Unicode character. | |
| 680 | 673 | func UnicharCombiningClass(UcVar uint32) int { | |
| 681 | - | core.LazyRegister(&xUnicharCombiningClass, "GLIB", "g_unichar_combining_class", false) | |
| 682 | - | ||
| 683 | 674 | cret := xUnicharCombiningClass(UcVar) | |
| 684 | 675 | return cret | |
| 685 | 676 | } | |
| @@ -703,8 +694,6 @@ var xUnicharCompose func(uint32, uint32, *uint32) bool | |||
| 703 | 694 | // [UAX#15](http://unicode.org/reports/tr15/) | |
| 704 | 695 | // for details. | |
| 705 | 696 | func UnicharCompose(AVar uint32, BVar uint32, ChVar *uint32) bool { | |
| 706 | - | core.LazyRegister(&xUnicharCompose, "GLIB", "g_unichar_compose", false) | |
| 707 | - | ||
| 708 | 697 | cret := xUnicharCompose(AVar, BVar, ChVar) | |
| 709 | 698 | return cret | |
| 710 | 699 | } | |
| @@ -735,8 +724,6 @@ var xUnicharDecompose func(uint32, *uint32, *uint32) bool | |||
| 735 | 724 | // [UAX#15](http://unicode.org/reports/tr15/) | |
| 736 | 725 | // for details. | |
| 737 | 726 | func UnicharDecompose(ChVar uint32, AVar *uint32, BVar *uint32) bool { | |
| 738 | - | core.LazyRegister(&xUnicharDecompose, "GLIB", "g_unichar_decompose", false) | |
| 739 | - | ||
| 740 | 727 | cret := xUnicharDecompose(ChVar, AVar, BVar) | |
| 741 | 728 | return cret | |
| 742 | 729 | } | |
| @@ -746,8 +733,6 @@ var xUnicharDigitValue func(uint32) int | |||
| 746 | 733 | // Determines the numeric value of a character as a decimal | |
| 747 | 734 | // digit. | |
| 748 | 735 | func UnicharDigitValue(CVar uint32) int { | |
| 749 | - | core.LazyRegister(&xUnicharDigitValue, "GLIB", "g_unichar_digit_value", false) | |
| 750 | - | ||
| 751 | 736 | cret := xUnicharDigitValue(CVar) | |
| 752 | 737 | return cret | |
| 753 | 738 | } | |
| @@ -774,8 +759,6 @@ var xUnicharFullyDecompose func(uint32, bool, *uint32, uint) uint | |||
| 774 | 759 | // [UAX#15](http://unicode.org/reports/tr15/) | |
| 775 | 760 | // for details. | |
| 776 | 761 | func UnicharFullyDecompose(ChVar uint32, CompatVar bool, ResultVar *uint32, ResultLenVar uint) uint { | |
| 777 | - | core.LazyRegister(&xUnicharFullyDecompose, "GLIB", "g_unichar_fully_decompose", false) | |
| 778 | - | ||
| 779 | 762 | cret := xUnicharFullyDecompose(ChVar, CompatVar, ResultVar, ResultLenVar) | |
| 780 | 763 | return cret | |
| 781 | 764 | } | |
| @@ -792,8 +775,6 @@ var xUnicharGetMirrorChar func(uint32, *uint32) bool | |||
| 792 | 775 | // glyph and @mirrored_ch is set, it puts that character in the address | |
| 793 | 776 | // pointed to by @mirrored_ch. Otherwise the original character is put. | |
| 794 | 777 | func UnicharGetMirrorChar(ChVar uint32, MirroredChVar *uint32) bool { | |
| 795 | - | core.LazyRegister(&xUnicharGetMirrorChar, "GLIB", "g_unichar_get_mirror_char", false) | |
| 796 | - | ||
| 797 | 778 | cret := xUnicharGetMirrorChar(ChVar, MirroredChVar) | |
| 798 | 779 | return cret | |
| 799 | 780 | } | |
| @@ -808,8 +789,6 @@ var xUnicharGetScript func(uint32) UnicodeScript | |||
| 808 | 789 | // This function is equivalent to pango_script_for_unichar() and the | |
| 809 | 790 | // two are interchangeable. | |
| 810 | 791 | func UnicharGetScript(ChVar uint32) UnicodeScript { | |
| 811 | - | core.LazyRegister(&xUnicharGetScript, "GLIB", "g_unichar_get_script", false) | |
| 812 | - | ||
| 813 | 792 | cret := xUnicharGetScript(ChVar) | |
| 814 | 793 | return cret | |
| 815 | 794 | } | |
| @@ -820,8 +799,6 @@ var xUnicharIsalnum func(uint32) bool | |||
| 820 | 799 | // Given some UTF-8 text, obtain a character value | |
| 821 | 800 | // with g_utf8_get_char(). | |
| 822 | 801 | func UnicharIsalnum(CVar uint32) bool { | |
| 823 | - | core.LazyRegister(&xUnicharIsalnum, "GLIB", "g_unichar_isalnum", false) | |
| 824 | - | ||
| 825 | 802 | cret := xUnicharIsalnum(CVar) | |
| 826 | 803 | return cret | |
| 827 | 804 | } | |
| @@ -832,8 +809,6 @@ var xUnicharIsalpha func(uint32) bool | |||
| 832 | 809 | // Given some UTF-8 text, obtain a character value with | |
| 833 | 810 | // g_utf8_get_char(). | |
| 834 | 811 | func UnicharIsalpha(CVar uint32) bool { | |
| 835 | - | core.LazyRegister(&xUnicharIsalpha, "GLIB", "g_unichar_isalpha", false) | |
| 836 | - | ||
| 837 | 812 | cret := xUnicharIsalpha(CVar) | |
| 838 | 813 | return cret | |
| 839 | 814 | } | |
| @@ -844,8 +819,6 @@ var xUnicharIscntrl func(uint32) bool | |||
| 844 | 819 | // Given some UTF-8 text, obtain a character value with | |
| 845 | 820 | // g_utf8_get_char(). | |
| 846 | 821 | func UnicharIscntrl(CVar uint32) bool { | |
| 847 | - | core.LazyRegister(&xUnicharIscntrl, "GLIB", "g_unichar_iscntrl", false) | |
| 848 | - | ||
| 849 | 822 | cret := xUnicharIscntrl(CVar) | |
| 850 | 823 | return cret | |
| 851 | 824 | } | |
| @@ -855,8 +828,6 @@ var xUnicharIsdefined func(uint32) bool | |||
| 855 | 828 | // Determines if a given character is assigned in the Unicode | |
| 856 | 829 | // standard. | |
| 857 | 830 | func UnicharIsdefined(CVar uint32) bool { | |
| 858 | - | core.LazyRegister(&xUnicharIsdefined, "GLIB", "g_unichar_isdefined", false) | |
| 859 | - | ||
| 860 | 831 | cret := xUnicharIsdefined(CVar) | |
| 861 | 832 | return cret | |
| 862 | 833 | } | |
| @@ -867,8 +838,6 @@ var xUnicharIsdigit func(uint32) bool | |||
| 867 | 838 | // covers ASCII 0-9 and also digits in other languages/scripts. Given | |
| 868 | 839 | // some UTF-8 text, obtain a character value with g_utf8_get_char(). | |
| 869 | 840 | func UnicharIsdigit(CVar uint32) bool { | |
| 870 | - | core.LazyRegister(&xUnicharIsdigit, "GLIB", "g_unichar_isdigit", false) | |
| 871 | - | ||
| 872 | 841 | cret := xUnicharIsdigit(CVar) | |
| 873 | 842 | return cret | |
| 874 | 843 | } | |
| @@ -881,8 +850,6 @@ var xUnicharIsgraph func(uint32) bool | |||
| 881 | 850 | // spaces. Given some UTF-8 text, obtain a character value with | |
| 882 | 851 | // g_utf8_get_char(). | |
| 883 | 852 | func UnicharIsgraph(CVar uint32) bool { | |
| 884 | - | core.LazyRegister(&xUnicharIsgraph, "GLIB", "g_unichar_isgraph", false) | |
| 885 | - | ||
| 886 | 853 | cret := xUnicharIsgraph(CVar) | |
| 887 | 854 | return cret | |
| 888 | 855 | } | |
| @@ -893,8 +860,6 @@ var xUnicharIslower func(uint32) bool | |||
| 893 | 860 | // Given some UTF-8 text, obtain a character value with | |
| 894 | 861 | // g_utf8_get_char(). | |
| 895 | 862 | func UnicharIslower(CVar uint32) bool { | |
| 896 | - | core.LazyRegister(&xUnicharIslower, "GLIB", "g_unichar_islower", false) | |
| 897 | - | ||
| 898 | 863 | cret := xUnicharIslower(CVar) | |
| 899 | 864 | return cret | |
| 900 | 865 | } | |
| @@ -911,8 +876,6 @@ var xUnicharIsmark func(uint32) bool | |||
| 911 | 876 | // for writing most European languages as well as many non-Latin | |
| 912 | 877 | // scripts. | |
| 913 | 878 | func UnicharIsmark(CVar uint32) bool { | |
| 914 | - | core.LazyRegister(&xUnicharIsmark, "GLIB", "g_unichar_ismark", false) | |
| 915 | - | ||
| 916 | 879 | cret := xUnicharIsmark(CVar) | |
| 917 | 880 | return cret | |
| 918 | 881 | } | |
| @@ -924,8 +887,6 @@ var xUnicharIsprint func(uint32) bool | |||
| 924 | 887 | // Given some UTF-8 text, obtain a character value with | |
| 925 | 888 | // g_utf8_get_char(). | |
| 926 | 889 | func UnicharIsprint(CVar uint32) bool { | |
| 927 | - | core.LazyRegister(&xUnicharIsprint, "GLIB", "g_unichar_isprint", false) | |
| 928 | - | ||
| 929 | 890 | cret := xUnicharIsprint(CVar) | |
| 930 | 891 | return cret | |
| 931 | 892 | } | |
| @@ -936,8 +897,6 @@ var xUnicharIspunct func(uint32) bool | |||
| 936 | 897 | // Given some UTF-8 text, obtain a character value with | |
| 937 | 898 | // g_utf8_get_char(). | |
| 938 | 899 | func UnicharIspunct(CVar uint32) bool { | |
| 939 | - | core.LazyRegister(&xUnicharIspunct, "GLIB", "g_unichar_ispunct", false) | |
| 940 | - | ||
| 941 | 900 | cret := xUnicharIspunct(CVar) | |
| 942 | 901 | return cret | |
| 943 | 902 | } | |
| @@ -952,8 +911,6 @@ var xUnicharIsspace func(uint32) bool | |||
| 952 | 911 | // Pango or equivalent to get word breaking right, the algorithm | |
| 953 | 912 | // is fairly complex.) | |
| 954 | 913 | func UnicharIsspace(CVar uint32) bool { | |
| 955 | - | core.LazyRegister(&xUnicharIsspace, "GLIB", "g_unichar_isspace", false) | |
| 956 | - | ||
| 957 | 914 | cret := xUnicharIsspace(CVar) | |
| 958 | 915 | return cret | |
| 959 | 916 | } | |
| @@ -967,8 +924,6 @@ var xUnicharIstitle func(uint32) bool | |||
| 967 | 924 | // first letter is capitalized. The titlecase form of the DZ | |
| 968 | 925 | // digraph is U+01F2 LATIN CAPITAL LETTTER D WITH SMALL LETTER Z. | |
| 969 | 926 | func UnicharIstitle(CVar uint32) bool { | |
| 970 | - | core.LazyRegister(&xUnicharIstitle, "GLIB", "g_unichar_istitle", false) | |
| 971 | - | ||
| 972 | 927 | cret := xUnicharIstitle(CVar) | |
| 973 | 928 | return cret | |
| 974 | 929 | } | |
| @@ -977,8 +932,6 @@ var xUnicharIsupper func(uint32) bool | |||
| 977 | 932 | ||
| 978 | 933 | // Determines if a character is uppercase. | |
| 979 | 934 | func UnicharIsupper(CVar uint32) bool { | |
| 980 | - | core.LazyRegister(&xUnicharIsupper, "GLIB", "g_unichar_isupper", false) | |
| 981 | - | ||
| 982 | 935 | cret := xUnicharIsupper(CVar) | |
| 983 | 936 | return cret | |
| 984 | 937 | } | |
| @@ -988,8 +941,6 @@ var xUnicharIswide func(uint32) bool | |||
| 988 | 941 | // Determines if a character is typically rendered in a double-width | |
| 989 | 942 | // cell. | |
| 990 | 943 | func UnicharIswide(CVar uint32) bool { | |
| 991 | - | core.LazyRegister(&xUnicharIswide, "GLIB", "g_unichar_iswide", false) | |
| 992 | - | ||
| 993 | 944 | cret := xUnicharIswide(CVar) | |
| 994 | 945 | return cret | |
| 995 | 946 | } | |
| @@ -1007,8 +958,6 @@ var xUnicharIswideCjk func(uint32) bool | |||
| 1007 | 958 | // this test, but not the other way around. Note that some characters may | |
| 1008 | 959 | // pass both this test and g_unichar_iszerowidth(). | |
| 1009 | 960 | func UnicharIswideCjk(CVar uint32) bool { | |
| 1010 | - | core.LazyRegister(&xUnicharIswideCjk, "GLIB", "g_unichar_iswide_cjk", false) | |
| 1011 | - | ||
| 1012 | 961 | cret := xUnicharIswideCjk(CVar) | |
| 1013 | 962 | return cret | |
| 1014 | 963 | } | |
| @@ -1017,8 +966,6 @@ var xUnicharIsxdigit func(uint32) bool | |||
| 1017 | 966 | ||
| 1018 | 967 | // Determines if a character is a hexadecimal digit. | |
| 1019 | 968 | func UnicharIsxdigit(CVar uint32) bool { | |
| 1020 | - | core.LazyRegister(&xUnicharIsxdigit, "GLIB", "g_unichar_isxdigit", false) | |
| 1021 | - | ||
| 1022 | 969 | cret := xUnicharIsxdigit(CVar) | |
| 1023 | 970 | return cret | |
| 1024 | 971 | } | |
| @@ -1035,8 +982,6 @@ var xUnicharIszerowidth func(uint32) bool | |||
| 1035 | 982 | // when displayed on a grid display (terminals). However, note that not all | |
| 1036 | 983 | // terminals support zero-width rendering of zero-width marks. | |
| 1037 | 984 | func UnicharIszerowidth(CVar uint32) bool { | |
| 1038 | - | core.LazyRegister(&xUnicharIszerowidth, "GLIB", "g_unichar_iszerowidth", false) | |
| 1039 | - | ||
| 1040 | 985 | cret := xUnicharIszerowidth(CVar) | |
| 1041 | 986 | return cret | |
| 1042 | 987 | } | |
| @@ -1045,8 +990,6 @@ var xUnicharToUtf8 func(uint32, *string) int | |||
| 1045 | 990 | ||
| 1046 | 991 | // Converts a single character to UTF-8. | |
| 1047 | 992 | func UnicharToUtf8(CVar uint32, OutbufVar *string) int { | |
| 1048 | - | core.LazyRegister(&xUnicharToUtf8, "GLIB", "g_unichar_to_utf8", false) | |
| 1049 | - | ||
| 1050 | 993 | cret := xUnicharToUtf8(CVar, OutbufVar) | |
| 1051 | 994 | return cret | |
| 1052 | 995 | } | |
| @@ -1055,8 +998,6 @@ var xUnicharTolower func(uint32) uint32 | |||
| 1055 | 998 | ||
| 1056 | 999 | // Converts a character to lower case. | |
| 1057 | 1000 | func UnicharTolower(CVar uint32) uint32 { | |
| 1058 | - | core.LazyRegister(&xUnicharTolower, "GLIB", "g_unichar_tolower", false) | |
| 1059 | - | ||
| 1060 | 1001 | cret := xUnicharTolower(CVar) | |
| 1061 | 1002 | return cret | |
| 1062 | 1003 | } | |
| @@ -1065,8 +1006,6 @@ var xUnicharTotitle func(uint32) uint32 | |||
| 1065 | 1006 | ||
| 1066 | 1007 | // Converts a character to the titlecase. | |
| 1067 | 1008 | func UnicharTotitle(CVar uint32) uint32 { | |
| 1068 | - | core.LazyRegister(&xUnicharTotitle, "GLIB", "g_unichar_totitle", false) | |
| 1069 | - | ||
| 1070 | 1009 | cret := xUnicharTotitle(CVar) | |
| 1071 | 1010 | return cret | |
| 1072 | 1011 | } | |
| @@ -1075,8 +1014,6 @@ var xUnicharToupper func(uint32) uint32 | |||
| 1075 | 1014 | ||
| 1076 | 1015 | // Converts a character to uppercase. | |
| 1077 | 1016 | func UnicharToupper(CVar uint32) uint32 { | |
| 1078 | - | core.LazyRegister(&xUnicharToupper, "GLIB", "g_unichar_toupper", false) | |
| 1079 | - | ||
| 1080 | 1017 | cret := xUnicharToupper(CVar) | |
| 1081 | 1018 | return cret | |
| 1082 | 1019 | } | |
| @@ -1085,8 +1022,6 @@ var xUnicharType func(uint32) UnicodeType | |||
| 1085 | 1022 | ||
| 1086 | 1023 | // Classifies a Unicode character by type. | |
| 1087 | 1024 | func UnicharType(CVar uint32) UnicodeType { | |
| 1088 | - | core.LazyRegister(&xUnicharType, "GLIB", "g_unichar_type", false) | |
| 1089 | - | ||
| 1090 | 1025 | cret := xUnicharType(CVar) | |
| 1091 | 1026 | return cret | |
| 1092 | 1027 | } | |
| @@ -1098,8 +1033,6 @@ var xUnicharValidate func(uint32) bool | |||
| 1098 | 1033 | // Some possible integer values of @ch will not be valid. U+0000 is considered a | |
| 1099 | 1034 | // valid character, though it’s normally a string terminator. | |
| 1100 | 1035 | func UnicharValidate(ChVar uint32) bool { | |
| 1101 | - | core.LazyRegister(&xUnicharValidate, "GLIB", "g_unichar_validate", false) | |
| 1102 | - | ||
| 1103 | 1036 | cret := xUnicharValidate(ChVar) | |
| 1104 | 1037 | return cret | |
| 1105 | 1038 | } | |
| @@ -1109,8 +1042,6 @@ var xUnicharXdigitValue func(uint32) int | |||
| 1109 | 1042 | // Determines the numeric value of a character as a hexadecimal | |
| 1110 | 1043 | // digit. | |
| 1111 | 1044 | func UnicharXdigitValue(CVar uint32) int { | |
| 1112 | - | core.LazyRegister(&xUnicharXdigitValue, "GLIB", "g_unichar_xdigit_value", false) | |
| 1113 | - | ||
| 1114 | 1045 | cret := xUnicharXdigitValue(CVar) | |
| 1115 | 1046 | return cret | |
| 1116 | 1047 | } | |
| @@ -1119,8 +1050,6 @@ var xUnicodeCanonicalDecomposition func(uint32, uint) uint32 | |||
| 1119 | 1050 | ||
| 1120 | 1051 | // Computes the canonical decomposition of a Unicode character. | |
| 1121 | 1052 | func UnicodeCanonicalDecomposition(ChVar uint32, ResultLenVar uint) uint32 { | |
| 1122 | - | core.LazyRegister(&xUnicodeCanonicalDecomposition, "GLIB", "g_unicode_canonical_decomposition", false) | |
| 1123 | - | ||
| 1124 | 1053 | cret := xUnicodeCanonicalDecomposition(ChVar, ResultLenVar) | |
| 1125 | 1054 | return cret | |
| 1126 | 1055 | } | |
| @@ -1132,8 +1061,6 @@ var xUnicodeCanonicalOrdering func([]uint32, uint) | |||
| 1132 | 1061 | // according to their combining classes. See the Unicode | |
| 1133 | 1062 | // manual for more information. | |
| 1134 | 1063 | func UnicodeCanonicalOrdering(StringVar []uint32, LenVar uint) { | |
| 1135 | - | core.LazyRegister(&xUnicodeCanonicalOrdering, "GLIB", "g_unicode_canonical_ordering", false) | |
| 1136 | - | ||
| 1137 | 1064 | xUnicodeCanonicalOrdering(StringVar, LenVar) | |
| 1138 | 1065 | } | |
| 1139 | 1066 | ||
| @@ -1149,8 +1076,6 @@ var xUnicodeScriptFromIso15924 func(uint32) UnicodeScript | |||
| 1149 | 1076 | // [Codes for the representation of names of scripts](http://unicode.org/iso15924/codelists.html) | |
| 1150 | 1077 | // for details. | |
| 1151 | 1078 | func UnicodeScriptFromIso15924(Iso15924Var uint32) UnicodeScript { | |
| 1152 | - | core.LazyRegister(&xUnicodeScriptFromIso15924, "GLIB", "g_unicode_script_from_iso15924", false) | |
| 1153 | - | ||
| 1154 | 1079 | cret := xUnicodeScriptFromIso15924(Iso15924Var) | |
| 1155 | 1080 | return cret | |
| 1156 | 1081 | } | |
| @@ -1167,8 +1092,6 @@ var xUnicodeScriptToIso15924 func(UnicodeScript) uint32 | |||
| 1167 | 1092 | // [Codes for the representation of names of scripts](http://unicode.org/iso15924/codelists.html) | |
| 1168 | 1093 | // for details. | |
| 1169 | 1094 | func UnicodeScriptToIso15924(ScriptVar UnicodeScript) uint32 { | |
| 1170 | - | core.LazyRegister(&xUnicodeScriptToIso15924, "GLIB", "g_unicode_script_to_iso15924", false) | |
| 1171 | - | ||
| 1172 | 1095 | cret := xUnicodeScriptToIso15924(ScriptVar) | |
| 1173 | 1096 | return cret | |
| 1174 | 1097 | } | |
| @@ -1179,7 +1102,6 @@ var xUtf16ToUcs4 func([]uint16, int, *int, *int, **Error) uint32 | |||
| 1179 | 1102 | // | |
| 1180 | 1103 | // The result will be nul-terminated. | |
| 1181 | 1104 | func Utf16ToUcs4(StrVar []uint16, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint32, error) { | |
| 1182 | - | core.LazyRegister(&xUtf16ToUcs4, "GLIB", "g_utf16_to_ucs4", false) | |
| 1183 | 1105 | var cerr *Error | |
| 1184 | 1106 | ||
| 1185 | 1107 | cret := xUtf16ToUcs4(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | |
| @@ -1206,7 +1128,6 @@ var xUtf16ToUtf8 func([]uint16, int, *int, *int, **Error) string | |||
| 1206 | 1128 | // be correctly interpreted as UTF-16, i.e. it doesn’t contain | |
| 1207 | 1129 | // unpaired surrogates or partial character sequences. | |
| 1208 | 1130 | func Utf16ToUtf8(StrVar []uint16, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (string, error) { | |
| 1209 | - | core.LazyRegister(&xUtf16ToUtf8, "GLIB", "g_utf16_to_utf8", false) | |
| 1210 | 1131 | var cerr *Error | |
| 1211 | 1132 | ||
| 1212 | 1133 | cret := xUtf16ToUtf8(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | |
| @@ -1230,8 +1151,6 @@ var xUtf8Casefold func(string, int) string | |||
| 1230 | 1151 | // takes case sensitivity into account. GLib does not currently | |
| 1231 | 1152 | // provide such a function. | |
| 1232 | 1153 | func Utf8Casefold(StrVar string, LenVar int) string { | |
| 1233 | - | core.LazyRegister(&xUtf8Casefold, "GLIB", "g_utf8_casefold", false) | |
| 1234 | - | ||
| 1235 | 1154 | cret := xUtf8Casefold(StrVar, LenVar) | |
| 1236 | 1155 | return cret | |
| 1237 | 1156 | } | |
| @@ -1249,8 +1168,6 @@ var xUtf8Collate func(string, string) int | |||
| 1249 | 1168 | // sequences, the result is undefined. This can happen if the strings are in | |
| 1250 | 1169 | // different language scripts, for example. | |
| 1251 | 1170 | func Utf8Collate(Str1Var string, Str2Var string) int { | |
| 1252 | - | core.LazyRegister(&xUtf8Collate, "GLIB", "g_utf8_collate", false) | |
| 1253 | - | ||
| 1254 | 1171 | cret := xUtf8Collate(Str1Var, Str2Var) | |
| 1255 | 1172 | return cret | |
| 1256 | 1173 | } | |
| @@ -1271,8 +1188,6 @@ var xUtf8CollateKey func(string, int) string | |||
| 1271 | 1188 | // encoding, especially UTF-8. The returned value is meant to be | |
| 1272 | 1189 | // used only for comparisons. | |
| 1273 | 1190 | func Utf8CollateKey(StrVar string, LenVar int) string { | |
| 1274 | - | core.LazyRegister(&xUtf8CollateKey, "GLIB", "g_utf8_collate_key", false) | |
| 1275 | - | ||
| 1276 | 1191 | cret := xUtf8CollateKey(StrVar, LenVar) | |
| 1277 | 1192 | return cret | |
| 1278 | 1193 | } | |
| @@ -1295,8 +1210,6 @@ var xUtf8CollateKeyForFilename func(string, int) string | |||
| 1295 | 1210 | // encoding, especially UTF-8. The returned value is meant to be | |
| 1296 | 1211 | // used only for comparisons. | |
| 1297 | 1212 | func Utf8CollateKeyForFilename(StrVar string, LenVar int) string { | |
| 1298 | - | core.LazyRegister(&xUtf8CollateKeyForFilename, "GLIB", "g_utf8_collate_key_for_filename", false) | |
| 1299 | - | ||
| 1300 | 1213 | cret := xUtf8CollateKeyForFilename(StrVar, LenVar) | |
| 1301 | 1214 | return cret | |
| 1302 | 1215 | } | |
| @@ -1314,8 +1227,6 @@ var xUtf8FindNextChar func(string, uintptr) string | |||
| 1314 | 1227 | // @end is non-`NULL`, the return value will be `NULL` if the end of the string | |
| 1315 | 1228 | // is reached. | |
| 1316 | 1229 | func Utf8FindNextChar(PVar string, EndVar *string) string { | |
| 1317 | - | core.LazyRegister(&xUtf8FindNextChar, "GLIB", "g_utf8_find_next_char", false) | |
| 1318 | - | ||
| 1319 | 1230 | EndVarPtr := core.GStrdupNullable(EndVar) | |
| 1320 | 1231 | defer core.GFreeNullable(EndVarPtr) | |
| 1321 | 1232 | ||
| @@ -1333,8 +1244,6 @@ var xUtf8FindPrevChar func(string, string) string | |||
| 1333 | 1244 | // is made to see if the character found is actually valid other than | |
| 1334 | 1245 | // it starts with an appropriate byte. | |
| 1335 | 1246 | func Utf8FindPrevChar(StrVar string, PVar string) string { | |
| 1336 | - | core.LazyRegister(&xUtf8FindPrevChar, "GLIB", "g_utf8_find_prev_char", false) | |
| 1337 | - | ||
| 1338 | 1247 | cret := xUtf8FindPrevChar(StrVar, PVar) | |
| 1339 | 1248 | return cret | |
| 1340 | 1249 | } | |
| @@ -1348,8 +1257,6 @@ var xUtf8GetChar func(string) uint32 | |||
| 1348 | 1257 | // valid Unicode characters, you should use [func@GLib.utf8_get_char_validated] | |
| 1349 | 1258 | // instead. | |
| 1350 | 1259 | func Utf8GetChar(PVar string) uint32 { | |
| 1351 | - | core.LazyRegister(&xUtf8GetChar, "GLIB", "g_utf8_get_char", false) | |
| 1352 | - | ||
| 1353 | 1260 | cret := xUtf8GetChar(PVar) | |
| 1354 | 1261 | return cret | |
| 1355 | 1262 | } | |
| @@ -1366,8 +1273,6 @@ var xUtf8GetCharValidated func(string, int) uint32 | |||
| 1366 | 1273 | // @max_len is positive and any of the bytes in the first UTF-8 character | |
| 1367 | 1274 | // sequence are nul. | |
| 1368 | 1275 | func Utf8GetCharValidated(PVar string, MaxLenVar int) uint32 { | |
| 1369 | - | core.LazyRegister(&xUtf8GetCharValidated, "GLIB", "g_utf8_get_char_validated", false) | |
| 1370 | - | ||
| 1371 | 1276 | cret := xUtf8GetCharValidated(PVar, MaxLenVar) | |
| 1372 | 1277 | return cret | |
| 1373 | 1278 | } | |
| @@ -1384,8 +1289,6 @@ var xUtf8MakeValid func(string, int) string | |||
| 1384 | 1289 | // assumption that it is close enough to ASCII or UTF-8 to be mostly | |
| 1385 | 1290 | // readable as-is. | |
| 1386 | 1291 | func Utf8MakeValid(StrVar string, LenVar int) string { | |
| 1387 | - | core.LazyRegister(&xUtf8MakeValid, "GLIB", "g_utf8_make_valid", false) | |
| 1388 | - | ||
| 1389 | 1292 | cret := xUtf8MakeValid(StrVar, LenVar) | |
| 1390 | 1293 | return cret | |
| 1391 | 1294 | } | |
| @@ -1418,8 +1321,6 @@ var xUtf8Normalize func(string, int, NormalizeMode) string | |||
| 1418 | 1321 | // a legacy encoding or pass it to a system with | |
| 1419 | 1322 | // less capable Unicode handling. | |
| 1420 | 1323 | func Utf8Normalize(StrVar string, LenVar int, ModeVar NormalizeMode) string { | |
| 1421 | - | core.LazyRegister(&xUtf8Normalize, "GLIB", "g_utf8_normalize", false) | |
| 1422 | - | ||
| 1423 | 1324 | cret := xUtf8Normalize(StrVar, LenVar, ModeVar) | |
| 1424 | 1325 | return cret | |
| 1425 | 1326 | } | |
| @@ -1440,8 +1341,6 @@ var xUtf8OffsetToPointer func(string, int) string | |||
| 1440 | 1341 | // This limitation exists as this function is called frequently during | |
| 1441 | 1342 | // text rendering and therefore has to be as fast as possible. | |
| 1442 | 1343 | func Utf8OffsetToPointer(StrVar string, OffsetVar int) string { | |
| 1443 | - | core.LazyRegister(&xUtf8OffsetToPointer, "GLIB", "g_utf8_offset_to_pointer", false) | |
| 1444 | - | ||
| 1445 | 1344 | cret := xUtf8OffsetToPointer(StrVar, OffsetVar) | |
| 1446 | 1345 | return cret | |
| 1447 | 1346 | } | |
| @@ -1454,8 +1353,6 @@ var xUtf8PointerToOffset func(string, string) int | |||
| 1454 | 1353 | // Since 2.10, this function allows @pos to be before @str, and returns | |
| 1455 | 1354 | // a negative offset in this case. | |
| 1456 | 1355 | func Utf8PointerToOffset(StrVar string, PosVar string) int { | |
| 1457 | - | core.LazyRegister(&xUtf8PointerToOffset, "GLIB", "g_utf8_pointer_to_offset", false) | |
| 1458 | - | ||
| 1459 | 1356 | cret := xUtf8PointerToOffset(StrVar, PosVar) | |
| 1460 | 1357 | return cret | |
| 1461 | 1358 | } | |
| @@ -1470,8 +1367,6 @@ var xUtf8PrevChar func(string) string | |||
| 1470 | 1367 | // character of the string, you must use [func@GLib.utf8_find_prev_char] | |
| 1471 | 1368 | // instead. | |
| 1472 | 1369 | func Utf8PrevChar(PVar string) string { | |
| 1473 | - | core.LazyRegister(&xUtf8PrevChar, "GLIB", "g_utf8_prev_char", false) | |
| 1474 | - | ||
| 1475 | 1370 | cret := xUtf8PrevChar(PVar) | |
| 1476 | 1371 | return cret | |
| 1477 | 1372 | } | |
| @@ -1483,8 +1378,6 @@ var xUtf8Strchr func(string, int, uint32) string | |||
| 1483 | 1378 | // | |
| 1484 | 1379 | // If @len is `-1`, allow unbounded search. | |
| 1485 | 1380 | func Utf8Strchr(PVar string, LenVar int, CVar uint32) string { | |
| 1486 | - | core.LazyRegister(&xUtf8Strchr, "GLIB", "g_utf8_strchr", false) | |
| 1487 | - | ||
| 1488 | 1381 | cret := xUtf8Strchr(PVar, LenVar, CVar) | |
| 1489 | 1382 | return cret | |
| 1490 | 1383 | } | |
| @@ -1496,8 +1389,6 @@ var xUtf8Strdown func(string, int) string | |||
| 1496 | 1389 | // on the current locale, and may result in the number of | |
| 1497 | 1390 | // characters in the string changing. | |
| 1498 | 1391 | func Utf8Strdown(StrVar string, LenVar int) string { | |
| 1499 | - | core.LazyRegister(&xUtf8Strdown, "GLIB", "g_utf8_strdown", false) | |
| 1500 | - | ||
| 1501 | 1392 | cret := xUtf8Strdown(StrVar, LenVar) | |
| 1502 | 1393 | return cret | |
| 1503 | 1394 | } | |
| @@ -1508,8 +1399,6 @@ var xUtf8Strlen func(string, int) int | |||
| 1508 | 1399 | // the terminating nul character. If the @max’th byte falls in the | |
| 1509 | 1400 | // middle of a character, the last (partial) character is not counted. | |
| 1510 | 1401 | func Utf8Strlen(PVar string, MaxVar int) int { | |
| 1511 | - | core.LazyRegister(&xUtf8Strlen, "GLIB", "g_utf8_strlen", false) | |
| 1512 | - | ||
| 1513 | 1402 | cret := xUtf8Strlen(PVar, MaxVar) | |
| 1514 | 1403 | return cret | |
| 1515 | 1404 | } | |
| @@ -1526,8 +1415,6 @@ var xUtf8Strncpy func(string, string, uint) string | |||
| 1526 | 1415 | // Note you must ensure @dest is at least 4 * @n + 1 to fit the | |
| 1527 | 1416 | // largest possible UTF-8 characters | |
| 1528 | 1417 | func Utf8Strncpy(DestVar string, SrcVar string, NVar uint) string { | |
| 1529 | - | core.LazyRegister(&xUtf8Strncpy, "GLIB", "g_utf8_strncpy", false) | |
| 1530 | - | ||
| 1531 | 1418 | cret := xUtf8Strncpy(DestVar, SrcVar, NVar) | |
| 1532 | 1419 | return cret | |
| 1533 | 1420 | } | |
| @@ -1539,8 +1426,6 @@ var xUtf8Strrchr func(string, int, uint32) string | |||
| 1539 | 1426 | // | |
| 1540 | 1427 | // If @len is `-1`, allow unbounded search. | |
| 1541 | 1428 | func Utf8Strrchr(PVar string, LenVar int, CVar uint32) string { | |
| 1542 | - | core.LazyRegister(&xUtf8Strrchr, "GLIB", "g_utf8_strrchr", false) | |
| 1543 | - | ||
| 1544 | 1429 | cret := xUtf8Strrchr(PVar, LenVar, CVar) | |
| 1545 | 1430 | return cret | |
| 1546 | 1431 | } | |
| @@ -1562,8 +1447,6 @@ var xUtf8Strreverse func(string, int) string | |||
| 1562 | 1447 | // newly-allocated memory, which should be freed with [func@GLib.free] when | |
| 1563 | 1448 | // no longer needed. | |
| 1564 | 1449 | func Utf8Strreverse(StrVar string, LenVar int) string { | |
| 1565 | - | core.LazyRegister(&xUtf8Strreverse, "GLIB", "g_utf8_strreverse", false) | |
| 1566 | - | ||
| 1567 | 1450 | cret := xUtf8Strreverse(StrVar, LenVar) | |
| 1568 | 1451 | return cret | |
| 1569 | 1452 | } | |
| @@ -1576,8 +1459,6 @@ var xUtf8Strup func(string, int) string | |||
| 1576 | 1459 | // characters in the string increasing. (For instance, the | |
| 1577 | 1460 | // German ess-zet will be changed to SS.) | |
| 1578 | 1461 | func Utf8Strup(StrVar string, LenVar int) string { | |
| 1579 | - | core.LazyRegister(&xUtf8Strup, "GLIB", "g_utf8_strup", false) | |
| 1580 | - | ||
| 1581 | 1462 | cret := xUtf8Strup(StrVar, LenVar) | |
| 1582 | 1463 | return cret | |
| 1583 | 1464 | } | |
| @@ -1590,8 +1471,6 @@ var xUtf8Substring func(string, int, int) string | |||
| 1590 | 1471 | // Since GLib 2.72, `-1` can be passed to @end_pos to indicate the | |
| 1591 | 1472 | // end of the string. | |
| 1592 | 1473 | func Utf8Substring(StrVar string, StartPosVar int, EndPosVar int) string { | |
| 1593 | - | core.LazyRegister(&xUtf8Substring, "GLIB", "g_utf8_substring", false) | |
| 1594 | - | ||
| 1595 | 1474 | cret := xUtf8Substring(StrVar, StartPosVar, EndPosVar) | |
| 1596 | 1475 | return cret | |
| 1597 | 1476 | } | |
| @@ -1603,7 +1482,6 @@ var xUtf8ToUcs4 func(string, int, *int, *int, **Error) uint32 | |||
| 1603 | 1482 | // A trailing nul character (U+0000) will be added to the string after the | |
| 1604 | 1483 | // converted text. | |
| 1605 | 1484 | func Utf8ToUcs4(StrVar string, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint32, error) { | |
| 1606 | - | core.LazyRegister(&xUtf8ToUcs4, "GLIB", "g_utf8_to_ucs4", false) | |
| 1607 | 1485 | var cerr *Error | |
| 1608 | 1486 | ||
| 1609 | 1487 | cret := xUtf8ToUcs4(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | |
| @@ -1622,8 +1500,6 @@ var xUtf8ToUcs4Fast func(string, int, *int) uint32 | |||
| 1622 | 1500 | // but does no error checking on the input. A trailing nul character (U+0000) | |
| 1623 | 1501 | // will be added to the string after the converted text. | |
| 1624 | 1502 | func Utf8ToUcs4Fast(StrVar string, LenVar int, ItemsWrittenVar *int) uint32 { | |
| 1625 | - | core.LazyRegister(&xUtf8ToUcs4Fast, "GLIB", "g_utf8_to_ucs4_fast", false) | |
| 1626 | - | ||
| 1627 | 1503 | cret := xUtf8ToUcs4Fast(StrVar, LenVar, ItemsWrittenVar) | |
| 1628 | 1504 | return cret | |
| 1629 | 1505 | } | |
| @@ -1634,7 +1510,6 @@ var xUtf8ToUtf16 func(string, int, *int, *int, **Error) uint16 | |||
| 1634 | 1510 | // | |
| 1635 | 1511 | // A nul character (U+0000) will be added to the result after the converted text. | |
| 1636 | 1512 | func Utf8ToUtf16(StrVar string, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint16, error) { | |
| 1637 | - | core.LazyRegister(&xUtf8ToUtf16, "GLIB", "g_utf8_to_utf16", false) | |
| 1638 | 1513 | var cerr *Error | |
| 1639 | 1514 | ||
| 1640 | 1515 | cret := xUtf8ToUtf16(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | |
| @@ -1652,8 +1527,6 @@ var xUtf8TruncateMiddle func(string, uint) string | |||
| 1652 | 1527 | // If @string is already short enough, this returns a copy of @string. | |
| 1653 | 1528 | // If @truncate_length is `0`, an empty string is returned. | |
| 1654 | 1529 | func Utf8TruncateMiddle(StringVar string, TruncateLengthVar uint) string { | |
| 1655 | - | core.LazyRegister(&xUtf8TruncateMiddle, "GLIB", "g_utf8_truncate_middle", false) | |
| 1656 | - | ||
| 1657 | 1530 | cret := xUtf8TruncateMiddle(StringVar, TruncateLengthVar) | |
| 1658 | 1531 | return cret | |
| 1659 | 1532 | } | |
| @@ -1678,8 +1551,6 @@ var xUtf8Validate func([]byte, int, *[]byte) bool | |||
| 1678 | 1551 | // or the network should be checked with `g_utf8_validate()` before | |
| 1679 | 1552 | // doing anything else with it. | |
| 1680 | 1553 | func Utf8Validate(StrVar []byte, MaxLenVar int, EndVar *[]byte) bool { | |
| 1681 | - | core.LazyRegister(&xUtf8Validate, "GLIB", "g_utf8_validate", false) | |
| 1682 | - | ||
| 1683 | 1554 | cret := xUtf8Validate(StrVar, MaxLenVar, EndVar) | |
| 1684 | 1555 | return cret | |
| 1685 | 1556 | } | |
| @@ -1691,8 +1562,6 @@ var xUtf8ValidateLen func([]byte, uint, *[]byte) bool | |||
| 1691 | 1562 | // As with [func@GLib.utf8_validate], but @max_len must be set, and hence this | |
| 1692 | 1563 | // function will always return `FALSE` if any of the bytes of @str are nul. | |
| 1693 | 1564 | func Utf8ValidateLen(StrVar []byte, MaxLenVar uint, EndVar *[]byte) bool { | |
| 1694 | - | core.LazyRegister(&xUtf8ValidateLen, "GLIB", "g_utf8_validate_len", false) | |
| 1695 | - | ||
| 1696 | 1565 | cret := xUtf8ValidateLen(StrVar, MaxLenVar, EndVar) | |
| 1697 | 1566 | return cret | |
| 1698 | 1567 | } | |
| @@ -1700,4 +1569,88 @@ func Utf8ValidateLen(StrVar []byte, MaxLenVar uint, EndVar *[]byte) bool { | |||
| 1700 | 1569 | func init() { | |
| 1701 | 1570 | core.SetPackageName("GLIB", "glib-2.0") | |
| 1702 | 1571 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 1572 | + | var libs []uintptr | |
| 1573 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 1574 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1575 | + | if err != nil { | |
| 1576 | + | panic(err) | |
| 1577 | + | } | |
| 1578 | + | libs = append(libs, lib) | |
| 1579 | + | } | |
| 1580 | + | ||
| 1581 | + | core.PuregoSafeRegister(&xNormalizeModeGLibType, libs, "g_normalize_mode_get_type") | |
| 1582 | + | ||
| 1583 | + | core.PuregoSafeRegister(&xUnicodeBreakTypeGLibType, libs, "g_unicode_break_type_get_type") | |
| 1584 | + | ||
| 1585 | + | core.PuregoSafeRegister(&xUnicodeScriptGLibType, libs, "g_unicode_script_get_type") | |
| 1586 | + | ||
| 1587 | + | core.PuregoSafeRegister(&xUnicodeTypeGLibType, libs, "g_unicode_type_get_type") | |
| 1588 | + | ||
| 1589 | + | core.PuregoSafeRegister(&xUcs4ToUtf16, libs, "g_ucs4_to_utf16") | |
| 1590 | + | core.PuregoSafeRegister(&xUcs4ToUtf8, libs, "g_ucs4_to_utf8") | |
| 1591 | + | core.PuregoSafeRegister(&xUnicharBreakType, libs, "g_unichar_break_type") | |
| 1592 | + | core.PuregoSafeRegister(&xUnicharCombiningClass, libs, "g_unichar_combining_class") | |
| 1593 | + | core.PuregoSafeRegister(&xUnicharCompose, libs, "g_unichar_compose") | |
| 1594 | + | core.PuregoSafeRegister(&xUnicharDecompose, libs, "g_unichar_decompose") | |
| 1595 | + | core.PuregoSafeRegister(&xUnicharDigitValue, libs, "g_unichar_digit_value") | |
| 1596 | + | core.PuregoSafeRegister(&xUnicharFullyDecompose, libs, "g_unichar_fully_decompose") | |
| 1597 | + | core.PuregoSafeRegister(&xUnicharGetMirrorChar, libs, "g_unichar_get_mirror_char") | |
| 1598 | + | core.PuregoSafeRegister(&xUnicharGetScript, libs, "g_unichar_get_script") | |
| 1599 | + | core.PuregoSafeRegister(&xUnicharIsalnum, libs, "g_unichar_isalnum") | |
| 1600 | + | core.PuregoSafeRegister(&xUnicharIsalpha, libs, "g_unichar_isalpha") | |
| 1601 | + | core.PuregoSafeRegister(&xUnicharIscntrl, libs, "g_unichar_iscntrl") | |
| 1602 | + | core.PuregoSafeRegister(&xUnicharIsdefined, libs, "g_unichar_isdefined") | |
| 1603 | + | core.PuregoSafeRegister(&xUnicharIsdigit, libs, "g_unichar_isdigit") | |
| 1604 | + | core.PuregoSafeRegister(&xUnicharIsgraph, libs, "g_unichar_isgraph") | |
| 1605 | + | core.PuregoSafeRegister(&xUnicharIslower, libs, "g_unichar_islower") | |
| 1606 | + | core.PuregoSafeRegister(&xUnicharIsmark, libs, "g_unichar_ismark") | |
| 1607 | + | core.PuregoSafeRegister(&xUnicharIsprint, libs, "g_unichar_isprint") | |
| 1608 | + | core.PuregoSafeRegister(&xUnicharIspunct, libs, "g_unichar_ispunct") | |
| 1609 | + | core.PuregoSafeRegister(&xUnicharIsspace, libs, "g_unichar_isspace") | |
| 1610 | + | core.PuregoSafeRegister(&xUnicharIstitle, libs, "g_unichar_istitle") | |
| 1611 | + | core.PuregoSafeRegister(&xUnicharIsupper, libs, "g_unichar_isupper") | |
| 1612 | + | core.PuregoSafeRegister(&xUnicharIswide, libs, "g_unichar_iswide") | |
| 1613 | + | core.PuregoSafeRegister(&xUnicharIswideCjk, libs, "g_unichar_iswide_cjk") | |
| 1614 | + | core.PuregoSafeRegister(&xUnicharIsxdigit, libs, "g_unichar_isxdigit") | |
| 1615 | + | core.PuregoSafeRegister(&xUnicharIszerowidth, libs, "g_unichar_iszerowidth") | |
| 1616 | + | core.PuregoSafeRegister(&xUnicharToUtf8, libs, "g_unichar_to_utf8") | |
| 1617 | + | core.PuregoSafeRegister(&xUnicharTolower, libs, "g_unichar_tolower") | |
| 1618 | + | core.PuregoSafeRegister(&xUnicharTotitle, libs, "g_unichar_totitle") | |
| 1619 | + | core.PuregoSafeRegister(&xUnicharToupper, libs, "g_unichar_toupper") | |
| 1620 | + | core.PuregoSafeRegister(&xUnicharType, libs, "g_unichar_type") | |
| 1621 | + | core.PuregoSafeRegister(&xUnicharValidate, libs, "g_unichar_validate") | |
| 1622 | + | core.PuregoSafeRegister(&xUnicharXdigitValue, libs, "g_unichar_xdigit_value") | |
| 1623 | + | core.PuregoSafeRegister(&xUnicodeCanonicalDecomposition, libs, "g_unicode_canonical_decomposition") | |
| 1624 | + | core.PuregoSafeRegister(&xUnicodeCanonicalOrdering, libs, "g_unicode_canonical_ordering") | |
| 1625 | + | core.PuregoSafeRegister(&xUnicodeScriptFromIso15924, libs, "g_unicode_script_from_iso15924") | |
| 1626 | + | core.PuregoSafeRegister(&xUnicodeScriptToIso15924, libs, "g_unicode_script_to_iso15924") | |
| 1627 | + | core.PuregoSafeRegister(&xUtf16ToUcs4, libs, "g_utf16_to_ucs4") | |
| 1628 | + | core.PuregoSafeRegister(&xUtf16ToUtf8, libs, "g_utf16_to_utf8") | |
| 1629 | + | core.PuregoSafeRegister(&xUtf8Casefold, libs, "g_utf8_casefold") | |
| 1630 | + | core.PuregoSafeRegister(&xUtf8Collate, libs, "g_utf8_collate") | |
| 1631 | + | core.PuregoSafeRegister(&xUtf8CollateKey, libs, "g_utf8_collate_key") | |
| 1632 | + | core.PuregoSafeRegister(&xUtf8CollateKeyForFilename, libs, "g_utf8_collate_key_for_filename") | |
| 1633 | + | core.PuregoSafeRegister(&xUtf8FindNextChar, libs, "g_utf8_find_next_char") | |
| 1634 | + | core.PuregoSafeRegister(&xUtf8FindPrevChar, libs, "g_utf8_find_prev_char") | |
| 1635 | + | core.PuregoSafeRegister(&xUtf8GetChar, libs, "g_utf8_get_char") | |
| 1636 | + | core.PuregoSafeRegister(&xUtf8GetCharValidated, libs, "g_utf8_get_char_validated") | |
| 1637 | + | core.PuregoSafeRegister(&xUtf8MakeValid, libs, "g_utf8_make_valid") | |
| 1638 | + | core.PuregoSafeRegister(&xUtf8Normalize, libs, "g_utf8_normalize") | |
| 1639 | + | core.PuregoSafeRegister(&xUtf8OffsetToPointer, libs, "g_utf8_offset_to_pointer") | |
| 1640 | + | core.PuregoSafeRegister(&xUtf8PointerToOffset, libs, "g_utf8_pointer_to_offset") | |
| 1641 | + | core.PuregoSafeRegister(&xUtf8PrevChar, libs, "g_utf8_prev_char") | |
| 1642 | + | core.PuregoSafeRegister(&xUtf8Strchr, libs, "g_utf8_strchr") | |
| 1643 | + | core.PuregoSafeRegister(&xUtf8Strdown, libs, "g_utf8_strdown") | |
| 1644 | + | core.PuregoSafeRegister(&xUtf8Strlen, libs, "g_utf8_strlen") | |
| 1645 | + | core.PuregoSafeRegister(&xUtf8Strncpy, libs, "g_utf8_strncpy") | |
| 1646 | + | core.PuregoSafeRegister(&xUtf8Strrchr, libs, "g_utf8_strrchr") | |
| 1647 | + | core.PuregoSafeRegister(&xUtf8Strreverse, libs, "g_utf8_strreverse") | |
| 1648 | + | core.PuregoSafeRegister(&xUtf8Strup, libs, "g_utf8_strup") | |
| 1649 | + | core.PuregoSafeRegister(&xUtf8Substring, libs, "g_utf8_substring") | |
| 1650 | + | core.PuregoSafeRegister(&xUtf8ToUcs4, libs, "g_utf8_to_ucs4") | |
| 1651 | + | core.PuregoSafeRegister(&xUtf8ToUcs4Fast, libs, "g_utf8_to_ucs4_fast") | |
| 1652 | + | core.PuregoSafeRegister(&xUtf8ToUtf16, libs, "g_utf8_to_utf16") | |
| 1653 | + | core.PuregoSafeRegister(&xUtf8TruncateMiddle, libs, "g_utf8_truncate_middle") | |
| 1654 | + | core.PuregoSafeRegister(&xUtf8Validate, libs, "g_utf8_validate") | |
| 1655 | + | core.PuregoSafeRegister(&xUtf8ValidateLen, libs, "g_utf8_validate_len") | |
| 1703 | 1656 | } | |
| @@ -2,6 +2,7 @@ | |||||
| 2 | package glib | 2 | package glib | ||
| 3 | 3 | ||||
| 4 | import ( | 4 | import ( | ||
| 5 | + | "github.com/bnema/purego" | |||
| 5 | "github.com/bnema/puregotk/pkg/core" | 6 | "github.com/bnema/puregotk/pkg/core" | ||
| 6 | "github.com/bnema/puregotk/v4/gobject/types" | 7 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| 7 | ) | 8 | ) | ||
| @@ -24,7 +25,6 @@ type NormalizeMode int | |||||
| 24 | var xNormalizeModeGLibType func() types.GType | 25 | var xNormalizeModeGLibType func() types.GType | ||
| 25 | 26 | ||||
| 26 | func NormalizeModeGLibType() types.GType { | 27 | func NormalizeModeGLibType() types.GType { | ||
| 27 | - | core.LazyRegister(&xNormalizeModeGLibType, "GLIB", "g_normalize_mode_get_type", false) | |||
| 28 | return xNormalizeModeGLibType() | 28 | return xNormalizeModeGLibType() | ||
| 29 | } | 29 | } | ||
| 30 | 30 | ||||
| @@ -66,7 +66,6 @@ type UnicodeBreakType int | |||||
| 66 | var xUnicodeBreakTypeGLibType func() types.GType | 66 | var xUnicodeBreakTypeGLibType func() types.GType | ||
| 67 | 67 | ||||
| 68 | func UnicodeBreakTypeGLibType() types.GType { | 68 | func UnicodeBreakTypeGLibType() types.GType { | ||
| 69 | - | core.LazyRegister(&xUnicodeBreakTypeGLibType, "GLIB", "g_unicode_break_type_get_type", false) | |||
| 70 | return xUnicodeBreakTypeGLibType() | 69 | return xUnicodeBreakTypeGLibType() | ||
| 71 | } | 70 | } | ||
| 72 | 71 | ||||
| @@ -187,7 +186,6 @@ type UnicodeScript int | |||||
| 187 | var xUnicodeScriptGLibType func() types.GType | 186 | var xUnicodeScriptGLibType func() types.GType | ||
| 188 | 187 | ||||
| 189 | func UnicodeScriptGLibType() types.GType { | 188 | func UnicodeScriptGLibType() types.GType { | ||
| 190 | - | core.LazyRegister(&xUnicodeScriptGLibType, "GLIB", "g_unicode_script_get_type", false) | |||
| 191 | return xUnicodeScriptGLibType() | 189 | return xUnicodeScriptGLibType() | ||
| 192 | } | 190 | } | ||
| 193 | 191 | ||||
| @@ -558,7 +556,6 @@ type UnicodeType int | |||||
| 558 | var xUnicodeTypeGLibType func() types.GType | 556 | var xUnicodeTypeGLibType func() types.GType | ||
| 559 | 557 | ||||
| 560 | func UnicodeTypeGLibType() types.GType { | 558 | func UnicodeTypeGLibType() types.GType { | ||
| 561 | - | core.LazyRegister(&xUnicodeTypeGLibType, "GLIB", "g_unicode_type_get_type", false) | |||
| 562 | return xUnicodeTypeGLibType() | 559 | return xUnicodeTypeGLibType() | ||
| 563 | } | 560 | } | ||
| 564 | 561 | ||||
| @@ -632,7 +629,6 @@ var xUcs4ToUtf16 func([]uint32, int, *int, *int, **Error) uint16 | |||||
| 632 | // | 629 | // | ||
| 633 | // A nul character (U+0000) will be added to the result after the converted text. | 630 | // A nul character (U+0000) will be added to the result after the converted text. | ||
| 634 | func Ucs4ToUtf16(StrVar []uint32, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint16, error) { | 631 | func Ucs4ToUtf16(StrVar []uint32, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint16, error) { | ||
| 635 | - | core.LazyRegister(&xUcs4ToUtf16, "GLIB", "g_ucs4_to_utf16", false) | |||
| 636 | var cerr *Error | 632 | var cerr *Error | ||
| 637 | 633 | ||||
| 638 | cret := xUcs4ToUtf16(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | 634 | cret := xUcs4ToUtf16(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | ||
| @@ -649,7 +645,6 @@ var xUcs4ToUtf8 func([]uint32, int, *int, *int, **Error) string | |||||
| 649 | // | 645 | // | ||
| 650 | // The result will be terminated with a nul byte. | 646 | // The result will be terminated with a nul byte. | ||
| 651 | func Ucs4ToUtf8(StrVar []uint32, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (string, error) { | 647 | func Ucs4ToUtf8(StrVar []uint32, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (string, error) { | ||
| 652 | - | core.LazyRegister(&xUcs4ToUtf8, "GLIB", "g_ucs4_to_utf8", false) | |||
| 653 | var cerr *Error | 648 | var cerr *Error | ||
| 654 | 649 | ||||
| 655 | cret := xUcs4ToUtf8(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | 650 | cret := xUcs4ToUtf8(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | ||
| @@ -668,8 +663,6 @@ var xUnicharBreakType func(uint32) UnicodeBreakType | |||||
| 668 | // resolution algorithms and normally you would use a function such | 663 | // resolution algorithms and normally you would use a function such | ||
| 669 | // as pango_break() instead of caring about break types yourself. | 664 | // as pango_break() instead of caring about break types yourself. | ||
| 670 | func UnicharBreakType(CVar uint32) UnicodeBreakType { | 665 | func UnicharBreakType(CVar uint32) UnicodeBreakType { | ||
| 671 | - | core.LazyRegister(&xUnicharBreakType, "GLIB", "g_unichar_break_type", false) | |||
| 672 | - | ||||
| 673 | cret := xUnicharBreakType(CVar) | 666 | cret := xUnicharBreakType(CVar) | ||
| 674 | return cret | 667 | return cret | ||
| 675 | } | 668 | } | ||
| @@ -678,8 +671,6 @@ var xUnicharCombiningClass func(uint32) int | |||||
| 678 | 671 | ||||
| 679 | // Determines the canonical combining class of a Unicode character. | 672 | // Determines the canonical combining class of a Unicode character. | ||
| 680 | func UnicharCombiningClass(UcVar uint32) int { | 673 | func UnicharCombiningClass(UcVar uint32) int { | ||
| 681 | - | core.LazyRegister(&xUnicharCombiningClass, "GLIB", "g_unichar_combining_class", false) | |||
| 682 | - | ||||
| 683 | cret := xUnicharCombiningClass(UcVar) | 674 | cret := xUnicharCombiningClass(UcVar) | ||
| 684 | return cret | 675 | return cret | ||
| 685 | } | 676 | } | ||
| @@ -703,8 +694,6 @@ var xUnicharCompose func(uint32, uint32, *uint32) bool | |||||
| 703 | // [UAX#15](http://unicode.org/reports/tr15/) | 694 | // [UAX#15](http://unicode.org/reports/tr15/) | ||
| 704 | // for details. | 695 | // for details. | ||
| 705 | func UnicharCompose(AVar uint32, BVar uint32, ChVar *uint32) bool { | 696 | func UnicharCompose(AVar uint32, BVar uint32, ChVar *uint32) bool { | ||
| 706 | - | core.LazyRegister(&xUnicharCompose, "GLIB", "g_unichar_compose", false) | |||
| 707 | - | ||||
| 708 | cret := xUnicharCompose(AVar, BVar, ChVar) | 697 | cret := xUnicharCompose(AVar, BVar, ChVar) | ||
| 709 | return cret | 698 | return cret | ||
| 710 | } | 699 | } | ||
| @@ -735,8 +724,6 @@ var xUnicharDecompose func(uint32, *uint32, *uint32) bool | |||||
| 735 | // [UAX#15](http://unicode.org/reports/tr15/) | 724 | // [UAX#15](http://unicode.org/reports/tr15/) | ||
| 736 | // for details. | 725 | // for details. | ||
| 737 | func UnicharDecompose(ChVar uint32, AVar *uint32, BVar *uint32) bool { | 726 | func UnicharDecompose(ChVar uint32, AVar *uint32, BVar *uint32) bool { | ||
| 738 | - | core.LazyRegister(&xUnicharDecompose, "GLIB", "g_unichar_decompose", false) | |||
| 739 | - | ||||
| 740 | cret := xUnicharDecompose(ChVar, AVar, BVar) | 727 | cret := xUnicharDecompose(ChVar, AVar, BVar) | ||
| 741 | return cret | 728 | return cret | ||
| 742 | } | 729 | } | ||
| @@ -746,8 +733,6 @@ var xUnicharDigitValue func(uint32) int | |||||
| 746 | // Determines the numeric value of a character as a decimal | 733 | // Determines the numeric value of a character as a decimal | ||
| 747 | // digit. | 734 | // digit. | ||
| 748 | func UnicharDigitValue(CVar uint32) int { | 735 | func UnicharDigitValue(CVar uint32) int { | ||
| 749 | - | core.LazyRegister(&xUnicharDigitValue, "GLIB", "g_unichar_digit_value", false) | |||
| 750 | - | ||||
| 751 | cret := xUnicharDigitValue(CVar) | 736 | cret := xUnicharDigitValue(CVar) | ||
| 752 | return cret | 737 | return cret | ||
| 753 | } | 738 | } | ||
| @@ -774,8 +759,6 @@ var xUnicharFullyDecompose func(uint32, bool, *uint32, uint) uint | |||||
| 774 | // [UAX#15](http://unicode.org/reports/tr15/) | 759 | // [UAX#15](http://unicode.org/reports/tr15/) | ||
| 775 | // for details. | 760 | // for details. | ||
| 776 | func UnicharFullyDecompose(ChVar uint32, CompatVar bool, ResultVar *uint32, ResultLenVar uint) uint { | 761 | func UnicharFullyDecompose(ChVar uint32, CompatVar bool, ResultVar *uint32, ResultLenVar uint) uint { | ||
| 777 | - | core.LazyRegister(&xUnicharFullyDecompose, "GLIB", "g_unichar_fully_decompose", false) | |||
| 778 | - | ||||
| 779 | cret := xUnicharFullyDecompose(ChVar, CompatVar, ResultVar, ResultLenVar) | 762 | cret := xUnicharFullyDecompose(ChVar, CompatVar, ResultVar, ResultLenVar) | ||
| 780 | return cret | 763 | return cret | ||
| 781 | } | 764 | } | ||
| @@ -792,8 +775,6 @@ var xUnicharGetMirrorChar func(uint32, *uint32) bool | |||||
| 792 | // glyph and @mirrored_ch is set, it puts that character in the address | 775 | // glyph and @mirrored_ch is set, it puts that character in the address | ||
| 793 | // pointed to by @mirrored_ch. Otherwise the original character is put. | 776 | // pointed to by @mirrored_ch. Otherwise the original character is put. | ||
| 794 | func UnicharGetMirrorChar(ChVar uint32, MirroredChVar *uint32) bool { | 777 | func UnicharGetMirrorChar(ChVar uint32, MirroredChVar *uint32) bool { | ||
| 795 | - | core.LazyRegister(&xUnicharGetMirrorChar, "GLIB", "g_unichar_get_mirror_char", false) | |||
| 796 | - | ||||
| 797 | cret := xUnicharGetMirrorChar(ChVar, MirroredChVar) | 778 | cret := xUnicharGetMirrorChar(ChVar, MirroredChVar) | ||
| 798 | return cret | 779 | return cret | ||
| 799 | } | 780 | } | ||
| @@ -808,8 +789,6 @@ var xUnicharGetScript func(uint32) UnicodeScript | |||||
| 808 | // This function is equivalent to pango_script_for_unichar() and the | 789 | // This function is equivalent to pango_script_for_unichar() and the | ||
| 809 | // two are interchangeable. | 790 | // two are interchangeable. | ||
| 810 | func UnicharGetScript(ChVar uint32) UnicodeScript { | 791 | func UnicharGetScript(ChVar uint32) UnicodeScript { | ||
| 811 | - | core.LazyRegister(&xUnicharGetScript, "GLIB", "g_unichar_get_script", false) | |||
| 812 | - | ||||
| 813 | cret := xUnicharGetScript(ChVar) | 792 | cret := xUnicharGetScript(ChVar) | ||
| 814 | return cret | 793 | return cret | ||
| 815 | } | 794 | } | ||
| @@ -820,8 +799,6 @@ var xUnicharIsalnum func(uint32) bool | |||||
| 820 | // Given some UTF-8 text, obtain a character value | 799 | // Given some UTF-8 text, obtain a character value | ||
| 821 | // with g_utf8_get_char(). | 800 | // with g_utf8_get_char(). | ||
| 822 | func UnicharIsalnum(CVar uint32) bool { | 801 | func UnicharIsalnum(CVar uint32) bool { | ||
| 823 | - | core.LazyRegister(&xUnicharIsalnum, "GLIB", "g_unichar_isalnum", false) | |||
| 824 | - | ||||
| 825 | cret := xUnicharIsalnum(CVar) | 802 | cret := xUnicharIsalnum(CVar) | ||
| 826 | return cret | 803 | return cret | ||
| 827 | } | 804 | } | ||
| @@ -832,8 +809,6 @@ var xUnicharIsalpha func(uint32) bool | |||||
| 832 | // Given some UTF-8 text, obtain a character value with | 809 | // Given some UTF-8 text, obtain a character value with | ||
| 833 | // g_utf8_get_char(). | 810 | // g_utf8_get_char(). | ||
| 834 | func UnicharIsalpha(CVar uint32) bool { | 811 | func UnicharIsalpha(CVar uint32) bool { | ||
| 835 | - | core.LazyRegister(&xUnicharIsalpha, "GLIB", "g_unichar_isalpha", false) | |||
| 836 | - | ||||
| 837 | cret := xUnicharIsalpha(CVar) | 812 | cret := xUnicharIsalpha(CVar) | ||
| 838 | return cret | 813 | return cret | ||
| 839 | } | 814 | } | ||
| @@ -844,8 +819,6 @@ var xUnicharIscntrl func(uint32) bool | |||||
| 844 | // Given some UTF-8 text, obtain a character value with | 819 | // Given some UTF-8 text, obtain a character value with | ||
| 845 | // g_utf8_get_char(). | 820 | // g_utf8_get_char(). | ||
| 846 | func UnicharIscntrl(CVar uint32) bool { | 821 | func UnicharIscntrl(CVar uint32) bool { | ||
| 847 | - | core.LazyRegister(&xUnicharIscntrl, "GLIB", "g_unichar_iscntrl", false) | |||
| 848 | - | ||||
| 849 | cret := xUnicharIscntrl(CVar) | 822 | cret := xUnicharIscntrl(CVar) | ||
| 850 | return cret | 823 | return cret | ||
| 851 | } | 824 | } | ||
| @@ -855,8 +828,6 @@ var xUnicharIsdefined func(uint32) bool | |||||
| 855 | // Determines if a given character is assigned in the Unicode | 828 | // Determines if a given character is assigned in the Unicode | ||
| 856 | // standard. | 829 | // standard. | ||
| 857 | func UnicharIsdefined(CVar uint32) bool { | 830 | func UnicharIsdefined(CVar uint32) bool { | ||
| 858 | - | core.LazyRegister(&xUnicharIsdefined, "GLIB", "g_unichar_isdefined", false) | |||
| 859 | - | ||||
| 860 | cret := xUnicharIsdefined(CVar) | 831 | cret := xUnicharIsdefined(CVar) | ||
| 861 | return cret | 832 | return cret | ||
| 862 | } | 833 | } | ||
| @@ -867,8 +838,6 @@ var xUnicharIsdigit func(uint32) bool | |||||
| 867 | // covers ASCII 0-9 and also digits in other languages/scripts. Given | 838 | // covers ASCII 0-9 and also digits in other languages/scripts. Given | ||
| 868 | // some UTF-8 text, obtain a character value with g_utf8_get_char(). | 839 | // some UTF-8 text, obtain a character value with g_utf8_get_char(). | ||
| 869 | func UnicharIsdigit(CVar uint32) bool { | 840 | func UnicharIsdigit(CVar uint32) bool { | ||
| 870 | - | core.LazyRegister(&xUnicharIsdigit, "GLIB", "g_unichar_isdigit", false) | |||
| 871 | - | ||||
| 872 | cret := xUnicharIsdigit(CVar) | 841 | cret := xUnicharIsdigit(CVar) | ||
| 873 | return cret | 842 | return cret | ||
| 874 | } | 843 | } | ||
| @@ -881,8 +850,6 @@ var xUnicharIsgraph func(uint32) bool | |||||
| 881 | // spaces. Given some UTF-8 text, obtain a character value with | 850 | // spaces. Given some UTF-8 text, obtain a character value with | ||
| 882 | // g_utf8_get_char(). | 851 | // g_utf8_get_char(). | ||
| 883 | func UnicharIsgraph(CVar uint32) bool { | 852 | func UnicharIsgraph(CVar uint32) bool { | ||
| 884 | - | core.LazyRegister(&xUnicharIsgraph, "GLIB", "g_unichar_isgraph", false) | |||
| 885 | - | ||||
| 886 | cret := xUnicharIsgraph(CVar) | 853 | cret := xUnicharIsgraph(CVar) | ||
| 887 | return cret | 854 | return cret | ||
| 888 | } | 855 | } | ||
| @@ -893,8 +860,6 @@ var xUnicharIslower func(uint32) bool | |||||
| 893 | // Given some UTF-8 text, obtain a character value with | 860 | // Given some UTF-8 text, obtain a character value with | ||
| 894 | // g_utf8_get_char(). | 861 | // g_utf8_get_char(). | ||
| 895 | func UnicharIslower(CVar uint32) bool { | 862 | func UnicharIslower(CVar uint32) bool { | ||
| 896 | - | core.LazyRegister(&xUnicharIslower, "GLIB", "g_unichar_islower", false) | |||
| 897 | - | ||||
| 898 | cret := xUnicharIslower(CVar) | 863 | cret := xUnicharIslower(CVar) | ||
| 899 | return cret | 864 | return cret | ||
| 900 | } | 865 | } | ||
| @@ -911,8 +876,6 @@ var xUnicharIsmark func(uint32) bool | |||||
| 911 | // for writing most European languages as well as many non-Latin | 876 | // for writing most European languages as well as many non-Latin | ||
| 912 | // scripts. | 877 | // scripts. | ||
| 913 | func UnicharIsmark(CVar uint32) bool { | 878 | func UnicharIsmark(CVar uint32) bool { | ||
| 914 | - | core.LazyRegister(&xUnicharIsmark, "GLIB", "g_unichar_ismark", false) | |||
| 915 | - | ||||
| 916 | cret := xUnicharIsmark(CVar) | 879 | cret := xUnicharIsmark(CVar) | ||
| 917 | return cret | 880 | return cret | ||
| 918 | } | 881 | } | ||
| @@ -924,8 +887,6 @@ var xUnicharIsprint func(uint32) bool | |||||
| 924 | // Given some UTF-8 text, obtain a character value with | 887 | // Given some UTF-8 text, obtain a character value with | ||
| 925 | // g_utf8_get_char(). | 888 | // g_utf8_get_char(). | ||
| 926 | func UnicharIsprint(CVar uint32) bool { | 889 | func UnicharIsprint(CVar uint32) bool { | ||
| 927 | - | core.LazyRegister(&xUnicharIsprint, "GLIB", "g_unichar_isprint", false) | |||
| 928 | - | ||||
| 929 | cret := xUnicharIsprint(CVar) | 890 | cret := xUnicharIsprint(CVar) | ||
| 930 | return cret | 891 | return cret | ||
| 931 | } | 892 | } | ||
| @@ -936,8 +897,6 @@ var xUnicharIspunct func(uint32) bool | |||||
| 936 | // Given some UTF-8 text, obtain a character value with | 897 | // Given some UTF-8 text, obtain a character value with | ||
| 937 | // g_utf8_get_char(). | 898 | // g_utf8_get_char(). | ||
| 938 | func UnicharIspunct(CVar uint32) bool { | 899 | func UnicharIspunct(CVar uint32) bool { | ||
| 939 | - | core.LazyRegister(&xUnicharIspunct, "GLIB", "g_unichar_ispunct", false) | |||
| 940 | - | ||||
| 941 | cret := xUnicharIspunct(CVar) | 900 | cret := xUnicharIspunct(CVar) | ||
| 942 | return cret | 901 | return cret | ||
| 943 | } | 902 | } | ||
| @@ -952,8 +911,6 @@ var xUnicharIsspace func(uint32) bool | |||||
| 952 | // Pango or equivalent to get word breaking right, the algorithm | 911 | // Pango or equivalent to get word breaking right, the algorithm | ||
| 953 | // is fairly complex.) | 912 | // is fairly complex.) | ||
| 954 | func UnicharIsspace(CVar uint32) bool { | 913 | func UnicharIsspace(CVar uint32) bool { | ||
| 955 | - | core.LazyRegister(&xUnicharIsspace, "GLIB", "g_unichar_isspace", false) | |||
| 956 | - | ||||
| 957 | cret := xUnicharIsspace(CVar) | 914 | cret := xUnicharIsspace(CVar) | ||
| 958 | return cret | 915 | return cret | ||
| 959 | } | 916 | } | ||
| @@ -967,8 +924,6 @@ var xUnicharIstitle func(uint32) bool | |||||
| 967 | // first letter is capitalized. The titlecase form of the DZ | 924 | // first letter is capitalized. The titlecase form of the DZ | ||
| 968 | // digraph is U+01F2 LATIN CAPITAL LETTTER D WITH SMALL LETTER Z. | 925 | // digraph is U+01F2 LATIN CAPITAL LETTTER D WITH SMALL LETTER Z. | ||
| 969 | func UnicharIstitle(CVar uint32) bool { | 926 | func UnicharIstitle(CVar uint32) bool { | ||
| 970 | - | core.LazyRegister(&xUnicharIstitle, "GLIB", "g_unichar_istitle", false) | |||
| 971 | - | ||||
| 972 | cret := xUnicharIstitle(CVar) | 927 | cret := xUnicharIstitle(CVar) | ||
| 973 | return cret | 928 | return cret | ||
| 974 | } | 929 | } | ||
| @@ -977,8 +932,6 @@ var xUnicharIsupper func(uint32) bool | |||||
| 977 | 932 | ||||
| 978 | // Determines if a character is uppercase. | 933 | // Determines if a character is uppercase. | ||
| 979 | func UnicharIsupper(CVar uint32) bool { | 934 | func UnicharIsupper(CVar uint32) bool { | ||
| 980 | - | core.LazyRegister(&xUnicharIsupper, "GLIB", "g_unichar_isupper", false) | |||
| 981 | - | ||||
| 982 | cret := xUnicharIsupper(CVar) | 935 | cret := xUnicharIsupper(CVar) | ||
| 983 | return cret | 936 | return cret | ||
| 984 | } | 937 | } | ||
| @@ -988,8 +941,6 @@ var xUnicharIswide func(uint32) bool | |||||
| 988 | // Determines if a character is typically rendered in a double-width | 941 | // Determines if a character is typically rendered in a double-width | ||
| 989 | // cell. | 942 | // cell. | ||
| 990 | func UnicharIswide(CVar uint32) bool { | 943 | func UnicharIswide(CVar uint32) bool { | ||
| 991 | - | core.LazyRegister(&xUnicharIswide, "GLIB", "g_unichar_iswide", false) | |||
| 992 | - | ||||
| 993 | cret := xUnicharIswide(CVar) | 944 | cret := xUnicharIswide(CVar) | ||
| 994 | return cret | 945 | return cret | ||
| 995 | } | 946 | } | ||
| @@ -1007,8 +958,6 @@ var xUnicharIswideCjk func(uint32) bool | |||||
| 1007 | // this test, but not the other way around. Note that some characters may | 958 | // this test, but not the other way around. Note that some characters may | ||
| 1008 | // pass both this test and g_unichar_iszerowidth(). | 959 | // pass both this test and g_unichar_iszerowidth(). | ||
| 1009 | func UnicharIswideCjk(CVar uint32) bool { | 960 | func UnicharIswideCjk(CVar uint32) bool { | ||
| 1010 | - | core.LazyRegister(&xUnicharIswideCjk, "GLIB", "g_unichar_iswide_cjk", false) | |||
| 1011 | - | ||||
| 1012 | cret := xUnicharIswideCjk(CVar) | 961 | cret := xUnicharIswideCjk(CVar) | ||
| 1013 | return cret | 962 | return cret | ||
| 1014 | } | 963 | } | ||
| @@ -1017,8 +966,6 @@ var xUnicharIsxdigit func(uint32) bool | |||||
| 1017 | 966 | ||||
| 1018 | // Determines if a character is a hexadecimal digit. | 967 | // Determines if a character is a hexadecimal digit. | ||
| 1019 | func UnicharIsxdigit(CVar uint32) bool { | 968 | func UnicharIsxdigit(CVar uint32) bool { | ||
| 1020 | - | core.LazyRegister(&xUnicharIsxdigit, "GLIB", "g_unichar_isxdigit", false) | |||
| 1021 | - | ||||
| 1022 | cret := xUnicharIsxdigit(CVar) | 969 | cret := xUnicharIsxdigit(CVar) | ||
| 1023 | return cret | 970 | return cret | ||
| 1024 | } | 971 | } | ||
| @@ -1035,8 +982,6 @@ var xUnicharIszerowidth func(uint32) bool | |||||
| 1035 | // when displayed on a grid display (terminals). However, note that not all | 982 | // when displayed on a grid display (terminals). However, note that not all | ||
| 1036 | // terminals support zero-width rendering of zero-width marks. | 983 | // terminals support zero-width rendering of zero-width marks. | ||
| 1037 | func UnicharIszerowidth(CVar uint32) bool { | 984 | func UnicharIszerowidth(CVar uint32) bool { | ||
| 1038 | - | core.LazyRegister(&xUnicharIszerowidth, "GLIB", "g_unichar_iszerowidth", false) | |||
| 1039 | - | ||||
| 1040 | cret := xUnicharIszerowidth(CVar) | 985 | cret := xUnicharIszerowidth(CVar) | ||
| 1041 | return cret | 986 | return cret | ||
| 1042 | } | 987 | } | ||
| @@ -1045,8 +990,6 @@ var xUnicharToUtf8 func(uint32, *string) int | |||||
| 1045 | 990 | ||||
| 1046 | // Converts a single character to UTF-8. | 991 | // Converts a single character to UTF-8. | ||
| 1047 | func UnicharToUtf8(CVar uint32, OutbufVar *string) int { | 992 | func UnicharToUtf8(CVar uint32, OutbufVar *string) int { | ||
| 1048 | - | core.LazyRegister(&xUnicharToUtf8, "GLIB", "g_unichar_to_utf8", false) | |||
| 1049 | - | ||||
| 1050 | cret := xUnicharToUtf8(CVar, OutbufVar) | 993 | cret := xUnicharToUtf8(CVar, OutbufVar) | ||
| 1051 | return cret | 994 | return cret | ||
| 1052 | } | 995 | } | ||
| @@ -1055,8 +998,6 @@ var xUnicharTolower func(uint32) uint32 | |||||
| 1055 | 998 | ||||
| 1056 | // Converts a character to lower case. | 999 | // Converts a character to lower case. | ||
| 1057 | func UnicharTolower(CVar uint32) uint32 { | 1000 | func UnicharTolower(CVar uint32) uint32 { | ||
| 1058 | - | core.LazyRegister(&xUnicharTolower, "GLIB", "g_unichar_tolower", false) | |||
| 1059 | - | ||||
| 1060 | cret := xUnicharTolower(CVar) | 1001 | cret := xUnicharTolower(CVar) | ||
| 1061 | return cret | 1002 | return cret | ||
| 1062 | } | 1003 | } | ||
| @@ -1065,8 +1006,6 @@ var xUnicharTotitle func(uint32) uint32 | |||||
| 1065 | 1006 | ||||
| 1066 | // Converts a character to the titlecase. | 1007 | // Converts a character to the titlecase. | ||
| 1067 | func UnicharTotitle(CVar uint32) uint32 { | 1008 | func UnicharTotitle(CVar uint32) uint32 { | ||
| 1068 | - | core.LazyRegister(&xUnicharTotitle, "GLIB", "g_unichar_totitle", false) | |||
| 1069 | - | ||||
| 1070 | cret := xUnicharTotitle(CVar) | 1009 | cret := xUnicharTotitle(CVar) | ||
| 1071 | return cret | 1010 | return cret | ||
| 1072 | } | 1011 | } | ||
| @@ -1075,8 +1014,6 @@ var xUnicharToupper func(uint32) uint32 | |||||
| 1075 | 1014 | ||||
| 1076 | // Converts a character to uppercase. | 1015 | // Converts a character to uppercase. | ||
| 1077 | func UnicharToupper(CVar uint32) uint32 { | 1016 | func UnicharToupper(CVar uint32) uint32 { | ||
| 1078 | - | core.LazyRegister(&xUnicharToupper, "GLIB", "g_unichar_toupper", false) | |||
| 1079 | - | ||||
| 1080 | cret := xUnicharToupper(CVar) | 1017 | cret := xUnicharToupper(CVar) | ||
| 1081 | return cret | 1018 | return cret | ||
| 1082 | } | 1019 | } | ||
| @@ -1085,8 +1022,6 @@ var xUnicharType func(uint32) UnicodeType | |||||
| 1085 | 1022 | ||||
| 1086 | // Classifies a Unicode character by type. | 1023 | // Classifies a Unicode character by type. | ||
| 1087 | func UnicharType(CVar uint32) UnicodeType { | 1024 | func UnicharType(CVar uint32) UnicodeType { | ||
| 1088 | - | core.LazyRegister(&xUnicharType, "GLIB", "g_unichar_type", false) | |||
| 1089 | - | ||||
| 1090 | cret := xUnicharType(CVar) | 1025 | cret := xUnicharType(CVar) | ||
| 1091 | return cret | 1026 | return cret | ||
| 1092 | } | 1027 | } | ||
| @@ -1098,8 +1033,6 @@ var xUnicharValidate func(uint32) bool | |||||
| 1098 | // Some possible integer values of @ch will not be valid. U+0000 is considered a | 1033 | // Some possible integer values of @ch will not be valid. U+0000 is considered a | ||
| 1099 | // valid character, though it’s normally a string terminator. | 1034 | // valid character, though it’s normally a string terminator. | ||
| 1100 | func UnicharValidate(ChVar uint32) bool { | 1035 | func UnicharValidate(ChVar uint32) bool { | ||
| 1101 | - | core.LazyRegister(&xUnicharValidate, "GLIB", "g_unichar_validate", false) | |||
| 1102 | - | ||||
| 1103 | cret := xUnicharValidate(ChVar) | 1036 | cret := xUnicharValidate(ChVar) | ||
| 1104 | return cret | 1037 | return cret | ||
| 1105 | } | 1038 | } | ||
| @@ -1109,8 +1042,6 @@ var xUnicharXdigitValue func(uint32) int | |||||
| 1109 | // Determines the numeric value of a character as a hexadecimal | 1042 | // Determines the numeric value of a character as a hexadecimal | ||
| 1110 | // digit. | 1043 | // digit. | ||
| 1111 | func UnicharXdigitValue(CVar uint32) int { | 1044 | func UnicharXdigitValue(CVar uint32) int { | ||
| 1112 | - | core.LazyRegister(&xUnicharXdigitValue, "GLIB", "g_unichar_xdigit_value", false) | |||
| 1113 | - | ||||
| 1114 | cret := xUnicharXdigitValue(CVar) | 1045 | cret := xUnicharXdigitValue(CVar) | ||
| 1115 | return cret | 1046 | return cret | ||
| 1116 | } | 1047 | } | ||
| @@ -1119,8 +1050,6 @@ var xUnicodeCanonicalDecomposition func(uint32, uint) uint32 | |||||
| 1119 | 1050 | ||||
| 1120 | // Computes the canonical decomposition of a Unicode character. | 1051 | // Computes the canonical decomposition of a Unicode character. | ||
| 1121 | func UnicodeCanonicalDecomposition(ChVar uint32, ResultLenVar uint) uint32 { | 1052 | func UnicodeCanonicalDecomposition(ChVar uint32, ResultLenVar uint) uint32 { | ||
| 1122 | - | core.LazyRegister(&xUnicodeCanonicalDecomposition, "GLIB", "g_unicode_canonical_decomposition", false) | |||
| 1123 | - | ||||
| 1124 | cret := xUnicodeCanonicalDecomposition(ChVar, ResultLenVar) | 1053 | cret := xUnicodeCanonicalDecomposition(ChVar, ResultLenVar) | ||
| 1125 | return cret | 1054 | return cret | ||
| 1126 | } | 1055 | } | ||
| @@ -1132,8 +1061,6 @@ var xUnicodeCanonicalOrdering func([]uint32, uint) | |||||
| 1132 | // according to their combining classes. See the Unicode | 1061 | // according to their combining classes. See the Unicode | ||
| 1133 | // manual for more information. | 1062 | // manual for more information. | ||
| 1134 | func UnicodeCanonicalOrdering(StringVar []uint32, LenVar uint) { | 1063 | func UnicodeCanonicalOrdering(StringVar []uint32, LenVar uint) { | ||
| 1135 | - | core.LazyRegister(&xUnicodeCanonicalOrdering, "GLIB", "g_unicode_canonical_ordering", false) | |||
| 1136 | - | ||||
| 1137 | xUnicodeCanonicalOrdering(StringVar, LenVar) | 1064 | xUnicodeCanonicalOrdering(StringVar, LenVar) | ||
| 1138 | } | 1065 | } | ||
| 1139 | 1066 | ||||
| @@ -1149,8 +1076,6 @@ var xUnicodeScriptFromIso15924 func(uint32) UnicodeScript | |||||
| 1149 | // [Codes for the representation of names of scripts](http://unicode.org/iso15924/codelists.html) | 1076 | // [Codes for the representation of names of scripts](http://unicode.org/iso15924/codelists.html) | ||
| 1150 | // for details. | 1077 | // for details. | ||
| 1151 | func UnicodeScriptFromIso15924(Iso15924Var uint32) UnicodeScript { | 1078 | func UnicodeScriptFromIso15924(Iso15924Var uint32) UnicodeScript { | ||
| 1152 | - | core.LazyRegister(&xUnicodeScriptFromIso15924, "GLIB", "g_unicode_script_from_iso15924", false) | |||
| 1153 | - | ||||
| 1154 | cret := xUnicodeScriptFromIso15924(Iso15924Var) | 1079 | cret := xUnicodeScriptFromIso15924(Iso15924Var) | ||
| 1155 | return cret | 1080 | return cret | ||
| 1156 | } | 1081 | } | ||
| @@ -1167,8 +1092,6 @@ var xUnicodeScriptToIso15924 func(UnicodeScript) uint32 | |||||
| 1167 | // [Codes for the representation of names of scripts](http://unicode.org/iso15924/codelists.html) | 1092 | // [Codes for the representation of names of scripts](http://unicode.org/iso15924/codelists.html) | ||
| 1168 | // for details. | 1093 | // for details. | ||
| 1169 | func UnicodeScriptToIso15924(ScriptVar UnicodeScript) uint32 { | 1094 | func UnicodeScriptToIso15924(ScriptVar UnicodeScript) uint32 { | ||
| 1170 | - | core.LazyRegister(&xUnicodeScriptToIso15924, "GLIB", "g_unicode_script_to_iso15924", false) | |||
| 1171 | - | ||||
| 1172 | cret := xUnicodeScriptToIso15924(ScriptVar) | 1095 | cret := xUnicodeScriptToIso15924(ScriptVar) | ||
| 1173 | return cret | 1096 | return cret | ||
| 1174 | } | 1097 | } | ||
| @@ -1179,7 +1102,6 @@ var xUtf16ToUcs4 func([]uint16, int, *int, *int, **Error) uint32 | |||||
| 1179 | // | 1102 | // | ||
| 1180 | // The result will be nul-terminated. | 1103 | // The result will be nul-terminated. | ||
| 1181 | func Utf16ToUcs4(StrVar []uint16, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint32, error) { | 1104 | func Utf16ToUcs4(StrVar []uint16, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint32, error) { | ||
| 1182 | - | core.LazyRegister(&xUtf16ToUcs4, "GLIB", "g_utf16_to_ucs4", false) | |||
| 1183 | var cerr *Error | 1105 | var cerr *Error | ||
| 1184 | 1106 | ||||
| 1185 | cret := xUtf16ToUcs4(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | 1107 | cret := xUtf16ToUcs4(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | ||
| @@ -1206,7 +1128,6 @@ var xUtf16ToUtf8 func([]uint16, int, *int, *int, **Error) string | |||||
| 1206 | // be correctly interpreted as UTF-16, i.e. it doesn’t contain | 1128 | // be correctly interpreted as UTF-16, i.e. it doesn’t contain | ||
| 1207 | // unpaired surrogates or partial character sequences. | 1129 | // unpaired surrogates or partial character sequences. | ||
| 1208 | func Utf16ToUtf8(StrVar []uint16, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (string, error) { | 1130 | func Utf16ToUtf8(StrVar []uint16, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (string, error) { | ||
| 1209 | - | core.LazyRegister(&xUtf16ToUtf8, "GLIB", "g_utf16_to_utf8", false) | |||
| 1210 | var cerr *Error | 1131 | var cerr *Error | ||
| 1211 | 1132 | ||||
| 1212 | cret := xUtf16ToUtf8(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | 1133 | cret := xUtf16ToUtf8(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | ||
| @@ -1230,8 +1151,6 @@ var xUtf8Casefold func(string, int) string | |||||
| 1230 | // takes case sensitivity into account. GLib does not currently | 1151 | // takes case sensitivity into account. GLib does not currently | ||
| 1231 | // provide such a function. | 1152 | // provide such a function. | ||
| 1232 | func Utf8Casefold(StrVar string, LenVar int) string { | 1153 | func Utf8Casefold(StrVar string, LenVar int) string { | ||
| 1233 | - | core.LazyRegister(&xUtf8Casefold, "GLIB", "g_utf8_casefold", false) | |||
| 1234 | - | ||||
| 1235 | cret := xUtf8Casefold(StrVar, LenVar) | 1154 | cret := xUtf8Casefold(StrVar, LenVar) | ||
| 1236 | return cret | 1155 | return cret | ||
| 1237 | } | 1156 | } | ||
| @@ -1249,8 +1168,6 @@ var xUtf8Collate func(string, string) int | |||||
| 1249 | // sequences, the result is undefined. This can happen if the strings are in | 1168 | // sequences, the result is undefined. This can happen if the strings are in | ||
| 1250 | // different language scripts, for example. | 1169 | // different language scripts, for example. | ||
| 1251 | func Utf8Collate(Str1Var string, Str2Var string) int { | 1170 | func Utf8Collate(Str1Var string, Str2Var string) int { | ||
| 1252 | - | core.LazyRegister(&xUtf8Collate, "GLIB", "g_utf8_collate", false) | |||
| 1253 | - | ||||
| 1254 | cret := xUtf8Collate(Str1Var, Str2Var) | 1171 | cret := xUtf8Collate(Str1Var, Str2Var) | ||
| 1255 | return cret | 1172 | return cret | ||
| 1256 | } | 1173 | } | ||
| @@ -1271,8 +1188,6 @@ var xUtf8CollateKey func(string, int) string | |||||
| 1271 | // encoding, especially UTF-8. The returned value is meant to be | 1188 | // encoding, especially UTF-8. The returned value is meant to be | ||
| 1272 | // used only for comparisons. | 1189 | // used only for comparisons. | ||
| 1273 | func Utf8CollateKey(StrVar string, LenVar int) string { | 1190 | func Utf8CollateKey(StrVar string, LenVar int) string { | ||
| 1274 | - | core.LazyRegister(&xUtf8CollateKey, "GLIB", "g_utf8_collate_key", false) | |||
| 1275 | - | ||||
| 1276 | cret := xUtf8CollateKey(StrVar, LenVar) | 1191 | cret := xUtf8CollateKey(StrVar, LenVar) | ||
| 1277 | return cret | 1192 | return cret | ||
| 1278 | } | 1193 | } | ||
| @@ -1295,8 +1210,6 @@ var xUtf8CollateKeyForFilename func(string, int) string | |||||
| 1295 | // encoding, especially UTF-8. The returned value is meant to be | 1210 | // encoding, especially UTF-8. The returned value is meant to be | ||
| 1296 | // used only for comparisons. | 1211 | // used only for comparisons. | ||
| 1297 | func Utf8CollateKeyForFilename(StrVar string, LenVar int) string { | 1212 | func Utf8CollateKeyForFilename(StrVar string, LenVar int) string { | ||
| 1298 | - | core.LazyRegister(&xUtf8CollateKeyForFilename, "GLIB", "g_utf8_collate_key_for_filename", false) | |||
| 1299 | - | ||||
| 1300 | cret := xUtf8CollateKeyForFilename(StrVar, LenVar) | 1213 | cret := xUtf8CollateKeyForFilename(StrVar, LenVar) | ||
| 1301 | return cret | 1214 | return cret | ||
| 1302 | } | 1215 | } | ||
| @@ -1314,8 +1227,6 @@ var xUtf8FindNextChar func(string, uintptr) string | |||||
| 1314 | // @end is non-`NULL`, the return value will be `NULL` if the end of the string | 1227 | // @end is non-`NULL`, the return value will be `NULL` if the end of the string | ||
| 1315 | // is reached. | 1228 | // is reached. | ||
| 1316 | func Utf8FindNextChar(PVar string, EndVar *string) string { | 1229 | func Utf8FindNextChar(PVar string, EndVar *string) string { | ||
| 1317 | - | core.LazyRegister(&xUtf8FindNextChar, "GLIB", "g_utf8_find_next_char", false) | |||
| 1318 | - | ||||
| 1319 | EndVarPtr := core.GStrdupNullable(EndVar) | 1230 | EndVarPtr := core.GStrdupNullable(EndVar) | ||
| 1320 | defer core.GFreeNullable(EndVarPtr) | 1231 | defer core.GFreeNullable(EndVarPtr) | ||
| 1321 | 1232 | ||||
| @@ -1333,8 +1244,6 @@ var xUtf8FindPrevChar func(string, string) string | |||||
| 1333 | // is made to see if the character found is actually valid other than | 1244 | // is made to see if the character found is actually valid other than | ||
| 1334 | // it starts with an appropriate byte. | 1245 | // it starts with an appropriate byte. | ||
| 1335 | func Utf8FindPrevChar(StrVar string, PVar string) string { | 1246 | func Utf8FindPrevChar(StrVar string, PVar string) string { | ||
| 1336 | - | core.LazyRegister(&xUtf8FindPrevChar, "GLIB", "g_utf8_find_prev_char", false) | |||
| 1337 | - | ||||
| 1338 | cret := xUtf8FindPrevChar(StrVar, PVar) | 1247 | cret := xUtf8FindPrevChar(StrVar, PVar) | ||
| 1339 | return cret | 1248 | return cret | ||
| 1340 | } | 1249 | } | ||
| @@ -1348,8 +1257,6 @@ var xUtf8GetChar func(string) uint32 | |||||
| 1348 | // valid Unicode characters, you should use [func@GLib.utf8_get_char_validated] | 1257 | // valid Unicode characters, you should use [func@GLib.utf8_get_char_validated] | ||
| 1349 | // instead. | 1258 | // instead. | ||
| 1350 | func Utf8GetChar(PVar string) uint32 { | 1259 | func Utf8GetChar(PVar string) uint32 { | ||
| 1351 | - | core.LazyRegister(&xUtf8GetChar, "GLIB", "g_utf8_get_char", false) | |||
| 1352 | - | ||||
| 1353 | cret := xUtf8GetChar(PVar) | 1260 | cret := xUtf8GetChar(PVar) | ||
| 1354 | return cret | 1261 | return cret | ||
| 1355 | } | 1262 | } | ||
| @@ -1366,8 +1273,6 @@ var xUtf8GetCharValidated func(string, int) uint32 | |||||
| 1366 | // @max_len is positive and any of the bytes in the first UTF-8 character | 1273 | // @max_len is positive and any of the bytes in the first UTF-8 character | ||
| 1367 | // sequence are nul. | 1274 | // sequence are nul. | ||
| 1368 | func Utf8GetCharValidated(PVar string, MaxLenVar int) uint32 { | 1275 | func Utf8GetCharValidated(PVar string, MaxLenVar int) uint32 { | ||
| 1369 | - | core.LazyRegister(&xUtf8GetCharValidated, "GLIB", "g_utf8_get_char_validated", false) | |||
| 1370 | - | ||||
| 1371 | cret := xUtf8GetCharValidated(PVar, MaxLenVar) | 1276 | cret := xUtf8GetCharValidated(PVar, MaxLenVar) | ||
| 1372 | return cret | 1277 | return cret | ||
| 1373 | } | 1278 | } | ||
| @@ -1384,8 +1289,6 @@ var xUtf8MakeValid func(string, int) string | |||||
| 1384 | // assumption that it is close enough to ASCII or UTF-8 to be mostly | 1289 | // assumption that it is close enough to ASCII or UTF-8 to be mostly | ||
| 1385 | // readable as-is. | 1290 | // readable as-is. | ||
| 1386 | func Utf8MakeValid(StrVar string, LenVar int) string { | 1291 | func Utf8MakeValid(StrVar string, LenVar int) string { | ||
| 1387 | - | core.LazyRegister(&xUtf8MakeValid, "GLIB", "g_utf8_make_valid", false) | |||
| 1388 | - | ||||
| 1389 | cret := xUtf8MakeValid(StrVar, LenVar) | 1292 | cret := xUtf8MakeValid(StrVar, LenVar) | ||
| 1390 | return cret | 1293 | return cret | ||
| 1391 | } | 1294 | } | ||
| @@ -1418,8 +1321,6 @@ var xUtf8Normalize func(string, int, NormalizeMode) string | |||||
| 1418 | // a legacy encoding or pass it to a system with | 1321 | // a legacy encoding or pass it to a system with | ||
| 1419 | // less capable Unicode handling. | 1322 | // less capable Unicode handling. | ||
| 1420 | func Utf8Normalize(StrVar string, LenVar int, ModeVar NormalizeMode) string { | 1323 | func Utf8Normalize(StrVar string, LenVar int, ModeVar NormalizeMode) string { | ||
| 1421 | - | core.LazyRegister(&xUtf8Normalize, "GLIB", "g_utf8_normalize", false) | |||
| 1422 | - | ||||
| 1423 | cret := xUtf8Normalize(StrVar, LenVar, ModeVar) | 1324 | cret := xUtf8Normalize(StrVar, LenVar, ModeVar) | ||
| 1424 | return cret | 1325 | return cret | ||
| 1425 | } | 1326 | } | ||
| @@ -1440,8 +1341,6 @@ var xUtf8OffsetToPointer func(string, int) string | |||||
| 1440 | // This limitation exists as this function is called frequently during | 1341 | // This limitation exists as this function is called frequently during | ||
| 1441 | // text rendering and therefore has to be as fast as possible. | 1342 | // text rendering and therefore has to be as fast as possible. | ||
| 1442 | func Utf8OffsetToPointer(StrVar string, OffsetVar int) string { | 1343 | func Utf8OffsetToPointer(StrVar string, OffsetVar int) string { | ||
| 1443 | - | core.LazyRegister(&xUtf8OffsetToPointer, "GLIB", "g_utf8_offset_to_pointer", false) | |||
| 1444 | - | ||||
| 1445 | cret := xUtf8OffsetToPointer(StrVar, OffsetVar) | 1344 | cret := xUtf8OffsetToPointer(StrVar, OffsetVar) | ||
| 1446 | return cret | 1345 | return cret | ||
| 1447 | } | 1346 | } | ||
| @@ -1454,8 +1353,6 @@ var xUtf8PointerToOffset func(string, string) int | |||||
| 1454 | // Since 2.10, this function allows @pos to be before @str, and returns | 1353 | // Since 2.10, this function allows @pos to be before @str, and returns | ||
| 1455 | // a negative offset in this case. | 1354 | // a negative offset in this case. | ||
| 1456 | func Utf8PointerToOffset(StrVar string, PosVar string) int { | 1355 | func Utf8PointerToOffset(StrVar string, PosVar string) int { | ||
| 1457 | - | core.LazyRegister(&xUtf8PointerToOffset, "GLIB", "g_utf8_pointer_to_offset", false) | |||
| 1458 | - | ||||
| 1459 | cret := xUtf8PointerToOffset(StrVar, PosVar) | 1356 | cret := xUtf8PointerToOffset(StrVar, PosVar) | ||
| 1460 | return cret | 1357 | return cret | ||
| 1461 | } | 1358 | } | ||
| @@ -1470,8 +1367,6 @@ var xUtf8PrevChar func(string) string | |||||
| 1470 | // character of the string, you must use [func@GLib.utf8_find_prev_char] | 1367 | // character of the string, you must use [func@GLib.utf8_find_prev_char] | ||
| 1471 | // instead. | 1368 | // instead. | ||
| 1472 | func Utf8PrevChar(PVar string) string { | 1369 | func Utf8PrevChar(PVar string) string { | ||
| 1473 | - | core.LazyRegister(&xUtf8PrevChar, "GLIB", "g_utf8_prev_char", false) | |||
| 1474 | - | ||||
| 1475 | cret := xUtf8PrevChar(PVar) | 1370 | cret := xUtf8PrevChar(PVar) | ||
| 1476 | return cret | 1371 | return cret | ||
| 1477 | } | 1372 | } | ||
| @@ -1483,8 +1378,6 @@ var xUtf8Strchr func(string, int, uint32) string | |||||
| 1483 | // | 1378 | // | ||
| 1484 | // If @len is `-1`, allow unbounded search. | 1379 | // If @len is `-1`, allow unbounded search. | ||
| 1485 | func Utf8Strchr(PVar string, LenVar int, CVar uint32) string { | 1380 | func Utf8Strchr(PVar string, LenVar int, CVar uint32) string { | ||
| 1486 | - | core.LazyRegister(&xUtf8Strchr, "GLIB", "g_utf8_strchr", false) | |||
| 1487 | - | ||||
| 1488 | cret := xUtf8Strchr(PVar, LenVar, CVar) | 1381 | cret := xUtf8Strchr(PVar, LenVar, CVar) | ||
| 1489 | return cret | 1382 | return cret | ||
| 1490 | } | 1383 | } | ||
| @@ -1496,8 +1389,6 @@ var xUtf8Strdown func(string, int) string | |||||
| 1496 | // on the current locale, and may result in the number of | 1389 | // on the current locale, and may result in the number of | ||
| 1497 | // characters in the string changing. | 1390 | // characters in the string changing. | ||
| 1498 | func Utf8Strdown(StrVar string, LenVar int) string { | 1391 | func Utf8Strdown(StrVar string, LenVar int) string { | ||
| 1499 | - | core.LazyRegister(&xUtf8Strdown, "GLIB", "g_utf8_strdown", false) | |||
| 1500 | - | ||||
| 1501 | cret := xUtf8Strdown(StrVar, LenVar) | 1392 | cret := xUtf8Strdown(StrVar, LenVar) | ||
| 1502 | return cret | 1393 | return cret | ||
| 1503 | } | 1394 | } | ||
| @@ -1508,8 +1399,6 @@ var xUtf8Strlen func(string, int) int | |||||
| 1508 | // the terminating nul character. If the @max’th byte falls in the | 1399 | // the terminating nul character. If the @max’th byte falls in the | ||
| 1509 | // middle of a character, the last (partial) character is not counted. | 1400 | // middle of a character, the last (partial) character is not counted. | ||
| 1510 | func Utf8Strlen(PVar string, MaxVar int) int { | 1401 | func Utf8Strlen(PVar string, MaxVar int) int { | ||
| 1511 | - | core.LazyRegister(&xUtf8Strlen, "GLIB", "g_utf8_strlen", false) | |||
| 1512 | - | ||||
| 1513 | cret := xUtf8Strlen(PVar, MaxVar) | 1402 | cret := xUtf8Strlen(PVar, MaxVar) | ||
| 1514 | return cret | 1403 | return cret | ||
| 1515 | } | 1404 | } | ||
| @@ -1526,8 +1415,6 @@ var xUtf8Strncpy func(string, string, uint) string | |||||
| 1526 | // Note you must ensure @dest is at least 4 * @n + 1 to fit the | 1415 | // Note you must ensure @dest is at least 4 * @n + 1 to fit the | ||
| 1527 | // largest possible UTF-8 characters | 1416 | // largest possible UTF-8 characters | ||
| 1528 | func Utf8Strncpy(DestVar string, SrcVar string, NVar uint) string { | 1417 | func Utf8Strncpy(DestVar string, SrcVar string, NVar uint) string { | ||
| 1529 | - | core.LazyRegister(&xUtf8Strncpy, "GLIB", "g_utf8_strncpy", false) | |||
| 1530 | - | ||||
| 1531 | cret := xUtf8Strncpy(DestVar, SrcVar, NVar) | 1418 | cret := xUtf8Strncpy(DestVar, SrcVar, NVar) | ||
| 1532 | return cret | 1419 | return cret | ||
| 1533 | } | 1420 | } | ||
| @@ -1539,8 +1426,6 @@ var xUtf8Strrchr func(string, int, uint32) string | |||||
| 1539 | // | 1426 | // | ||
| 1540 | // If @len is `-1`, allow unbounded search. | 1427 | // If @len is `-1`, allow unbounded search. | ||
| 1541 | func Utf8Strrchr(PVar string, LenVar int, CVar uint32) string { | 1428 | func Utf8Strrchr(PVar string, LenVar int, CVar uint32) string { | ||
| 1542 | - | core.LazyRegister(&xUtf8Strrchr, "GLIB", "g_utf8_strrchr", false) | |||
| 1543 | - | ||||
| 1544 | cret := xUtf8Strrchr(PVar, LenVar, CVar) | 1429 | cret := xUtf8Strrchr(PVar, LenVar, CVar) | ||
| 1545 | return cret | 1430 | return cret | ||
| 1546 | } | 1431 | } | ||
| @@ -1562,8 +1447,6 @@ var xUtf8Strreverse func(string, int) string | |||||
| 1562 | // newly-allocated memory, which should be freed with [func@GLib.free] when | 1447 | // newly-allocated memory, which should be freed with [func@GLib.free] when | ||
| 1563 | // no longer needed. | 1448 | // no longer needed. | ||
| 1564 | func Utf8Strreverse(StrVar string, LenVar int) string { | 1449 | func Utf8Strreverse(StrVar string, LenVar int) string { | ||
| 1565 | - | core.LazyRegister(&xUtf8Strreverse, "GLIB", "g_utf8_strreverse", false) | |||
| 1566 | - | ||||
| 1567 | cret := xUtf8Strreverse(StrVar, LenVar) | 1450 | cret := xUtf8Strreverse(StrVar, LenVar) | ||
| 1568 | return cret | 1451 | return cret | ||
| 1569 | } | 1452 | } | ||
| @@ -1576,8 +1459,6 @@ var xUtf8Strup func(string, int) string | |||||
| 1576 | // characters in the string increasing. (For instance, the | 1459 | // characters in the string increasing. (For instance, the | ||
| 1577 | // German ess-zet will be changed to SS.) | 1460 | // German ess-zet will be changed to SS.) | ||
| 1578 | func Utf8Strup(StrVar string, LenVar int) string { | 1461 | func Utf8Strup(StrVar string, LenVar int) string { | ||
| 1579 | - | core.LazyRegister(&xUtf8Strup, "GLIB", "g_utf8_strup", false) | |||
| 1580 | - | ||||
| 1581 | cret := xUtf8Strup(StrVar, LenVar) | 1462 | cret := xUtf8Strup(StrVar, LenVar) | ||
| 1582 | return cret | 1463 | return cret | ||
| 1583 | } | 1464 | } | ||
| @@ -1590,8 +1471,6 @@ var xUtf8Substring func(string, int, int) string | |||||
| 1590 | // Since GLib 2.72, `-1` can be passed to @end_pos to indicate the | 1471 | // Since GLib 2.72, `-1` can be passed to @end_pos to indicate the | ||
| 1591 | // end of the string. | 1472 | // end of the string. | ||
| 1592 | func Utf8Substring(StrVar string, StartPosVar int, EndPosVar int) string { | 1473 | func Utf8Substring(StrVar string, StartPosVar int, EndPosVar int) string { | ||
| 1593 | - | core.LazyRegister(&xUtf8Substring, "GLIB", "g_utf8_substring", false) | |||
| 1594 | - | ||||
| 1595 | cret := xUtf8Substring(StrVar, StartPosVar, EndPosVar) | 1474 | cret := xUtf8Substring(StrVar, StartPosVar, EndPosVar) | ||
| 1596 | return cret | 1475 | return cret | ||
| 1597 | } | 1476 | } | ||
| @@ -1603,7 +1482,6 @@ var xUtf8ToUcs4 func(string, int, *int, *int, **Error) uint32 | |||||
| 1603 | // A trailing nul character (U+0000) will be added to the string after the | 1482 | // A trailing nul character (U+0000) will be added to the string after the | ||
| 1604 | // converted text. | 1483 | // converted text. | ||
| 1605 | func Utf8ToUcs4(StrVar string, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint32, error) { | 1484 | func Utf8ToUcs4(StrVar string, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint32, error) { | ||
| 1606 | - | core.LazyRegister(&xUtf8ToUcs4, "GLIB", "g_utf8_to_ucs4", false) | |||
| 1607 | var cerr *Error | 1485 | var cerr *Error | ||
| 1608 | 1486 | ||||
| 1609 | cret := xUtf8ToUcs4(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | 1487 | cret := xUtf8ToUcs4(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | ||
| @@ -1622,8 +1500,6 @@ var xUtf8ToUcs4Fast func(string, int, *int) uint32 | |||||
| 1622 | // but does no error checking on the input. A trailing nul character (U+0000) | 1500 | // but does no error checking on the input. A trailing nul character (U+0000) | ||
| 1623 | // will be added to the string after the converted text. | 1501 | // will be added to the string after the converted text. | ||
| 1624 | func Utf8ToUcs4Fast(StrVar string, LenVar int, ItemsWrittenVar *int) uint32 { | 1502 | func Utf8ToUcs4Fast(StrVar string, LenVar int, ItemsWrittenVar *int) uint32 { | ||
| 1625 | - | core.LazyRegister(&xUtf8ToUcs4Fast, "GLIB", "g_utf8_to_ucs4_fast", false) | |||
| 1626 | - | ||||
| 1627 | cret := xUtf8ToUcs4Fast(StrVar, LenVar, ItemsWrittenVar) | 1503 | cret := xUtf8ToUcs4Fast(StrVar, LenVar, ItemsWrittenVar) | ||
| 1628 | return cret | 1504 | return cret | ||
| 1629 | } | 1505 | } | ||
| @@ -1634,7 +1510,6 @@ var xUtf8ToUtf16 func(string, int, *int, *int, **Error) uint16 | |||||
| 1634 | // | 1510 | // | ||
| 1635 | // A nul character (U+0000) will be added to the result after the converted text. | 1511 | // A nul character (U+0000) will be added to the result after the converted text. | ||
| 1636 | func Utf8ToUtf16(StrVar string, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint16, error) { | 1512 | func Utf8ToUtf16(StrVar string, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint16, error) { | ||
| 1637 | - | core.LazyRegister(&xUtf8ToUtf16, "GLIB", "g_utf8_to_utf16", false) | |||
| 1638 | var cerr *Error | 1513 | var cerr *Error | ||
| 1639 | 1514 | ||||
| 1640 | cret := xUtf8ToUtf16(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | 1515 | cret := xUtf8ToUtf16(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | ||
| @@ -1652,8 +1527,6 @@ var xUtf8TruncateMiddle func(string, uint) string | |||||
| 1652 | // If @string is already short enough, this returns a copy of @string. | 1527 | // If @string is already short enough, this returns a copy of @string. | ||
| 1653 | // If @truncate_length is `0`, an empty string is returned. | 1528 | // If @truncate_length is `0`, an empty string is returned. | ||
| 1654 | func Utf8TruncateMiddle(StringVar string, TruncateLengthVar uint) string { | 1529 | func Utf8TruncateMiddle(StringVar string, TruncateLengthVar uint) string { | ||
| 1655 | - | core.LazyRegister(&xUtf8TruncateMiddle, "GLIB", "g_utf8_truncate_middle", false) | |||
| 1656 | - | ||||
| 1657 | cret := xUtf8TruncateMiddle(StringVar, TruncateLengthVar) | 1530 | cret := xUtf8TruncateMiddle(StringVar, TruncateLengthVar) | ||
| 1658 | return cret | 1531 | return cret | ||
| 1659 | } | 1532 | } | ||
| @@ -1678,8 +1551,6 @@ var xUtf8Validate func([]byte, int, *[]byte) bool | |||||
| 1678 | // or the network should be checked with `g_utf8_validate()` before | 1551 | // or the network should be checked with `g_utf8_validate()` before | ||
| 1679 | // doing anything else with it. | 1552 | // doing anything else with it. | ||
| 1680 | func Utf8Validate(StrVar []byte, MaxLenVar int, EndVar *[]byte) bool { | 1553 | func Utf8Validate(StrVar []byte, MaxLenVar int, EndVar *[]byte) bool { | ||
| 1681 | - | core.LazyRegister(&xUtf8Validate, "GLIB", "g_utf8_validate", false) | |||
| 1682 | - | ||||
| 1683 | cret := xUtf8Validate(StrVar, MaxLenVar, EndVar) | 1554 | cret := xUtf8Validate(StrVar, MaxLenVar, EndVar) | ||
| 1684 | return cret | 1555 | return cret | ||
| 1685 | } | 1556 | } | ||
| @@ -1691,8 +1562,6 @@ var xUtf8ValidateLen func([]byte, uint, *[]byte) bool | |||||
| 1691 | // As with [func@GLib.utf8_validate], but @max_len must be set, and hence this | 1562 | // As with [func@GLib.utf8_validate], but @max_len must be set, and hence this | ||
| 1692 | // function will always return `FALSE` if any of the bytes of @str are nul. | 1563 | // function will always return `FALSE` if any of the bytes of @str are nul. | ||
| 1693 | func Utf8ValidateLen(StrVar []byte, MaxLenVar uint, EndVar *[]byte) bool { | 1564 | func Utf8ValidateLen(StrVar []byte, MaxLenVar uint, EndVar *[]byte) bool { | ||
| 1694 | - | core.LazyRegister(&xUtf8ValidateLen, "GLIB", "g_utf8_validate_len", false) | |||
| 1695 | - | ||||
| 1696 | cret := xUtf8ValidateLen(StrVar, MaxLenVar, EndVar) | 1565 | cret := xUtf8ValidateLen(StrVar, MaxLenVar, EndVar) | ||
| 1697 | return cret | 1566 | return cret | ||
| 1698 | } | 1567 | } | ||
| @@ -1700,4 +1569,88 @@ func Utf8ValidateLen(StrVar []byte, MaxLenVar uint, EndVar *[]byte) bool { | |||||
| 1700 | func init() { | 1569 | func init() { | ||
| 1701 | core.SetPackageName("GLIB", "glib-2.0") | 1570 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 1702 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 1571 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 1572 | + | var libs []uintptr | |||
| 1573 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 1574 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1575 | + | if err != nil { | |||
| 1576 | + | panic(err) | |||
| 1577 | + | } | |||
| 1578 | + | libs = append(libs, lib) | |||
| 1579 | + | } | |||
| 1580 | + | ||||
| 1581 | + | core.PuregoSafeRegister(&xNormalizeModeGLibType, libs, "g_normalize_mode_get_type") | |||
| 1582 | + | ||||
| 1583 | + | core.PuregoSafeRegister(&xUnicodeBreakTypeGLibType, libs, "g_unicode_break_type_get_type") | |||
| 1584 | + | ||||
| 1585 | + | core.PuregoSafeRegister(&xUnicodeScriptGLibType, libs, "g_unicode_script_get_type") | |||
| 1586 | + | ||||
| 1587 | + | core.PuregoSafeRegister(&xUnicodeTypeGLibType, libs, "g_unicode_type_get_type") | |||
| 1588 | + | ||||
| 1589 | + | core.PuregoSafeRegister(&xUcs4ToUtf16, libs, "g_ucs4_to_utf16") | |||
| 1590 | + | core.PuregoSafeRegister(&xUcs4ToUtf8, libs, "g_ucs4_to_utf8") | |||
| 1591 | + | core.PuregoSafeRegister(&xUnicharBreakType, libs, "g_unichar_break_type") | |||
| 1592 | + | core.PuregoSafeRegister(&xUnicharCombiningClass, libs, "g_unichar_combining_class") | |||
| 1593 | + | core.PuregoSafeRegister(&xUnicharCompose, libs, "g_unichar_compose") | |||
| 1594 | + | core.PuregoSafeRegister(&xUnicharDecompose, libs, "g_unichar_decompose") | |||
| 1595 | + | core.PuregoSafeRegister(&xUnicharDigitValue, libs, "g_unichar_digit_value") | |||
| 1596 | + | core.PuregoSafeRegister(&xUnicharFullyDecompose, libs, "g_unichar_fully_decompose") | |||
| 1597 | + | core.PuregoSafeRegister(&xUnicharGetMirrorChar, libs, "g_unichar_get_mirror_char") | |||
| 1598 | + | core.PuregoSafeRegister(&xUnicharGetScript, libs, "g_unichar_get_script") | |||
| 1599 | + | core.PuregoSafeRegister(&xUnicharIsalnum, libs, "g_unichar_isalnum") | |||
| 1600 | + | core.PuregoSafeRegister(&xUnicharIsalpha, libs, "g_unichar_isalpha") | |||
| 1601 | + | core.PuregoSafeRegister(&xUnicharIscntrl, libs, "g_unichar_iscntrl") | |||
| 1602 | + | core.PuregoSafeRegister(&xUnicharIsdefined, libs, "g_unichar_isdefined") | |||
| 1603 | + | core.PuregoSafeRegister(&xUnicharIsdigit, libs, "g_unichar_isdigit") | |||
| 1604 | + | core.PuregoSafeRegister(&xUnicharIsgraph, libs, "g_unichar_isgraph") | |||
| 1605 | + | core.PuregoSafeRegister(&xUnicharIslower, libs, "g_unichar_islower") | |||
| 1606 | + | core.PuregoSafeRegister(&xUnicharIsmark, libs, "g_unichar_ismark") | |||
| 1607 | + | core.PuregoSafeRegister(&xUnicharIsprint, libs, "g_unichar_isprint") | |||
| 1608 | + | core.PuregoSafeRegister(&xUnicharIspunct, libs, "g_unichar_ispunct") | |||
| 1609 | + | core.PuregoSafeRegister(&xUnicharIsspace, libs, "g_unichar_isspace") | |||
| 1610 | + | core.PuregoSafeRegister(&xUnicharIstitle, libs, "g_unichar_istitle") | |||
| 1611 | + | core.PuregoSafeRegister(&xUnicharIsupper, libs, "g_unichar_isupper") | |||
| 1612 | + | core.PuregoSafeRegister(&xUnicharIswide, libs, "g_unichar_iswide") | |||
| 1613 | + | core.PuregoSafeRegister(&xUnicharIswideCjk, libs, "g_unichar_iswide_cjk") | |||
| 1614 | + | core.PuregoSafeRegister(&xUnicharIsxdigit, libs, "g_unichar_isxdigit") | |||
| 1615 | + | core.PuregoSafeRegister(&xUnicharIszerowidth, libs, "g_unichar_iszerowidth") | |||
| 1616 | + | core.PuregoSafeRegister(&xUnicharToUtf8, libs, "g_unichar_to_utf8") | |||
| 1617 | + | core.PuregoSafeRegister(&xUnicharTolower, libs, "g_unichar_tolower") | |||
| 1618 | + | core.PuregoSafeRegister(&xUnicharTotitle, libs, "g_unichar_totitle") | |||
| 1619 | + | core.PuregoSafeRegister(&xUnicharToupper, libs, "g_unichar_toupper") | |||
| 1620 | + | core.PuregoSafeRegister(&xUnicharType, libs, "g_unichar_type") | |||
| 1621 | + | core.PuregoSafeRegister(&xUnicharValidate, libs, "g_unichar_validate") | |||
| 1622 | + | core.PuregoSafeRegister(&xUnicharXdigitValue, libs, "g_unichar_xdigit_value") | |||
| 1623 | + | core.PuregoSafeRegister(&xUnicodeCanonicalDecomposition, libs, "g_unicode_canonical_decomposition") | |||
| 1624 | + | core.PuregoSafeRegister(&xUnicodeCanonicalOrdering, libs, "g_unicode_canonical_ordering") | |||
| 1625 | + | core.PuregoSafeRegister(&xUnicodeScriptFromIso15924, libs, "g_unicode_script_from_iso15924") | |||
| 1626 | + | core.PuregoSafeRegister(&xUnicodeScriptToIso15924, libs, "g_unicode_script_to_iso15924") | |||
| 1627 | + | core.PuregoSafeRegister(&xUtf16ToUcs4, libs, "g_utf16_to_ucs4") | |||
| 1628 | + | core.PuregoSafeRegister(&xUtf16ToUtf8, libs, "g_utf16_to_utf8") | |||
| 1629 | + | core.PuregoSafeRegister(&xUtf8Casefold, libs, "g_utf8_casefold") | |||
| 1630 | + | core.PuregoSafeRegister(&xUtf8Collate, libs, "g_utf8_collate") | |||
| 1631 | + | core.PuregoSafeRegister(&xUtf8CollateKey, libs, "g_utf8_collate_key") | |||
| 1632 | + | core.PuregoSafeRegister(&xUtf8CollateKeyForFilename, libs, "g_utf8_collate_key_for_filename") | |||
| 1633 | + | core.PuregoSafeRegister(&xUtf8FindNextChar, libs, "g_utf8_find_next_char") | |||
| 1634 | + | core.PuregoSafeRegister(&xUtf8FindPrevChar, libs, "g_utf8_find_prev_char") | |||
| 1635 | + | core.PuregoSafeRegister(&xUtf8GetChar, libs, "g_utf8_get_char") | |||
| 1636 | + | core.PuregoSafeRegister(&xUtf8GetCharValidated, libs, "g_utf8_get_char_validated") | |||
| 1637 | + | core.PuregoSafeRegister(&xUtf8MakeValid, libs, "g_utf8_make_valid") | |||
| 1638 | + | core.PuregoSafeRegister(&xUtf8Normalize, libs, "g_utf8_normalize") | |||
| 1639 | + | core.PuregoSafeRegister(&xUtf8OffsetToPointer, libs, "g_utf8_offset_to_pointer") | |||
| 1640 | + | core.PuregoSafeRegister(&xUtf8PointerToOffset, libs, "g_utf8_pointer_to_offset") | |||
| 1641 | + | core.PuregoSafeRegister(&xUtf8PrevChar, libs, "g_utf8_prev_char") | |||
| 1642 | + | core.PuregoSafeRegister(&xUtf8Strchr, libs, "g_utf8_strchr") | |||
| 1643 | + | core.PuregoSafeRegister(&xUtf8Strdown, libs, "g_utf8_strdown") | |||
| 1644 | + | core.PuregoSafeRegister(&xUtf8Strlen, libs, "g_utf8_strlen") | |||
| 1645 | + | core.PuregoSafeRegister(&xUtf8Strncpy, libs, "g_utf8_strncpy") | |||
| 1646 | + | core.PuregoSafeRegister(&xUtf8Strrchr, libs, "g_utf8_strrchr") | |||
| 1647 | + | core.PuregoSafeRegister(&xUtf8Strreverse, libs, "g_utf8_strreverse") | |||
| 1648 | + | core.PuregoSafeRegister(&xUtf8Strup, libs, "g_utf8_strup") | |||
| 1649 | + | core.PuregoSafeRegister(&xUtf8Substring, libs, "g_utf8_substring") | |||
| 1650 | + | core.PuregoSafeRegister(&xUtf8ToUcs4, libs, "g_utf8_to_ucs4") | |||
| 1651 | + | core.PuregoSafeRegister(&xUtf8ToUcs4Fast, libs, "g_utf8_to_ucs4_fast") | |||
| 1652 | + | core.PuregoSafeRegister(&xUtf8ToUtf16, libs, "g_utf8_to_utf16") | |||
| 1653 | + | core.PuregoSafeRegister(&xUtf8TruncateMiddle, libs, "g_utf8_truncate_middle") | |||
| 1654 | + | core.PuregoSafeRegister(&xUtf8Validate, libs, "g_utf8_validate") | |||
| 1655 | + | core.PuregoSafeRegister(&xUtf8ValidateLen, libs, "g_utf8_validate_len") | |||
| 1703 | } | 1656 | } | ||