@girs/glib-2.0 2.77.0-3.2.2 → 2.77.0-3.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/glib-2.0.d.cts CHANGED
@@ -3680,19 +3680,19 @@ export const BIG_ENDIAN: number
3680
3680
  * Used for specifying valid identifier characters
3681
3681
  * in #GScannerConfig.
3682
3682
  */
3683
- export const CSET_A_2_Z: string | null
3683
+ export const CSET_A_2_Z: string
3684
3684
  /**
3685
3685
  * The set of ASCII digits.
3686
3686
  * Used for specifying valid identifier characters
3687
3687
  * in #GScannerConfig.
3688
3688
  */
3689
- export const CSET_DIGITS: string | null
3689
+ export const CSET_DIGITS: string
3690
3690
  /**
3691
3691
  * The set of lowercase ASCII alphabet characters.
3692
3692
  * Used for specifying valid identifier characters
3693
3693
  * in #GScannerConfig.
3694
3694
  */
3695
- export const CSET_a_2_z: string | null
3695
+ export const CSET_a_2_z: string
3696
3696
  /**
3697
3697
  * The C standard version the code is compiling against, it's normally
3698
3698
  * defined with the same value of `__STDC_VERSION__` for C standard
@@ -3732,7 +3732,7 @@ export const DIR_SEPARATOR: number
3732
3732
  * The directory separator as a string.
3733
3733
  * This is "/" on UNIX machines and "\" under Windows.
3734
3734
  */
3735
- export const DIR_SEPARATOR_S: string | null
3735
+ export const DIR_SEPARATOR_S: string
3736
3736
  /**
3737
3737
  * The base of natural logarithms.
3738
3738
  */
@@ -3757,7 +3757,7 @@ export const E: number
3757
3757
  * ```
3758
3758
  *
3759
3759
  */
3760
- export const GINT16_FORMAT: string | null
3760
+ export const GINT16_FORMAT: string
3761
3761
  /**
3762
3762
  * The platform dependent length modifier for conversion specifiers
3763
3763
  * for scanning and printing values of type #gint16 or #guint16. It
@@ -3777,7 +3777,7 @@ export const GINT16_FORMAT: string | null
3777
3777
  * `int16_t` values, even though the in-memory representation is the same.
3778
3778
  * Standard C macros like `PRId16` and `SCNd16` should be used for `int16_t`.
3779
3779
  */
3780
- export const GINT16_MODIFIER: string | null
3780
+ export const GINT16_MODIFIER: string
3781
3781
  /**
3782
3782
  * This is the platform dependent conversion specifier for scanning
3783
3783
  * and printing values of type #gint32. See also %G_GINT16_FORMAT.
@@ -3786,7 +3786,7 @@ export const GINT16_MODIFIER: string | null
3786
3786
  * `int32_t` values, even though the in-memory representation is the same.
3787
3787
  * Standard C macros like `PRId32` and `SCNd32` should be used for `int32_t`.
3788
3788
  */
3789
- export const GINT32_FORMAT: string | null
3789
+ export const GINT32_FORMAT: string
3790
3790
  /**
3791
3791
  * The platform dependent length modifier for conversion specifiers
3792
3792
  * for scanning and printing values of type #gint32 or #guint32. It
@@ -3796,7 +3796,7 @@ export const GINT32_FORMAT: string | null
3796
3796
  * `int32_t` values, even though the in-memory representation is the same.
3797
3797
  * Standard C macros like `PRId32` and `SCNd32` should be used for `int32_t`.
3798
3798
  */
3799
- export const GINT32_MODIFIER: string | null
3799
+ export const GINT32_MODIFIER: string
3800
3800
  /**
3801
3801
  * This is the platform dependent conversion specifier for scanning
3802
3802
  * and printing values of type #gint64. See also %G_GINT16_FORMAT.
@@ -3812,7 +3812,7 @@ export const GINT32_MODIFIER: string | null
3812
3812
  * `int64_t` values, even though the in-memory representation is the same.
3813
3813
  * Standard C macros like `PRId64` and `SCNd64` should be used for `int64_t`.
3814
3814
  */
3815
- export const GINT64_FORMAT: string | null
3815
+ export const GINT64_FORMAT: string
3816
3816
  /**
3817
3817
  * The platform dependent length modifier for conversion specifiers
3818
3818
  * for scanning and printing values of type #gint64 or #guint64.
@@ -3826,7 +3826,7 @@ export const GINT64_FORMAT: string | null
3826
3826
  * `int64_t` values, even though the in-memory representation is the same.
3827
3827
  * Standard C macros like `PRId64` and `SCNd64` should be used for `int64_t`.
3828
3828
  */
3829
- export const GINT64_MODIFIER: string | null
3829
+ export const GINT64_MODIFIER: string
3830
3830
  /**
3831
3831
  * This is the platform dependent conversion specifier for scanning
3832
3832
  * and printing values of type #gintptr.
@@ -3837,7 +3837,7 @@ export const GINT64_MODIFIER: string | null
3837
3837
  * Standard C macros like `PRIdPTR` and `SCNdPTR` should be used for
3838
3838
  * `intptr_t`.
3839
3839
  */
3840
- export const GINTPTR_FORMAT: string | null
3840
+ export const GINTPTR_FORMAT: string
3841
3841
  /**
3842
3842
  * The platform dependent length modifier for conversion specifiers
3843
3843
  * for scanning and printing values of type #gintptr or #guintptr.
@@ -3849,17 +3849,17 @@ export const GINTPTR_FORMAT: string | null
3849
3849
  * Standard C macros like `PRIdPTR` and `SCNdPTR` should be used for
3850
3850
  * `intptr_t`.
3851
3851
  */
3852
- export const GINTPTR_MODIFIER: string | null
3852
+ export const GINTPTR_MODIFIER: string
3853
3853
  /**
3854
3854
  * Expands to "" on all modern compilers, and to __FUNCTION__ on gcc
3855
3855
  * version 2.x. Don't use it.
3856
3856
  */
3857
- export const GNUC_FUNCTION: string | null
3857
+ export const GNUC_FUNCTION: string
3858
3858
  /**
3859
3859
  * Expands to "" on all modern compilers, and to __PRETTY_FUNCTION__
3860
3860
  * on gcc version 2.x. Don't use it.
3861
3861
  */
3862
- export const GNUC_PRETTY_FUNCTION: string | null
3862
+ export const GNUC_PRETTY_FUNCTION: string
3863
3863
  /**
3864
3864
  * This is the platform dependent conversion specifier for scanning
3865
3865
  * and printing values of type #gsize. See also %G_GINT16_FORMAT.
@@ -3869,7 +3869,7 @@ export const GNUC_PRETTY_FUNCTION: string | null
3869
3869
  * same. The standard C `"zu"` format should be used for `size_t`,
3870
3870
  * assuming a C99-compliant `printf` implementation is available.
3871
3871
  */
3872
- export const GSIZE_FORMAT: string | null
3872
+ export const GSIZE_FORMAT: string
3873
3873
  /**
3874
3874
  * The platform dependent length modifier for conversion specifiers
3875
3875
  * for scanning and printing values of type #gsize. It
@@ -3880,7 +3880,7 @@ export const GSIZE_FORMAT: string | null
3880
3880
  * same. The Standard C `"z"` modifier should be used for `size_t`,
3881
3881
  * assuming a C99-compliant `printf` implementation is available.
3882
3882
  */
3883
- export const GSIZE_MODIFIER: string | null
3883
+ export const GSIZE_MODIFIER: string
3884
3884
  /**
3885
3885
  * This is the platform dependent conversion specifier for scanning
3886
3886
  * and printing values of type #gssize. See also %G_GINT16_FORMAT.
@@ -3890,7 +3890,7 @@ export const GSIZE_MODIFIER: string | null
3890
3890
  * representation is the same.
3891
3891
  * On POSIX platforms, the `"zd"` format should be used for `ssize_t`.
3892
3892
  */
3893
- export const GSSIZE_FORMAT: string | null
3893
+ export const GSSIZE_FORMAT: string
3894
3894
  /**
3895
3895
  * The platform dependent length modifier for conversion specifiers
3896
3896
  * for scanning and printing values of type #gssize. It
@@ -3901,7 +3901,7 @@ export const GSSIZE_FORMAT: string | null
3901
3901
  * representation is the same.
3902
3902
  * On POSIX platforms, the `"z"` modifier should be used for `ssize_t`.
3903
3903
  */
3904
- export const GSSIZE_MODIFIER: string | null
3904
+ export const GSSIZE_MODIFIER: string
3905
3905
  /**
3906
3906
  * This is the platform dependent conversion specifier for scanning
3907
3907
  * and printing values of type #guint16. See also %G_GINT16_FORMAT
@@ -3910,7 +3910,7 @@ export const GSSIZE_MODIFIER: string | null
3910
3910
  * `uint16_t` values, even though the in-memory representation is the same.
3911
3911
  * Standard C macros like `PRIu16` and `SCNu16` should be used for `uint16_t`.
3912
3912
  */
3913
- export const GUINT16_FORMAT: string | null
3913
+ export const GUINT16_FORMAT: string
3914
3914
  /**
3915
3915
  * This is the platform dependent conversion specifier for scanning
3916
3916
  * and printing values of type #guint32. See also %G_GINT16_FORMAT.
@@ -3919,7 +3919,7 @@ export const GUINT16_FORMAT: string | null
3919
3919
  * `uint32_t` values, even though the in-memory representation is the same.
3920
3920
  * Standard C macros like `PRIu32` and `SCNu32` should be used for `uint32_t`.
3921
3921
  */
3922
- export const GUINT32_FORMAT: string | null
3922
+ export const GUINT32_FORMAT: string
3923
3923
  /**
3924
3924
  * This is the platform dependent conversion specifier for scanning
3925
3925
  * and printing values of type #guint64. See also %G_GINT16_FORMAT.
@@ -3935,7 +3935,7 @@ export const GUINT32_FORMAT: string | null
3935
3935
  * `uint64_t` values, even though the in-memory representation is the same.
3936
3936
  * Standard C macros like `PRIu64` and `SCNu64` should be used for `uint64_t`.
3937
3937
  */
3938
- export const GUINT64_FORMAT: string | null
3938
+ export const GUINT64_FORMAT: string
3939
3939
  /**
3940
3940
  * This is the platform dependent conversion specifier
3941
3941
  * for scanning and printing values of type #guintptr.
@@ -3946,7 +3946,7 @@ export const GUINT64_FORMAT: string | null
3946
3946
  * Standard C macros like `PRIuPTR` and `SCNuPTR` should be used for
3947
3947
  * `uintptr_t`.
3948
3948
  */
3949
- export const GUINTPTR_FORMAT: string | null
3949
+ export const GUINTPTR_FORMAT: string
3950
3950
  export const HAVE_GINT64: number
3951
3951
  export const HAVE_GNUC_VARARGS: number
3952
3952
  /**
@@ -3976,110 +3976,110 @@ export const IEEE754_FLOAT_BIAS: number
3976
3976
  * Consult the specification for more
3977
3977
  * details about the meanings of the keys below.
3978
3978
  */
3979
- export const KEY_FILE_DESKTOP_GROUP: string | null
3979
+ export const KEY_FILE_DESKTOP_GROUP: string
3980
3980
  /**
3981
3981
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string list
3982
3982
  * giving the available application actions.
3983
3983
  */
3984
- export const KEY_FILE_DESKTOP_KEY_ACTIONS: string | null
3984
+ export const KEY_FILE_DESKTOP_KEY_ACTIONS: string
3985
3985
  /**
3986
3986
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list
3987
3987
  * of strings giving the categories in which the desktop entry
3988
3988
  * should be shown in a menu.
3989
3989
  */
3990
- export const KEY_FILE_DESKTOP_KEY_CATEGORIES: string | null
3990
+ export const KEY_FILE_DESKTOP_KEY_CATEGORIES: string
3991
3991
  /**
3992
3992
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
3993
3993
  * string giving the tooltip for the desktop entry.
3994
3994
  */
3995
- export const KEY_FILE_DESKTOP_KEY_COMMENT: string | null
3995
+ export const KEY_FILE_DESKTOP_KEY_COMMENT: string
3996
3996
  /**
3997
3997
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
3998
3998
  * set to true if the application is D-Bus activatable.
3999
3999
  */
4000
- export const KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE: string | null
4000
+ export const KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE: string
4001
4001
  /**
4002
4002
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
4003
4003
  * giving the command line to execute. It is only valid for desktop
4004
4004
  * entries with the `Application` type.
4005
4005
  */
4006
- export const KEY_FILE_DESKTOP_KEY_EXEC: string | null
4006
+ export const KEY_FILE_DESKTOP_KEY_EXEC: string
4007
4007
  /**
4008
4008
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
4009
4009
  * string giving the generic name of the desktop entry.
4010
4010
  */
4011
- export const KEY_FILE_DESKTOP_KEY_GENERIC_NAME: string | null
4011
+ export const KEY_FILE_DESKTOP_KEY_GENERIC_NAME: string
4012
4012
  /**
4013
4013
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
4014
4014
  * stating whether the desktop entry has been deleted by the user.
4015
4015
  */
4016
- export const KEY_FILE_DESKTOP_KEY_HIDDEN: string | null
4016
+ export const KEY_FILE_DESKTOP_KEY_HIDDEN: string
4017
4017
  /**
4018
4018
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
4019
4019
  * string giving the name of the icon to be displayed for the desktop
4020
4020
  * entry.
4021
4021
  */
4022
- export const KEY_FILE_DESKTOP_KEY_ICON: string | null
4022
+ export const KEY_FILE_DESKTOP_KEY_ICON: string
4023
4023
  /**
4024
4024
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list
4025
4025
  * of strings giving the MIME types supported by this desktop entry.
4026
4026
  */
4027
- export const KEY_FILE_DESKTOP_KEY_MIME_TYPE: string | null
4027
+ export const KEY_FILE_DESKTOP_KEY_MIME_TYPE: string
4028
4028
  /**
4029
4029
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
4030
4030
  * string giving the specific name of the desktop entry.
4031
4031
  */
4032
- export const KEY_FILE_DESKTOP_KEY_NAME: string | null
4032
+ export const KEY_FILE_DESKTOP_KEY_NAME: string
4033
4033
  /**
4034
4034
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list of
4035
4035
  * strings identifying the environments that should not display the
4036
4036
  * desktop entry.
4037
4037
  */
4038
- export const KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN: string | null
4038
+ export const KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN: string
4039
4039
  /**
4040
4040
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
4041
4041
  * stating whether the desktop entry should be shown in menus.
4042
4042
  */
4043
- export const KEY_FILE_DESKTOP_KEY_NO_DISPLAY: string | null
4043
+ export const KEY_FILE_DESKTOP_KEY_NO_DISPLAY: string
4044
4044
  /**
4045
4045
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list of
4046
4046
  * strings identifying the environments that should display the
4047
4047
  * desktop entry.
4048
4048
  */
4049
- export const KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN: string | null
4049
+ export const KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN: string
4050
4050
  /**
4051
4051
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
4052
4052
  * containing the working directory to run the program in. It is only
4053
4053
  * valid for desktop entries with the `Application` type.
4054
4054
  */
4055
- export const KEY_FILE_DESKTOP_KEY_PATH: string | null
4055
+ export const KEY_FILE_DESKTOP_KEY_PATH: string
4056
4056
  /**
4057
4057
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
4058
4058
  * stating whether the application supports the
4059
4059
  * [Startup Notification Protocol Specification](http://www.freedesktop.org/Standards/startup-notification-spec).
4060
4060
  */
4061
- export const KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY: string | null
4061
+ export const KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY: string
4062
4062
  /**
4063
4063
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is string
4064
4064
  * identifying the WM class or name hint of a window that the application
4065
4065
  * will create, which can be used to emulate Startup Notification with
4066
4066
  * older applications.
4067
4067
  */
4068
- export const KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS: string | null
4068
+ export const KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS: string
4069
4069
  /**
4070
4070
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
4071
4071
  * stating whether the program should be run in a terminal window.
4072
4072
  *
4073
4073
  * It is only valid for desktop entries with the `Application` type.
4074
4074
  */
4075
- export const KEY_FILE_DESKTOP_KEY_TERMINAL: string | null
4075
+ export const KEY_FILE_DESKTOP_KEY_TERMINAL: string
4076
4076
  /**
4077
4077
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
4078
4078
  * giving the file name of a binary on disk used to determine if the
4079
4079
  * program is actually installed. It is only valid for desktop entries
4080
4080
  * with the `Application` type.
4081
4081
  */
4082
- export const KEY_FILE_DESKTOP_KEY_TRY_EXEC: string | null
4082
+ export const KEY_FILE_DESKTOP_KEY_TRY_EXEC: string
4083
4083
  /**
4084
4084
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
4085
4085
  * giving the type of the desktop entry.
@@ -4088,34 +4088,34 @@ export const KEY_FILE_DESKTOP_KEY_TRY_EXEC: string | null
4088
4088
  * %G_KEY_FILE_DESKTOP_TYPE_LINK, or
4089
4089
  * %G_KEY_FILE_DESKTOP_TYPE_DIRECTORY.
4090
4090
  */
4091
- export const KEY_FILE_DESKTOP_KEY_TYPE: string | null
4091
+ export const KEY_FILE_DESKTOP_KEY_TYPE: string
4092
4092
  /**
4093
4093
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
4094
4094
  * giving the URL to access. It is only valid for desktop entries
4095
4095
  * with the `Link` type.
4096
4096
  */
4097
- export const KEY_FILE_DESKTOP_KEY_URL: string | null
4097
+ export const KEY_FILE_DESKTOP_KEY_URL: string
4098
4098
  /**
4099
4099
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
4100
4100
  * giving the version of the Desktop Entry Specification used for
4101
4101
  * the desktop entry file.
4102
4102
  */
4103
- export const KEY_FILE_DESKTOP_KEY_VERSION: string | null
4103
+ export const KEY_FILE_DESKTOP_KEY_VERSION: string
4104
4104
  /**
4105
4105
  * The value of the %G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop
4106
4106
  * entries representing applications.
4107
4107
  */
4108
- export const KEY_FILE_DESKTOP_TYPE_APPLICATION: string | null
4108
+ export const KEY_FILE_DESKTOP_TYPE_APPLICATION: string
4109
4109
  /**
4110
4110
  * The value of the %G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop
4111
4111
  * entries representing directories.
4112
4112
  */
4113
- export const KEY_FILE_DESKTOP_TYPE_DIRECTORY: string | null
4113
+ export const KEY_FILE_DESKTOP_TYPE_DIRECTORY: string
4114
4114
  /**
4115
4115
  * The value of the %G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop
4116
4116
  * entries representing links to documents.
4117
4117
  */
4118
- export const KEY_FILE_DESKTOP_TYPE_LINK: string | null
4118
+ export const KEY_FILE_DESKTOP_TYPE_LINK: string
4119
4119
  /**
4120
4120
  * Specifies one of the possible types of byte order.
4121
4121
  * See %G_BYTE_ORDER.
@@ -4266,7 +4266,7 @@ export const MININT8: number
4266
4266
  * linked against at application run time.
4267
4267
  */
4268
4268
  export const MINOR_VERSION: number
4269
- export const MODULE_SUFFIX: string | null
4269
+ export const MODULE_SUFFIX: string
4270
4270
  /**
4271
4271
  * If a long option in the main group has this name, it is not treated as a
4272
4272
  * regular option. Instead it collects all non-option arguments which would
@@ -4279,7 +4279,7 @@ export const MODULE_SUFFIX: string | null
4279
4279
  * for leftover arguments has the advantage that GOption takes care of
4280
4280
  * necessary encoding conversions for strings or filenames.
4281
4281
  */
4282
- export const OPTION_REMAINING: string | null
4282
+ export const OPTION_REMAINING: string
4283
4283
  /**
4284
4284
  * Specifies one of the possible types of byte order
4285
4285
  * (currently unused). See %G_BYTE_ORDER.
@@ -4293,7 +4293,7 @@ export const PI: number
4293
4293
  * A format specifier that can be used in printf()-style format strings
4294
4294
  * when printing a #GPid.
4295
4295
  */
4296
- export const PID_FORMAT: string | null
4296
+ export const PID_FORMAT: string
4297
4297
  /**
4298
4298
  * Pi divided by 2.
4299
4299
  */
@@ -4306,7 +4306,7 @@ export const PI_4: number
4306
4306
  * A format specifier that can be used in printf()-style format strings
4307
4307
  * when printing the `fd` member of a #GPollFD.
4308
4308
  */
4309
- export const POLLFD_FORMAT: string | null
4309
+ export const POLLFD_FORMAT: string
4310
4310
  /**
4311
4311
  * Use this for default priority event sources.
4312
4312
  *
@@ -4375,7 +4375,7 @@ export const SEARCHPATH_SEPARATOR: number
4375
4375
  * The search path separator as a string.
4376
4376
  * This is ":" on UNIX machines and ";" under Windows.
4377
4377
  */
4378
- export const SEARCHPATH_SEPARATOR_S: string | null
4378
+ export const SEARCHPATH_SEPARATOR_S: string
4379
4379
  export const SIZEOF_LONG: number
4380
4380
  export const SIZEOF_SIZE_T: number
4381
4381
  export const SIZEOF_SSIZE_T: number
@@ -4397,7 +4397,7 @@ export const SQRT2: number
4397
4397
  /**
4398
4398
  * The standard delimiters, used in g_strdelimit().
4399
4399
  */
4400
- export const STR_DELIMITERS: string | null
4400
+ export const STR_DELIMITERS: string
4401
4401
  export const SYSDEF_AF_INET: number
4402
4402
  export const SYSDEF_AF_INET6: number
4403
4403
  export const SYSDEF_AF_UNIX: number
@@ -4429,7 +4429,7 @@ export const SYSDEF_MSG_PEEK: number
4429
4429
  * calls to functions like g_get_user_cache_dir(), the caller must be prepared
4430
4430
  * to create the directory if it doesn’t exist.
4431
4431
  */
4432
- export const TEST_OPTION_ISOLATE_DIRS: string | null
4432
+ export const TEST_OPTION_ISOLATE_DIRS: string
4433
4433
  /**
4434
4434
  * Evaluates to a time span of one day.
4435
4435
  */
@@ -4461,12 +4461,12 @@ export const UNICHAR_MAX_DECOMPOSITION_LENGTH: number
4461
4461
  * Generic delimiters characters as defined in
4462
4462
  * [RFC 3986](https://tools.ietf.org/html/rfc3986). Includes `:/?#[]```.
4463
4463
  */
4464
- export const URI_RESERVED_CHARS_GENERIC_DELIMITERS: string | null
4464
+ export const URI_RESERVED_CHARS_GENERIC_DELIMITERS: string
4465
4465
  /**
4466
4466
  * Subcomponent delimiter characters as defined in
4467
4467
  * [RFC 3986](https://tools.ietf.org/html/rfc3986). Includes `!$&'()*+,;=`.
4468
4468
  */
4469
- export const URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: string | null
4469
+ export const URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: string
4470
4470
  /**
4471
4471
  * Number of microseconds in one second (1 million).
4472
4472
  * This macro is provided for code readability.
@@ -4597,7 +4597,7 @@ export function ascii_dtostr(buffer: string | null, buf_len: number, d: number):
4597
4597
  * @param d The #gdouble to convert
4598
4598
  * @returns The pointer to the buffer with the converted string.
4599
4599
  */
4600
- export function ascii_formatd(buffer: string | null, buf_len: number, format: string | null, d: number): string | null
4600
+ export function ascii_formatd(buffer: string | null, buf_len: number, format: string, d: number): string | null
4601
4601
  /**
4602
4602
  * Compare two strings, ignoring the case of ASCII characters.
4603
4603
  *
@@ -4618,14 +4618,14 @@ export function ascii_formatd(buffer: string | null, buf_len: number, format: st
4618
4618
  * @param s2 string to compare with `s1`
4619
4619
  * @returns 0 if the strings match, a negative value if @s1 < @s2, or a positive value if @s1 > @s2.
4620
4620
  */
4621
- export function ascii_strcasecmp(s1: string | null, s2: string | null): number
4621
+ export function ascii_strcasecmp(s1: string, s2: string): number
4622
4622
  /**
4623
4623
  * Converts all upper case ASCII letters to lower case ASCII letters.
4624
4624
  * @param str a string
4625
4625
  * @param len length of `str` in bytes, or -1 if `str` is nul-terminated
4626
4626
  * @returns a newly-allocated string, with all the upper case characters in @str converted to lower case, with semantics that exactly match g_ascii_tolower(). (Note that this is unlike the old g_strdown(), which modified the string in place.)
4627
4627
  */
4628
- export function ascii_strdown(str: string | null, len: number): string | null
4628
+ export function ascii_strdown(str: string, len: number): string | null
4629
4629
  /**
4630
4630
  * A convenience function for converting a string to a signed number.
4631
4631
  *
@@ -4654,7 +4654,7 @@ export function ascii_strdown(str: string | null, len: number): string | null
4654
4654
  * @param max an upper bound (inclusive)
4655
4655
  * @returns %TRUE if @str was a number, otherwise %FALSE.
4656
4656
  */
4657
- export function ascii_string_to_signed(str: string | null, base: number, min: number, max: number): [ /* returnType */ boolean, /* out_num */ number ]
4657
+ export function ascii_string_to_signed(str: string, base: number, min: number, max: number): [ /* returnType */ boolean, /* out_num */ number ]
4658
4658
  /**
4659
4659
  * A convenience function for converting a string to an unsigned number.
4660
4660
  *
@@ -4684,7 +4684,7 @@ export function ascii_string_to_signed(str: string | null, base: number, min: nu
4684
4684
  * @param max an upper bound (inclusive)
4685
4685
  * @returns %TRUE if @str was a number, otherwise %FALSE.
4686
4686
  */
4687
- export function ascii_string_to_unsigned(str: string | null, base: number, min: number, max: number): [ /* returnType */ boolean, /* out_num */ number ]
4687
+ export function ascii_string_to_unsigned(str: string, base: number, min: number, max: number): [ /* returnType */ boolean, /* out_num */ number ]
4688
4688
  /**
4689
4689
  * Compare `s1` and `s2`, ignoring the case of ASCII characters and any
4690
4690
  * characters after the first `n` in each string. If either string is
@@ -4703,7 +4703,7 @@ export function ascii_string_to_unsigned(str: string | null, base: number, min:
4703
4703
  * @param n number of characters to compare
4704
4704
  * @returns 0 if the strings match, a negative value if @s1 < @s2, or a positive value if @s1 > @s2.
4705
4705
  */
4706
- export function ascii_strncasecmp(s1: string | null, s2: string | null, n: number): number
4706
+ export function ascii_strncasecmp(s1: string, s2: string, n: number): number
4707
4707
  /**
4708
4708
  * Converts a string to a #gdouble value.
4709
4709
  *
@@ -4731,7 +4731,7 @@ export function ascii_strncasecmp(s1: string | null, s2: string | null, n: numbe
4731
4731
  * @param nptr the string to convert to a numeric value.
4732
4732
  * @returns the #gdouble value.
4733
4733
  */
4734
- export function ascii_strtod(nptr: string | null): [ /* returnType */ number, /* endptr */ string | null ]
4734
+ export function ascii_strtod(nptr: string): [ /* returnType */ number, /* endptr */ string ]
4735
4735
  /**
4736
4736
  * Converts a string to a #gint64 value.
4737
4737
  * This function behaves like the standard strtoll() function
@@ -4754,7 +4754,7 @@ export function ascii_strtod(nptr: string | null): [ /* returnType */ number, /*
4754
4754
  * @param base to be used for the conversion, 2..36 or 0
4755
4755
  * @returns the #gint64 value or zero on error.
4756
4756
  */
4757
- export function ascii_strtoll(nptr: string | null, base: number): [ /* returnType */ number, /* endptr */ string | null ]
4757
+ export function ascii_strtoll(nptr: string, base: number): [ /* returnType */ number, /* endptr */ string ]
4758
4758
  /**
4759
4759
  * Converts a string to a #guint64 value.
4760
4760
  * This function behaves like the standard strtoull() function
@@ -4782,14 +4782,14 @@ export function ascii_strtoll(nptr: string | null, base: number): [ /* returnTyp
4782
4782
  * @param base to be used for the conversion, 2..36 or 0
4783
4783
  * @returns the #guint64 value or zero on error.
4784
4784
  */
4785
- export function ascii_strtoull(nptr: string | null, base: number): [ /* returnType */ number, /* endptr */ string | null ]
4785
+ export function ascii_strtoull(nptr: string, base: number): [ /* returnType */ number, /* endptr */ string ]
4786
4786
  /**
4787
4787
  * Converts all lower case ASCII letters to upper case ASCII letters.
4788
4788
  * @param str a string
4789
4789
  * @param len length of `str` in bytes, or -1 if `str` is nul-terminated
4790
4790
  * @returns a newly allocated string, with all the lower case characters in @str converted to upper case, with semantics that exactly match g_ascii_toupper(). (Note that this is unlike the old g_strup(), which modified the string in place.)
4791
4791
  */
4792
- export function ascii_strup(str: string | null, len: number): string | null
4792
+ export function ascii_strup(str: string, len: number): string | null
4793
4793
  /**
4794
4794
  * Convert a character to ASCII lower case.
4795
4795
  *
@@ -4827,12 +4827,12 @@ export function ascii_toupper(c: number): number
4827
4827
  * @returns If @c is a hex digit (according to g_ascii_isxdigit()), its numeric value. Otherwise, -1.
4828
4828
  */
4829
4829
  export function ascii_xdigit_value(c: number): number
4830
- export function assert_warning(log_domain: string | null, file: string | null, line: number, pretty_function: string | null, expression: string | null): void
4831
- export function assertion_message(domain: string | null, file: string | null, line: number, func: string | null, message: string | null): void
4832
- export function assertion_message_cmpint(domain: string | null, file: string | null, line: number, func: string | null, expr: string | null, arg1: number, cmp: string | null, arg2: number, numtype: number): void
4833
- export function assertion_message_cmpstr(domain: string | null, file: string | null, line: number, func: string | null, expr: string | null, arg1: string | null, cmp: string | null, arg2: string | null): void
4834
- export function assertion_message_cmpstrv(domain: string | null, file: string | null, line: number, func: string | null, expr: string | null, arg1: string | null, arg2: string | null, first_wrong_idx: number): void
4835
- export function assertion_message_error(domain: string | null, file: string | null, line: number, func: string | null, expr: string | null, error: Error, error_domain: Quark, error_code: number): void
4830
+ export function assert_warning(log_domain: string, file: string, line: number, pretty_function: string, expression: string): void
4831
+ export function assertion_message(domain: string, file: string, line: number, func: string, message: string): void
4832
+ export function assertion_message_cmpint(domain: string, file: string, line: number, func: string, expr: string, arg1: number, cmp: string, arg2: number, numtype: number): void
4833
+ export function assertion_message_cmpstr(domain: string, file: string, line: number, func: string, expr: string, arg1: string, cmp: string, arg2: string): void
4834
+ export function assertion_message_cmpstrv(domain: string, file: string, line: number, func: string, expr: string, arg1: string, arg2: string, first_wrong_idx: number): void
4835
+ export function assertion_message_error(domain: string, file: string, line: number, func: string, expr: string, error: Error, error_domain: Quark, error_code: number): void
4836
4836
  /**
4837
4837
  * Specifies a function to be called at normal program termination.
4838
4838
  *
@@ -5284,7 +5284,7 @@ export function atomic_ref_count_init(arc: number): void
5284
5284
  * @param text zero-terminated string with base64 text to decode
5285
5285
  * @returns newly allocated buffer containing the binary data that @text represents. The returned buffer must be freed with g_free().
5286
5286
  */
5287
- export function base64_decode(text: string | null): Uint8Array
5287
+ export function base64_decode(text: string): Uint8Array
5288
5288
  /**
5289
5289
  * Decode a sequence of Base-64 encoded text into binary data
5290
5290
  * by overwriting the input data.
@@ -5451,7 +5451,7 @@ export function build_filenamev(args: string[]): string
5451
5451
  * @param args %NULL-terminated array of strings containing the path elements.
5452
5452
  * @returns a newly-allocated string that must be freed with g_free().
5453
5453
  */
5454
- export function build_pathv(separator: string | null, args: string[]): string
5454
+ export function build_pathv(separator: string, args: string[]): string
5455
5455
  /**
5456
5456
  * Frees the memory allocated by the #GByteArray. If `free_segment` is
5457
5457
  * %TRUE it frees the actual byte data. If the reference count of
@@ -5700,7 +5700,7 @@ export function compute_checksum_for_data(checksum_type: ChecksumType, data: Uin
5700
5700
  * @param length the length of the string, or -1 if the string is null-terminated.
5701
5701
  * @returns the checksum as a hexadecimal string, or %NULL if g_checksum_new() fails for @checksum_type. The returned string should be freed with g_free() when done using it.
5702
5702
  */
5703
- export function compute_checksum_for_string(checksum_type: ChecksumType, str: string | null, length: number): string | null
5703
+ export function compute_checksum_for_string(checksum_type: ChecksumType, str: string, length: number): string | null
5704
5704
  /**
5705
5705
  * Computes the HMAC for a binary `data`. This is a
5706
5706
  * convenience wrapper for g_hmac_new(), g_hmac_get_string()
@@ -5735,7 +5735,7 @@ export function compute_hmac_for_data(digest_type: ChecksumType, key: Uint8Array
5735
5735
  * @param length the length of the string, or -1 if the string is nul-terminated
5736
5736
  * @returns the HMAC as a hexadecimal string. The returned string should be freed with g_free() when done using it.
5737
5737
  */
5738
- export function compute_hmac_for_string(digest_type: ChecksumType, key: Uint8Array, str: string | null, length: number): string | null
5738
+ export function compute_hmac_for_string(digest_type: ChecksumType, key: Uint8Array, str: string, length: number): string | null
5739
5739
  /**
5740
5740
  * Converts a string from one character set to another.
5741
5741
  *
@@ -5756,7 +5756,7 @@ export function compute_hmac_for_string(digest_type: ChecksumType, key: Uint8Arr
5756
5756
  * @param from_codeset character set of `str`.
5757
5757
  * @returns If the conversion was successful, a newly allocated buffer containing the converted string, which must be freed with g_free(). Otherwise %NULL and @error will be set.
5758
5758
  */
5759
- export function convert(str: Uint8Array, to_codeset: string | null, from_codeset: string | null): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
5759
+ export function convert(str: Uint8Array, to_codeset: string, from_codeset: string): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
5760
5760
  export function convert_error_quark(): Quark
5761
5761
  /**
5762
5762
  * Converts a string from one character set to another, possibly
@@ -5782,7 +5782,7 @@ export function convert_error_quark(): Quark
5782
5782
  * @param fallback UTF-8 string to use in place of characters not present in the target encoding. (The string must be representable in the target encoding). If %NULL, characters not in the target encoding will be represented as Unicode escapes \uxxxx or \Uxxxxyyyy.
5783
5783
  * @returns If the conversion was successful, a newly allocated buffer containing the converted string, which must be freed with g_free(). Otherwise %NULL and @error will be set.
5784
5784
  */
5785
- export function convert_with_fallback(str: Uint8Array, to_codeset: string | null, from_codeset: string | null, fallback: string | null): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
5785
+ export function convert_with_fallback(str: Uint8Array, to_codeset: string, from_codeset: string, fallback: string): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
5786
5786
  /**
5787
5787
  * Calls the given function for each data element of the datalist. The
5788
5788
  * function is called with each data element's #GQuark id and data,
@@ -5805,7 +5805,7 @@ export function datalist_foreach(datalist: Data, func: DataForeachFunc): void
5805
5805
  * @param key the string identifying a data element.
5806
5806
  * @returns the data element, or %NULL if it is not found.
5807
5807
  */
5808
- export function datalist_get_data(datalist: Data, key: string | null): any | null
5808
+ export function datalist_get_data(datalist: Data, key: string): any | null
5809
5809
  /**
5810
5810
  * Gets flags values packed in together with the datalist.
5811
5811
  * See g_datalist_set_flags().
@@ -5935,7 +5935,7 @@ export function date_is_leap_year(year: DateYear): boolean
5935
5935
  * @param date valid #GDate
5936
5936
  * @returns number of characters written to the buffer, or 0 the buffer was too small
5937
5937
  */
5938
- export function date_strftime(s: string | null, slen: number, format: string | null, date: Date): number
5938
+ export function date_strftime(s: string | null, slen: number, format: string, date: Date): number
5939
5939
  /**
5940
5940
  * Returns %TRUE if the day of the month is valid (a day is valid if it's
5941
5941
  * between 1 and 31 inclusive).
@@ -5991,7 +5991,7 @@ export function date_valid_year(year: DateYear): boolean
5991
5991
  * @param category a locale category
5992
5992
  * @returns the translated string for the given locale category
5993
5993
  */
5994
- export function dcgettext(domain: string | null, msgid: string | null, category: number): string | null
5994
+ export function dcgettext(domain: string | null, msgid: string, category: number): string
5995
5995
  /**
5996
5996
  * This function is a wrapper of dgettext() which does not translate
5997
5997
  * the message if the default domain as set with textdomain() has no
@@ -6029,7 +6029,7 @@ export function dcgettext(domain: string | null, msgid: string | null, category:
6029
6029
  * @param msgid message to translate
6030
6030
  * @returns The translated string
6031
6031
  */
6032
- export function dgettext(domain: string | null, msgid: string | null): string | null
6032
+ export function dgettext(domain: string | null, msgid: string): string
6033
6033
  /**
6034
6034
  * Creates a subdirectory in the preferred directory for temporary
6035
6035
  * files (as returned by g_get_tmp_dir()).
@@ -6084,7 +6084,7 @@ export function direct_hash(v: any | null): number
6084
6084
  * @param n the quantity for which translation is needed
6085
6085
  * @returns The translated string
6086
6086
  */
6087
- export function dngettext(domain: string | null, msgid: string | null, msgid_plural: string | null, n: number): string | null
6087
+ export function dngettext(domain: string | null, msgid: string, msgid_plural: string, n: number): string
6088
6088
  /**
6089
6089
  * Compares the two #gdouble values being pointed to and returns
6090
6090
  * %TRUE if they are equal.
@@ -6124,7 +6124,7 @@ export function double_hash(v: any): number
6124
6124
  * @param msgidoffset the offset of the message id in `msgctxid`
6125
6125
  * @returns The translated string
6126
6126
  */
6127
- export function dpgettext(domain: string | null, msgctxtid: string | null, msgidoffset: number): string | null
6127
+ export function dpgettext(domain: string | null, msgctxtid: string, msgidoffset: number): string
6128
6128
  /**
6129
6129
  * This function is a variant of g_dgettext() which supports
6130
6130
  * a disambiguating message context. GNU gettext uses the
@@ -6141,7 +6141,7 @@ export function dpgettext(domain: string | null, msgctxtid: string | null, msgid
6141
6141
  * @param msgid the message
6142
6142
  * @returns The translated string
6143
6143
  */
6144
- export function dpgettext2(domain: string | null, context: string | null, msgid: string | null): string | null
6144
+ export function dpgettext2(domain: string | null, context: string, msgid: string): string
6145
6145
  /**
6146
6146
  * Returns the value of the environment variable `variable` in the
6147
6147
  * provided list `envp`.
@@ -6435,7 +6435,7 @@ export function filename_display_name(filename: string): string | null
6435
6435
  * @param uri a uri describing a filename (escaped, encoded in ASCII).
6436
6436
  * @returns a newly-allocated string holding the resulting filename, or %NULL on an error.
6437
6437
  */
6438
- export function filename_from_uri(uri: string | null): [ /* returnType */ string, /* hostname */ string | null ]
6438
+ export function filename_from_uri(uri: string): [ /* returnType */ string, /* hostname */ string | null ]
6439
6439
  /**
6440
6440
  * Converts a string from UTF-8 to the encoding GLib uses for
6441
6441
  * filenames. Note that on Windows GLib uses UTF-8 for filenames;
@@ -6451,7 +6451,7 @@ export function filename_from_uri(uri: string | null): [ /* returnType */ string
6451
6451
  * @param len the length of the string, or -1 if the string is nul-terminated.
6452
6452
  * @returns The converted string, or %NULL on an error.
6453
6453
  */
6454
- export function filename_from_utf8(utf8string: string | null, len: number): [ /* returnType */ string, /* bytes_read */ number, /* bytes_written */ number ]
6454
+ export function filename_from_utf8(utf8string: string, len: number): [ /* returnType */ string, /* bytes_read */ number, /* bytes_written */ number ]
6455
6455
  /**
6456
6456
  * Converts an absolute filename to an escaped ASCII-encoded URI, with the path
6457
6457
  * component following Section 3.3. of RFC 2396.
@@ -6610,7 +6610,7 @@ export function get_application_name(): string | null
6610
6610
  * freed.
6611
6611
  * @returns %TRUE if the returned charset is UTF-8
6612
6612
  */
6613
- export function get_charset(): [ /* returnType */ boolean, /* charset */ string | null ]
6613
+ export function get_charset(): [ /* returnType */ boolean, /* charset */ string ]
6614
6614
  /**
6615
6615
  * Gets the character set for the current locale.
6616
6616
  * @returns a newly allocated string containing the name of the character set. This string must be freed with g_free().
@@ -6636,7 +6636,7 @@ export function get_codeset(): string | null
6636
6636
  * freed.
6637
6637
  * @returns %TRUE if the returned charset is UTF-8
6638
6638
  */
6639
- export function get_console_charset(): [ /* returnType */ boolean, /* charset */ string | null ]
6639
+ export function get_console_charset(): [ /* returnType */ boolean, /* charset */ string ]
6640
6640
  /**
6641
6641
  * Gets the current directory.
6642
6642
  *
@@ -6741,7 +6741,7 @@ export function get_home_dir(): string
6741
6741
  * The encoding of the returned string is UTF-8.
6742
6742
  * @returns the host name of the machine.
6743
6743
  */
6744
- export function get_host_name(): string | null
6744
+ export function get_host_name(): string
6745
6745
  /**
6746
6746
  * Computes a list of applicable locale names, which can be used to
6747
6747
  * e.g. construct locale-dependent filenames or search paths. The returned
@@ -6771,7 +6771,7 @@ export function get_language_names(): string[]
6771
6771
  * @param category_name a locale category name
6772
6772
  * @returns a %NULL-terminated array of strings owned by the thread g_get_language_names_with_category was called from. It must not be modified or freed. It must be copied if planned to be used in another thread.
6773
6773
  */
6774
- export function get_language_names_with_category(category_name: string | null): string[]
6774
+ export function get_language_names_with_category(category_name: string): string[]
6775
6775
  /**
6776
6776
  * Returns a list of derived variants of `locale,` which can be used to
6777
6777
  * e.g. construct locale-dependent filenames or search paths. The returned
@@ -6791,7 +6791,7 @@ export function get_language_names_with_category(category_name: string | null):
6791
6791
  * @param locale a locale identifier
6792
6792
  * @returns a newly allocated array of newly allocated strings with the locale variants. Free with g_strfreev().
6793
6793
  */
6794
- export function get_locale_variants(locale: string | null): string[]
6794
+ export function get_locale_variants(locale: string): string[]
6795
6795
  /**
6796
6796
  * Queries the system monotonic time.
6797
6797
  *
@@ -6826,7 +6826,7 @@ export function get_num_processors(): number
6826
6826
  * @param key_name a key for the OS info being requested, for example %G_OS_INFO_KEY_NAME.
6827
6827
  * @returns The associated value for the requested key or %NULL if this information is not provided.
6828
6828
  */
6829
- export function get_os_info(key_name: string | null): string | null
6829
+ export function get_os_info(key_name: string): string | null
6830
6830
  /**
6831
6831
  * Gets the name of the program. This name should not be localized,
6832
6832
  * in contrast to g_get_application_name().
@@ -7314,7 +7314,7 @@ export function hook_unref(hook_list: HookList, hook: Hook): void
7314
7314
  * @param hostname a hostname
7315
7315
  * @returns %TRUE if @hostname contains any ASCII-encoded segments.
7316
7316
  */
7317
- export function hostname_is_ascii_encoded(hostname: string | null): boolean
7317
+ export function hostname_is_ascii_encoded(hostname: string): boolean
7318
7318
  /**
7319
7319
  * Tests if `hostname` is the string form of an IPv4 or IPv6 address.
7320
7320
  * (Eg, "192.168.0.1".)
@@ -7323,7 +7323,7 @@ export function hostname_is_ascii_encoded(hostname: string | null): boolean
7323
7323
  * @param hostname a hostname (or IP address in string form)
7324
7324
  * @returns %TRUE if @hostname is an IP address
7325
7325
  */
7326
- export function hostname_is_ip_address(hostname: string | null): boolean
7326
+ export function hostname_is_ip_address(hostname: string): boolean
7327
7327
  /**
7328
7328
  * Tests if `hostname` contains Unicode characters. If this returns
7329
7329
  * %TRUE, you need to encode the hostname with g_hostname_to_ascii()
@@ -7335,7 +7335,7 @@ export function hostname_is_ip_address(hostname: string | null): boolean
7335
7335
  * @param hostname a hostname
7336
7336
  * @returns %TRUE if @hostname contains any non-ASCII characters
7337
7337
  */
7338
- export function hostname_is_non_ascii(hostname: string | null): boolean
7338
+ export function hostname_is_non_ascii(hostname: string): boolean
7339
7339
  /**
7340
7340
  * Converts `hostname` to its canonical ASCII form; an ASCII-only
7341
7341
  * string containing no uppercase letters and not ending with a
@@ -7343,7 +7343,7 @@ export function hostname_is_non_ascii(hostname: string | null): boolean
7343
7343
  * @param hostname a valid UTF-8 or ASCII hostname
7344
7344
  * @returns an ASCII hostname, which must be freed, or %NULL if @hostname is in some way invalid.
7345
7345
  */
7346
- export function hostname_to_ascii(hostname: string | null): string | null
7346
+ export function hostname_to_ascii(hostname: string): string | null
7347
7347
  /**
7348
7348
  * Converts `hostname` to its canonical presentation form; a UTF-8
7349
7349
  * string in Unicode normalization form C, containing no uppercase
@@ -7355,7 +7355,7 @@ export function hostname_to_ascii(hostname: string | null): string | null
7355
7355
  * @param hostname a valid UTF-8 or ASCII hostname
7356
7356
  * @returns a UTF-8 hostname, which must be freed, or %NULL if @hostname is in some way invalid.
7357
7357
  */
7358
- export function hostname_to_unicode(hostname: string | null): string | null
7358
+ export function hostname_to_unicode(hostname: string): string | null
7359
7359
  /**
7360
7360
  * Adds a function to be called whenever there are no higher priority
7361
7361
  * events pending.
@@ -7453,7 +7453,7 @@ export function int_hash(v: any): number
7453
7453
  * @param string a static string
7454
7454
  * @returns a canonical representation for the string
7455
7455
  */
7456
- export function intern_static_string(string: string | null): string | null
7456
+ export function intern_static_string(string: string | null): string
7457
7457
  /**
7458
7458
  * Returns a canonical representation for `string`. Interned strings
7459
7459
  * can be compared for equality by comparing the pointers, instead of
@@ -7465,7 +7465,7 @@ export function intern_static_string(string: string | null): string | null
7465
7465
  * @param string a string
7466
7466
  * @returns a canonical representation for the string
7467
7467
  */
7468
- export function intern_string(string: string | null): string | null
7468
+ export function intern_string(string: string | null): string
7469
7469
  /**
7470
7470
  * Adds the #GIOChannel into the default main loop context
7471
7471
  * with the given priority.
@@ -7534,7 +7534,7 @@ export function listenv(): string[]
7534
7534
  * @param len the length of the string, or -1 if the string is nul-terminated.
7535
7535
  * @returns A newly-allocated buffer containing the converted string, or %NULL on an error, and error will be set.
7536
7536
  */
7537
- export function locale_from_utf8(utf8string: string | null, len: number): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
7537
+ export function locale_from_utf8(utf8string: string, len: number): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
7538
7538
  /**
7539
7539
  * Converts a string which is in the encoding used for strings by
7540
7540
  * the C runtime (usually the same as that used by the operating
@@ -7604,7 +7604,7 @@ export function log_get_debug_enabled(): boolean
7604
7604
  * @param log_domain the log domain
7605
7605
  * @param handler_id the id of the handler, which was returned in g_log_set_handler()
7606
7606
  */
7607
- export function log_remove_handler(log_domain: string | null, handler_id: number): void
7607
+ export function log_remove_handler(log_domain: string, handler_id: number): void
7608
7608
  /**
7609
7609
  * Sets the message levels which are always fatal, in any log domain.
7610
7610
  * When a message with any of these levels is logged the program terminates.
@@ -7654,7 +7654,7 @@ export function log_set_debug_enabled(enabled: boolean): void
7654
7654
  * @param fatal_mask the new fatal mask
7655
7655
  * @returns the old fatal mask for the log domain
7656
7656
  */
7657
- export function log_set_fatal_mask(log_domain: string | null, fatal_mask: LogLevelFlags): LogLevelFlags
7657
+ export function log_set_fatal_mask(log_domain: string, fatal_mask: LogLevelFlags): LogLevelFlags
7658
7658
  /**
7659
7659
  * Like g_log_set_handler(), but takes a destroy notify for the `user_data`.
7660
7660
  *
@@ -8078,7 +8078,7 @@ export function markup_error_quark(): Quark
8078
8078
  * @param length length of `text` in bytes, or -1 if the text is nul-terminated
8079
8079
  * @returns a newly allocated string with the escaped text
8080
8080
  */
8081
- export function markup_escape_text(text: string | null, length: number): string | null
8081
+ export function markup_escape_text(text: string, length: number): string | null
8082
8082
  /**
8083
8083
  * Checks whether the allocator used by g_malloc() is the system's
8084
8084
  * malloc implementation. If it returns %TRUE memory allocated with
@@ -8186,7 +8186,7 @@ export function number_parser_error_quark(): Quark
8186
8186
  * calling g_on_error_stack_trace() instead.
8187
8187
  * @param prg_name the program name, needed by gdb for the "[S]tack trace" option. If `prg_name` is %NULL, g_get_prgname() is called to get the program name (which will work correctly if gdk_init() or gtk_init() has been called)
8188
8188
  */
8189
- export function on_error_query(prg_name: string | null): void
8189
+ export function on_error_query(prg_name: string): void
8190
8190
  /**
8191
8191
  * Invokes gdb, which attaches to the current process and shows a
8192
8192
  * stack trace. Called by g_on_error_query() when the "[S]tack trace"
@@ -8203,7 +8203,7 @@ export function on_error_query(prg_name: string | null): void
8203
8203
  * handle that exception (see [Running GLib Applications](glib-running.html)).
8204
8204
  * @param prg_name the program name, needed by gdb for the "[S]tack trace" option
8205
8205
  */
8206
- export function on_error_stack_trace(prg_name: string | null): void
8206
+ export function on_error_stack_trace(prg_name: string): void
8207
8207
  /**
8208
8208
  * Function to be called when starting a critical initialization
8209
8209
  * section. The argument `location` must point to a static
@@ -8351,7 +8351,7 @@ export function path_skip_root(file_name: string): string | null
8351
8351
  * @param string the UTF-8 encoded string to match
8352
8352
  * @returns %TRUE if @string matches @pspec
8353
8353
  */
8354
- export function pattern_match_simple(pattern: string | null, string: string | null): boolean
8354
+ export function pattern_match_simple(pattern: string, string: string): boolean
8355
8355
  /**
8356
8356
  * This is equivalent to g_bit_lock, but working on pointers (or other
8357
8357
  * pointer-sized values).
@@ -8422,7 +8422,7 @@ export function poll(fds: PollFD, nfds: number, timeout: number): number
8422
8422
  * @param err a return location for a #GError, or %NULL
8423
8423
  * @param prefix string to prefix `err` with
8424
8424
  */
8425
- export function prefix_error_literal(err: Error | null, prefix: string | null): void
8425
+ export function prefix_error_literal(err: Error | null, prefix: string): void
8426
8426
  /**
8427
8427
  * If `dest` is %NULL, free `src;` otherwise, moves `src` into *`dest`.
8428
8428
  * The error variable `dest` points to must be %NULL.
@@ -8473,7 +8473,7 @@ export function quark_from_string(string: string | null): Quark
8473
8473
  * @param quark a #GQuark.
8474
8474
  * @returns the string associated with the #GQuark
8475
8475
  */
8476
- export function quark_to_string(quark: Quark): string | null
8476
+ export function quark_to_string(quark: Quark): string
8477
8477
  /**
8478
8478
  * Gets the #GQuark associated with the given string, or 0 if string is
8479
8479
  * %NULL or it has no associated #GQuark.
@@ -8658,7 +8658,7 @@ export function ref_string_length(str: string | null): number
8658
8658
  * @param str a NUL-terminated string
8659
8659
  * @returns the newly created reference counted string
8660
8660
  */
8661
- export function ref_string_new(str: string | null): string | null
8661
+ export function ref_string_new(str: string): string | null
8662
8662
  /**
8663
8663
  * Creates a new reference counted string and copies the content of `str`
8664
8664
  * into it.
@@ -8669,7 +8669,7 @@ export function ref_string_new(str: string | null): string | null
8669
8669
  * @param str a NUL-terminated string
8670
8670
  * @returns the newly created reference counted string, or a new reference to an existing string
8671
8671
  */
8672
- export function ref_string_new_intern(str: string | null): string | null
8672
+ export function ref_string_new_intern(str: string): string | null
8673
8673
  /**
8674
8674
  * Creates a new reference counted string and copies the contents of `str`
8675
8675
  * into it, up to `len` bytes.
@@ -8680,7 +8680,7 @@ export function ref_string_new_intern(str: string | null): string | null
8680
8680
  * @param len length of `str` to use, or -1 if `str` is nul-terminated
8681
8681
  * @returns the newly created reference counted string
8682
8682
  */
8683
- export function ref_string_new_len(str: string | null, len: number): string | null
8683
+ export function ref_string_new_len(str: string, len: number): string | null
8684
8684
  /**
8685
8685
  * Releases a reference on a string; if it was the last reference, the
8686
8686
  * resources allocated by the string are freed as well.
@@ -8700,7 +8700,7 @@ export function ref_string_release(str: string | null): void
8700
8700
  * @param replacement the replacement string
8701
8701
  * @returns whether @replacement is a valid replacement string
8702
8702
  */
8703
- export function regex_check_replacement(replacement: string | null): [ /* returnType */ boolean, /* has_references */ boolean ]
8703
+ export function regex_check_replacement(replacement: string): [ /* returnType */ boolean, /* has_references */ boolean ]
8704
8704
  export function regex_error_quark(): Quark
8705
8705
  /**
8706
8706
  * Escapes the nul characters in `string` to "\x00". It can be used
@@ -8712,7 +8712,7 @@ export function regex_error_quark(): Quark
8712
8712
  * @param length the length of `string`
8713
8713
  * @returns a newly-allocated escaped string
8714
8714
  */
8715
- export function regex_escape_nul(string: string | null, length: number): string | null
8715
+ export function regex_escape_nul(string: string, length: number): string | null
8716
8716
  /**
8717
8717
  * Escapes the special characters used for regular expressions
8718
8718
  * in `string,` for instance "a.b*c" becomes "a\.b\*c". This
@@ -8725,7 +8725,7 @@ export function regex_escape_nul(string: string | null, length: number): string
8725
8725
  * @param length the length of `string,` in bytes, or -1 if `string` is nul-terminated
8726
8726
  * @returns a newly-allocated escaped string
8727
8727
  */
8728
- export function regex_escape_string(string: string | null, length: number): string | null
8728
+ export function regex_escape_string(string: string, length: number): string | null
8729
8729
  /**
8730
8730
  * Scans for a match in `string` for `pattern`.
8731
8731
  *
@@ -8743,7 +8743,7 @@ export function regex_escape_string(string: string | null, length: number): stri
8743
8743
  * @param match_options match options, or 0
8744
8744
  * @returns %TRUE if the string matched, %FALSE otherwise
8745
8745
  */
8746
- export function regex_match_simple(pattern: string | null, string: string | null, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): boolean
8746
+ export function regex_match_simple(pattern: string, string: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): boolean
8747
8747
  /**
8748
8748
  * Breaks the string on the pattern, and returns an array of
8749
8749
  * the tokens. If the pattern contains capturing parentheses,
@@ -8778,7 +8778,7 @@ export function regex_match_simple(pattern: string | null, string: string | null
8778
8778
  * @param match_options match options, or 0
8779
8779
  * @returns a %NULL-terminated array of strings. Free it using g_strfreev()
8780
8780
  */
8781
- export function regex_split_simple(pattern: string | null, string: string | null, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): string[]
8781
+ export function regex_split_simple(pattern: string, string: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): string[]
8782
8782
  /**
8783
8783
  * Resets the cache used for g_get_user_special_dir(), so
8784
8784
  * that the latest on-disk version is used. Call this only
@@ -8895,7 +8895,7 @@ export function sequence_swap(a: SequenceIter, b: SequenceIter): void
8895
8895
  * or when displaying an application's name in the task list.
8896
8896
  * @param application_name localized name of the application
8897
8897
  */
8898
- export function set_application_name(application_name: string | null): void
8898
+ export function set_application_name(application_name: string): void
8899
8899
  /**
8900
8900
  * Does nothing if `err` is %NULL; if `err` is non-%NULL, then *`err`
8901
8901
  * must be %NULL. A new #GError is created and assigned to *`err`.
@@ -8906,7 +8906,7 @@ export function set_application_name(application_name: string | null): void
8906
8906
  * @param code error code
8907
8907
  * @param message error message
8908
8908
  */
8909
- export function set_error_literal(domain: Quark, code: number, message: string | null): /* err */ Error
8909
+ export function set_error_literal(domain: Quark, code: number, message: string): /* err */ Error
8910
8910
  /**
8911
8911
  * Sets the name of the program. This name should not be localized,
8912
8912
  * in contrast to g_set_application_name().
@@ -8922,7 +8922,7 @@ export function set_error_literal(domain: Quark, code: number, message: string |
8922
8922
  * could only be called once per process.
8923
8923
  * @param prgname the name of the program.
8924
8924
  */
8925
- export function set_prgname(prgname: string | null): void
8925
+ export function set_prgname(prgname: string): void
8926
8926
  /**
8927
8927
  * Sets an environment variable. On UNIX, both the variable's name and
8928
8928
  * value can be arbitrary byte strings, except that the variable's name
@@ -9155,7 +9155,7 @@ export function source_remove_by_user_data(user_data: any | null): boolean
9155
9155
  * @param tag a #GSource ID
9156
9156
  * @param name debug name for the source
9157
9157
  */
9158
- export function source_set_name_by_id(tag: number, name: string | null): void
9158
+ export function source_set_name_by_id(tag: number, name: string): void
9159
9159
  /**
9160
9160
  * Gets the smallest prime number from a built-in array of primes which
9161
9161
  * is larger than `num`. This is used within GLib to calculate the optimum
@@ -9584,7 +9584,7 @@ export function spawn_sync(working_directory: string | null, argv: string[], env
9584
9584
  * @param src source string.
9585
9585
  * @returns a pointer to the trailing nul byte in `dest`.
9586
9586
  */
9587
- export function stpcpy(dest: string | null, src: string | null): string | null
9587
+ export function stpcpy(dest: string | null, src: string): string | null
9588
9588
  /**
9589
9589
  * Compares two strings for byte-by-byte equality and returns %TRUE
9590
9590
  * if they are equal. It can be passed to g_hash_table_new() as the
@@ -9605,14 +9605,14 @@ export function str_equal(v1: any, v2: any): boolean
9605
9605
  * @param prefix the nul-terminated prefix to look for
9606
9606
  * @returns %TRUE if @str begins with @prefix, %FALSE otherwise.
9607
9607
  */
9608
- export function str_has_prefix(str: string | null, prefix: string | null): boolean
9608
+ export function str_has_prefix(str: string, prefix: string): boolean
9609
9609
  /**
9610
9610
  * Looks whether the string `str` ends with `suffix`.
9611
9611
  * @param str a nul-terminated string
9612
9612
  * @param suffix the nul-terminated suffix to look for
9613
9613
  * @returns %TRUE if @str end with @suffix, %FALSE otherwise.
9614
9614
  */
9615
- export function str_has_suffix(str: string | null, suffix: string | null): boolean
9615
+ export function str_has_suffix(str: string, suffix: string): boolean
9616
9616
  /**
9617
9617
  * Converts a string to a hash value.
9618
9618
  *
@@ -9638,7 +9638,7 @@ export function str_hash(v: any): number
9638
9638
  * @param str a string
9639
9639
  * @returns %TRUE if @str is ASCII
9640
9640
  */
9641
- export function str_is_ascii(str: string | null): boolean
9641
+ export function str_is_ascii(str: string): boolean
9642
9642
  /**
9643
9643
  * Checks if a search conducted for `search_term` should match
9644
9644
  * `potential_hit`.
@@ -9667,7 +9667,7 @@ export function str_is_ascii(str: string | null): boolean
9667
9667
  * @param accept_alternates %TRUE to accept ASCII alternates
9668
9668
  * @returns %TRUE if @potential_hit is a hit
9669
9669
  */
9670
- export function str_match_string(search_term: string | null, potential_hit: string | null, accept_alternates: boolean): boolean
9670
+ export function str_match_string(search_term: string, potential_hit: string, accept_alternates: boolean): boolean
9671
9671
  /**
9672
9672
  * Transliterate `str` to plain ASCII.
9673
9673
  *
@@ -9691,7 +9691,7 @@ export function str_match_string(search_term: string | null, potential_hit: stri
9691
9691
  * @param from_locale the source locale, if known
9692
9692
  * @returns a string in plain ASCII
9693
9693
  */
9694
- export function str_to_ascii(str: string | null, from_locale: string | null): string | null
9694
+ export function str_to_ascii(str: string, from_locale: string | null): string | null
9695
9695
  /**
9696
9696
  * Tokenises `string` and performs folding on each token.
9697
9697
  *
@@ -9712,7 +9712,7 @@ export function str_to_ascii(str: string | null, from_locale: string | null): st
9712
9712
  * @param translit_locale the language code (like 'de' or 'en_GB') from which `string` originates
9713
9713
  * @returns the folded tokens
9714
9714
  */
9715
- export function str_tokenize_and_fold(string: string | null, translit_locale: string | null): [ /* returnType */ string[], /* ascii_alternates */ string[] ]
9715
+ export function str_tokenize_and_fold(string: string, translit_locale: string | null): [ /* returnType */ string[], /* ascii_alternates */ string[] ]
9716
9716
  /**
9717
9717
  * For each character in `string,` if the character is not in `valid_chars,`
9718
9718
  * replaces the character with `substitutor`.
@@ -9740,7 +9740,7 @@ export function str_tokenize_and_fold(string: string | null, translit_locale: st
9740
9740
  * @param substitutor replacement character for disallowed bytes
9741
9741
  * @returns the modified @string
9742
9742
  */
9743
- export function strcanon(string: string | null, valid_chars: string | null, substitutor: number): string | null
9743
+ export function strcanon(string: string | null, valid_chars: string, substitutor: number): string | null
9744
9744
  /**
9745
9745
  * A case-insensitive string comparison, corresponding to the standard
9746
9746
  * strcasecmp() function on platforms which support it.
@@ -9748,7 +9748,7 @@ export function strcanon(string: string | null, valid_chars: string | null, subs
9748
9748
  * @param s2 a string to compare with `s1`
9749
9749
  * @returns 0 if the strings match, a negative value if @s1 < @s2, or a positive value if @s1 > @s2.
9750
9750
  */
9751
- export function strcasecmp(s1: string | null, s2: string | null): number
9751
+ export function strcasecmp(s1: string, s2: string): number
9752
9752
  /**
9753
9753
  * Removes trailing whitespace from a string.
9754
9754
  *
@@ -9794,7 +9794,7 @@ export function strcmp0(str1: string | null, str2: string | null): number
9794
9794
  * @param source a string to compress
9795
9795
  * @returns a newly-allocated copy of @source with all escaped character compressed
9796
9796
  */
9797
- export function strcompress(source: string | null): string | null
9797
+ export function strcompress(source: string): string | null
9798
9798
  /**
9799
9799
  * Converts any delimiter characters in `string` to `new_delimiter`.
9800
9800
  *
@@ -9863,7 +9863,7 @@ export function strdup(str: string | null): string | null
9863
9863
  * @param errnum the system error number. See the standard C %errno documentation
9864
9864
  * @returns a UTF-8 string describing the error code. If the error code is unknown, it returns a string like "Unknown error: <code>".
9865
9865
  */
9866
- export function strerror(errnum: number): string | null
9866
+ export function strerror(errnum: number): string
9867
9867
  /**
9868
9868
  * Escapes the special characters '\b', '\f', '\n', '\r', '\t', '\v', '\'
9869
9869
  * and '"' in the string `source` by inserting a '\' before
@@ -9877,7 +9877,7 @@ export function strerror(errnum: number): string | null
9877
9877
  * @param exceptions a string of characters not to escape in `source`
9878
9878
  * @returns a newly-allocated copy of @source with certain characters escaped. See above.
9879
9879
  */
9880
- export function strescape(source: string | null, exceptions: string | null): string | null
9880
+ export function strescape(source: string, exceptions: string | null): string | null
9881
9881
  /**
9882
9882
  * Frees a %NULL-terminated array of strings, as well as each
9883
9883
  * string it contains.
@@ -9892,7 +9892,7 @@ export function strfreev(str_array: string | null): void
9892
9892
  * @param msgval another string
9893
9893
  * @returns @msgval, unless @msgval is identical to @msgid and contains a '|' character, in which case a pointer to the substring of msgid after the first '|' character is returned.
9894
9894
  */
9895
- export function strip_context(msgid: string | null, msgval: string | null): string | null
9895
+ export function strip_context(msgid: string, msgval: string): string
9896
9896
  /**
9897
9897
  * Joins a number of strings together to form one long string, with the
9898
9898
  * optional `separator` inserted between each of them. The returned string
@@ -9925,7 +9925,7 @@ export function strjoinv(separator: string | null, str_array: string | null): st
9925
9925
  * @param dest_size length of `dest` buffer in bytes (not length of existing string inside `dest)`
9926
9926
  * @returns size of attempted result, which is MIN (dest_size, strlen (original dest)) + strlen (src), so if retval >= dest_size, truncation occurred.
9927
9927
  */
9928
- export function strlcat(dest: string | null, src: string | null, dest_size: number): number
9928
+ export function strlcat(dest: string | null, src: string, dest_size: number): number
9929
9929
  /**
9930
9930
  * Portability wrapper that calls strlcpy() on systems which have it,
9931
9931
  * and emulates strlcpy() otherwise. Copies `src` to `dest;` `dest` is
@@ -9946,7 +9946,7 @@ export function strlcat(dest: string | null, src: string | null, dest_size: numb
9946
9946
  * @param dest_size length of `dest` in bytes
9947
9947
  * @returns length of @src
9948
9948
  */
9949
- export function strlcpy(dest: string | null, src: string | null, dest_size: number): number
9949
+ export function strlcpy(dest: string | null, src: string, dest_size: number): number
9950
9950
  /**
9951
9951
  * A case-insensitive string comparison, corresponding to the standard
9952
9952
  * strncasecmp() function on platforms which support it. It is similar
@@ -9957,7 +9957,7 @@ export function strlcpy(dest: string | null, src: string | null, dest_size: numb
9957
9957
  * @param n the maximum number of characters to compare
9958
9958
  * @returns 0 if the strings match, a negative value if @s1 < @s2, or a positive value if @s1 > @s2.
9959
9959
  */
9960
- export function strncasecmp(s1: string | null, s2: string | null, n: number): number
9960
+ export function strncasecmp(s1: string, s2: string, n: number): number
9961
9961
  /**
9962
9962
  * Duplicates the first `n` bytes of a string, returning a newly-allocated
9963
9963
  * buffer `n` + 1 bytes long which will always be nul-terminated. If `str`
@@ -9971,7 +9971,7 @@ export function strncasecmp(s1: string | null, s2: string | null, n: number): nu
9971
9971
  * @param n the maximum number of bytes to copy from `str`
9972
9972
  * @returns a newly-allocated buffer containing the first @n bytes of @str, nul-terminated
9973
9973
  */
9974
- export function strndup(str: string | null, n: number): string | null
9974
+ export function strndup(str: string, n: number): string | null
9975
9975
  /**
9976
9976
  * Creates a new string `length` bytes long filled with `fill_char`.
9977
9977
  * The returned string should be freed when no longer needed.
@@ -9998,7 +9998,7 @@ export function strreverse(string: string | null): string | null
9998
9998
  * @param needle the nul-terminated string to search for
9999
9999
  * @returns a pointer to the found occurrence, or %NULL if not found.
10000
10000
  */
10001
- export function strrstr(haystack: string | null, needle: string | null): string | null
10001
+ export function strrstr(haystack: string, needle: string): string | null
10002
10002
  /**
10003
10003
  * Searches the string `haystack` for the last occurrence
10004
10004
  * of the string `needle,` limiting the length of the search
@@ -10008,7 +10008,7 @@ export function strrstr(haystack: string | null, needle: string | null): string
10008
10008
  * @param needle the nul-terminated string to search for
10009
10009
  * @returns a pointer to the found occurrence, or %NULL if not found.
10010
10010
  */
10011
- export function strrstr_len(haystack: string | null, haystack_len: number, needle: string | null): string | null
10011
+ export function strrstr_len(haystack: string, haystack_len: number, needle: string): string | null
10012
10012
  /**
10013
10013
  * Returns a string describing the given signal, e.g. "Segmentation fault".
10014
10014
  * You should use this function in preference to strsignal(), because it
@@ -10017,7 +10017,7 @@ export function strrstr_len(haystack: string | null, haystack_len: number, needl
10017
10017
  * @param signum the signal number. See the `signal` documentation
10018
10018
  * @returns a UTF-8 string describing the signal. If the signal is unknown, it returns "unknown signal (<signum>)".
10019
10019
  */
10020
- export function strsignal(signum: number): string | null
10020
+ export function strsignal(signum: number): string
10021
10021
  /**
10022
10022
  * Searches the string `haystack` for the first occurrence
10023
10023
  * of the string `needle,` limiting the length of the search
@@ -10027,7 +10027,7 @@ export function strsignal(signum: number): string | null
10027
10027
  * @param needle the string to search for
10028
10028
  * @returns a pointer to the found occurrence, or %NULL if not found.
10029
10029
  */
10030
- export function strstr_len(haystack: string | null, haystack_len: number, needle: string | null): string | null
10030
+ export function strstr_len(haystack: string, haystack_len: number, needle: string): string | null
10031
10031
  /**
10032
10032
  * Converts a string to a #gdouble value.
10033
10033
  * It calls the standard strtod() function to handle the conversion, but
@@ -10043,7 +10043,7 @@ export function strstr_len(haystack: string | null, haystack_len: number, needle
10043
10043
  * @param nptr the string to convert to a numeric value.
10044
10044
  * @returns the #gdouble value.
10045
10045
  */
10046
- export function strtod(nptr: string | null): [ /* returnType */ number, /* endptr */ string | null ]
10046
+ export function strtod(nptr: string): [ /* returnType */ number, /* endptr */ string ]
10047
10047
  /**
10048
10048
  * Converts a string to upper case.
10049
10049
  * @param string the string to convert
@@ -10056,7 +10056,7 @@ export function strup(string: string | null): string | null
10056
10056
  * @param str a string
10057
10057
  * @returns %TRUE if @str is an element of @strv, according to g_str_equal().
10058
10058
  */
10059
- export function strv_contains(strv: string | null, str: string | null): boolean
10059
+ export function strv_contains(strv: string, str: string): boolean
10060
10060
  /**
10061
10061
  * Checks if `strv1` and `strv2` contain exactly the same elements in exactly the
10062
10062
  * same order. Elements are compared using g_str_equal(). To match independently
@@ -10068,7 +10068,7 @@ export function strv_contains(strv: string | null, str: string | null): boolean
10068
10068
  * @param strv2 another %NULL-terminated array of strings
10069
10069
  * @returns %TRUE if @strv1 and @strv2 are equal
10070
10070
  */
10071
- export function strv_equal(strv1: string | null, strv2: string | null): boolean
10071
+ export function strv_equal(strv1: string, strv2: string): boolean
10072
10072
  export function strv_get_type(): GObject.GType
10073
10073
  /**
10074
10074
  * Returns the length of the given %NULL-terminated
@@ -10095,7 +10095,7 @@ export function strv_length(str_array: string | null): number
10095
10095
  * @param test_data Test data argument for the test function.
10096
10096
  * @param test_func The test function to invoke for this test.
10097
10097
  */
10098
- export function test_add_data_func(testpath: string | null, test_data: any | null, test_func: TestDataFunc): void
10098
+ export function test_add_data_func(testpath: string, test_data: any | null, test_func: TestDataFunc): void
10099
10099
  /**
10100
10100
  * Create a new test case, as with g_test_add_data_func(), but freeing
10101
10101
  * `test_data` after the test run is complete.
@@ -10103,7 +10103,7 @@ export function test_add_data_func(testpath: string | null, test_data: any | nul
10103
10103
  * @param test_data Test data argument for the test function.
10104
10104
  * @param test_func The test function to invoke for this test.
10105
10105
  */
10106
- export function test_add_data_func_full(testpath: string | null, test_data: any | null, test_func: TestDataFunc): void
10106
+ export function test_add_data_func_full(testpath: string, test_data: any | null, test_func: TestDataFunc): void
10107
10107
  /**
10108
10108
  * Create a new test case, similar to g_test_create_case(). However
10109
10109
  * the test is assumed to use no fixture, and test suites are automatically
@@ -10120,8 +10120,8 @@ export function test_add_data_func_full(testpath: string | null, test_data: any
10120
10120
  * @param testpath /-separated test case path name for the test.
10121
10121
  * @param test_func The test function to invoke for this test.
10122
10122
  */
10123
- export function test_add_func(testpath: string | null, test_func: TestFunc): void
10124
- export function test_assert_expected_messages_internal(domain: string | null, file: string | null, line: number, func: string | null): void
10123
+ export function test_add_func(testpath: string, test_func: TestFunc): void
10124
+ export function test_assert_expected_messages_internal(domain: string, file: string, line: number, func: string): void
10125
10125
  /**
10126
10126
  * This function adds a message to test reports that
10127
10127
  * associates a bug URI with a test case.
@@ -10135,7 +10135,7 @@ export function test_assert_expected_messages_internal(domain: string | null, fi
10135
10135
  * is already a valid URI.
10136
10136
  * @param bug_uri_snippet Bug specific bug tracker URI or URI portion.
10137
10137
  */
10138
- export function test_bug(bug_uri_snippet: string | null): void
10138
+ export function test_bug(bug_uri_snippet: string): void
10139
10139
  /**
10140
10140
  * Specify the base URI for bug reports.
10141
10141
  *
@@ -10153,7 +10153,7 @@ export function test_bug(bug_uri_snippet: string | null): void
10153
10153
  * from the value provided by g_test_bug().
10154
10154
  * @param uri_pattern the base pattern for bug URIs
10155
10155
  */
10156
- export function test_bug_base(uri_pattern: string | null): void
10156
+ export function test_bug_base(uri_pattern: string): void
10157
10157
  /**
10158
10158
  * Indicates that a message with the given `log_domain` and `log_level,`
10159
10159
  * with text matching `pattern,` is expected to be logged. When this
@@ -10195,7 +10195,7 @@ export function test_bug_base(uri_pattern: string | null): void
10195
10195
  * @param log_level the log level of the message
10196
10196
  * @param pattern a glob-style [pattern][glib-Glob-style-pattern-matching]
10197
10197
  */
10198
- export function test_expect_message(log_domain: string | null, log_level: LogLevelFlags, pattern: string | null): void
10198
+ export function test_expect_message(log_domain: string | null, log_level: LogLevelFlags, pattern: string): void
10199
10199
  /**
10200
10200
  * Indicates that a test failed. This function can be called
10201
10201
  * multiple times from the same test. You can use this function
@@ -10253,7 +10253,7 @@ export function test_get_dir(file_type: TestFileType): string
10253
10253
  * Note that this is a test path, not a file system path.
10254
10254
  * @returns the test path for the test currently being run
10255
10255
  */
10256
- export function test_get_path(): string | null
10256
+ export function test_get_path(): string
10257
10257
  /**
10258
10258
  * Indicates that a test failed because of some incomplete
10259
10259
  * functionality. This function can be called multiple times
@@ -10268,7 +10268,7 @@ export function test_get_path(): string | null
10268
10268
  * @param msg explanation
10269
10269
  */
10270
10270
  export function test_incomplete(msg: string | null): void
10271
- export function test_log_type_name(log_type: TestLogType): string | null
10271
+ export function test_log_type_name(log_type: TestLogType): string
10272
10272
  /**
10273
10273
  * This function enqueus a callback `destroy_func` to be executed
10274
10274
  * during the next test case teardown phase. This is most useful
@@ -10426,7 +10426,7 @@ export function test_subprocess(): boolean
10426
10426
  *
10427
10427
  * @param summary One or two sentences summarising what the test checks, and how it checks it.
10428
10428
  */
10429
- export function test_summary(summary: string | null): void
10429
+ export function test_summary(summary: string): void
10430
10430
  /**
10431
10431
  * Get the number of seconds since the last start of the timer with
10432
10432
  * g_test_timer_start().
@@ -10443,7 +10443,7 @@ export function test_timer_last(): number
10443
10443
  * to be done. Call this function again to restart the timer.
10444
10444
  */
10445
10445
  export function test_timer_start(): void
10446
- export function test_trap_assertions(domain: string | null, file: string | null, line: number, func: string | null, assertion_flags: number, pattern: string | null): void
10446
+ export function test_trap_assertions(domain: string, file: string, line: number, func: string, assertion_flags: number, pattern: string): void
10447
10447
  /**
10448
10448
  * Fork the current test program to execute a test case that might
10449
10449
  * not return or that might abort.
@@ -10668,7 +10668,7 @@ export function thread_yield(): void
10668
10668
  * @param iso_date an ISO 8601 encoded date string
10669
10669
  * @returns %TRUE if the conversion was successful.
10670
10670
  */
10671
- export function time_val_from_iso8601(iso_date: string | null): [ /* returnType */ boolean, /* time_ */ TimeVal ]
10671
+ export function time_val_from_iso8601(iso_date: string): [ /* returnType */ boolean, /* time_ */ TimeVal ]
10672
10672
  /**
10673
10673
  * Sets a function to be called at regular intervals, with the given
10674
10674
  * priority. The function is called repeatedly until it returns
@@ -11158,7 +11158,7 @@ export function unichar_iszerowidth(c: string): boolean
11158
11158
  * @param c a Unicode character code
11159
11159
  * @returns number of bytes written
11160
11160
  */
11161
- export function unichar_to_utf8(c: string): [ /* returnType */ number, /* outbuf */ string | null ]
11161
+ export function unichar_to_utf8(c: string): [ /* returnType */ number, /* outbuf */ string ]
11162
11162
  /**
11163
11163
  * Converts a character to lower case.
11164
11164
  * @param c a Unicode character.
@@ -11284,7 +11284,7 @@ export function unix_fd_source_new(fd: number, condition: IOCondition): Source
11284
11284
  * @param user_name the username to get the passwd file entry for
11285
11285
  * @returns passwd entry, or %NULL on error; free the returned value with g_free()
11286
11286
  */
11287
- export function unix_get_passwd_entry(user_name: string | null): any | null
11287
+ export function unix_get_passwd_entry(user_name: string): any | null
11288
11288
  /**
11289
11289
  * Similar to the UNIX pipe() call, but on modern systems like Linux
11290
11290
  * uses the pipe2() system call, which atomically creates a pipe with
@@ -11400,7 +11400,7 @@ export function unsetenv(variable: string): void
11400
11400
  * @param fragment the fragment, or %NULL
11401
11401
  * @returns a new #GUri
11402
11402
  */
11403
- export function uri_build(flags: UriFlags, scheme: string | null, userinfo: string | null, host: string | null, port: number, path: string | null, query: string | null, fragment: string | null): Uri
11403
+ export function uri_build(flags: UriFlags, scheme: string, userinfo: string | null, host: string | null, port: number, path: string, query: string | null, fragment: string | null): Uri
11404
11404
  /**
11405
11405
  * Creates a new #GUri from the given components according to `flags`
11406
11406
  * (%G_URI_FLAGS_HAS_PASSWORD is added unconditionally). The `flags` must be
@@ -11422,7 +11422,7 @@ export function uri_build(flags: UriFlags, scheme: string | null, userinfo: stri
11422
11422
  * @param fragment the fragment, or %NULL
11423
11423
  * @returns a new #GUri
11424
11424
  */
11425
- export function uri_build_with_user(flags: UriFlags, scheme: string | null, user: string | null, password: string | null, auth_params: string | null, host: string | null, port: number, path: string | null, query: string | null, fragment: string | null): Uri
11425
+ export function uri_build_with_user(flags: UriFlags, scheme: string, user: string | null, password: string | null, auth_params: string | null, host: string | null, port: number, path: string, query: string | null, fragment: string | null): Uri
11426
11426
  export function uri_error_quark(): Quark
11427
11427
  /**
11428
11428
  * Escapes arbitrary data for use in a URI.
@@ -11455,7 +11455,7 @@ export function uri_escape_bytes(unescaped: Uint8Array, reserved_chars_allowed:
11455
11455
  * @param allow_utf8 %TRUE if the result can include UTF-8 characters.
11456
11456
  * @returns an escaped version of @unescaped. The returned string should be freed when no longer needed.
11457
11457
  */
11458
- export function uri_escape_string(unescaped: string | null, reserved_chars_allowed: string | null, allow_utf8: boolean): string | null
11458
+ export function uri_escape_string(unescaped: string, reserved_chars_allowed: string | null, allow_utf8: boolean): string | null
11459
11459
  /**
11460
11460
  * Parses `uri_string` according to `flags,` to determine whether it is a valid
11461
11461
  * [absolute URI][relative-absolute-uris], i.e. it does not need to be resolved
@@ -11469,7 +11469,7 @@ export function uri_escape_string(unescaped: string | null, reserved_chars_allow
11469
11469
  * @param flags flags for parsing `uri_string`
11470
11470
  * @returns %TRUE if @uri_string is a valid absolute URI, %FALSE on error.
11471
11471
  */
11472
- export function uri_is_valid(uri_string: string | null, flags: UriFlags): boolean
11472
+ export function uri_is_valid(uri_string: string, flags: UriFlags): boolean
11473
11473
  /**
11474
11474
  * Joins the given components together according to `flags` to create
11475
11475
  * an absolute URI string. `path` may not be %NULL (though it may be the empty
@@ -11495,7 +11495,7 @@ export function uri_is_valid(uri_string: string | null, flags: UriFlags): boolea
11495
11495
  * @param fragment the fragment, or %NULL
11496
11496
  * @returns an absolute URI string
11497
11497
  */
11498
- export function uri_join(flags: UriFlags, scheme: string | null, userinfo: string | null, host: string | null, port: number, path: string | null, query: string | null, fragment: string | null): string | null
11498
+ export function uri_join(flags: UriFlags, scheme: string | null, userinfo: string | null, host: string | null, port: number, path: string, query: string | null, fragment: string | null): string | null
11499
11499
  /**
11500
11500
  * Joins the given components together according to `flags` to create
11501
11501
  * an absolute URI string. `path` may not be %NULL (though it may be the empty
@@ -11518,7 +11518,7 @@ export function uri_join(flags: UriFlags, scheme: string | null, userinfo: strin
11518
11518
  * @param fragment the fragment, or %NULL
11519
11519
  * @returns an absolute URI string
11520
11520
  */
11521
- export function uri_join_with_user(flags: UriFlags, scheme: string | null, user: string | null, password: string | null, auth_params: string | null, host: string | null, port: number, path: string | null, query: string | null, fragment: string | null): string | null
11521
+ export function uri_join_with_user(flags: UriFlags, scheme: string | null, user: string | null, password: string | null, auth_params: string | null, host: string | null, port: number, path: string, query: string | null, fragment: string | null): string | null
11522
11522
  /**
11523
11523
  * Splits an URI list conforming to the text/uri-list
11524
11524
  * mime type defined in RFC 2483 into individual URIs,
@@ -11526,7 +11526,7 @@ export function uri_join_with_user(flags: UriFlags, scheme: string | null, user:
11526
11526
  * @param uri_list an URI list
11527
11527
  * @returns a newly allocated %NULL-terminated list of strings holding the individual URIs. The array should be freed with g_strfreev().
11528
11528
  */
11529
- export function uri_list_extract_uris(uri_list: string | null): string[]
11529
+ export function uri_list_extract_uris(uri_list: string): string[]
11530
11530
  /**
11531
11531
  * Parses `uri_string` according to `flags`. If the result is not a
11532
11532
  * valid [absolute URI][relative-absolute-uris], it will be discarded, and an
@@ -11535,7 +11535,7 @@ export function uri_list_extract_uris(uri_list: string | null): string[]
11535
11535
  * @param flags flags describing how to parse `uri_string`
11536
11536
  * @returns a new #GUri, or NULL on error.
11537
11537
  */
11538
- export function uri_parse(uri_string: string | null, flags: UriFlags): Uri
11538
+ export function uri_parse(uri_string: string, flags: UriFlags): Uri
11539
11539
  /**
11540
11540
  * Many URI schemes include one or more attribute/value pairs as part of the URI
11541
11541
  * value. This method can be used to parse them into a hash table. When an
@@ -11567,7 +11567,7 @@ export function uri_parse(uri_string: string | null, flags: UriFlags): Uri
11567
11567
  * @param flags flags to modify the way the parameters are handled.
11568
11568
  * @returns A hash table of attribute/value pairs, with both names and values fully-decoded; or %NULL on error.
11569
11569
  */
11570
- export function uri_parse_params(params: string | null, length: number, separators: string | null, flags: UriParamsFlags): HashTable
11570
+ export function uri_parse_params(params: string, length: number, separators: string, flags: UriParamsFlags): HashTable
11571
11571
  /**
11572
11572
  * Gets the scheme portion of a URI string.
11573
11573
  * [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) decodes the scheme
@@ -11581,7 +11581,7 @@ export function uri_parse_params(params: string | null, length: number, separato
11581
11581
  * @param uri a valid URI.
11582
11582
  * @returns The ‘scheme’ component of the URI, or %NULL on error. The returned string should be freed when no longer needed.
11583
11583
  */
11584
- export function uri_parse_scheme(uri: string | null): string | null
11584
+ export function uri_parse_scheme(uri: string): string | null
11585
11585
  /**
11586
11586
  * Gets the scheme portion of a URI string.
11587
11587
  * [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) decodes the scheme
@@ -11598,7 +11598,7 @@ export function uri_parse_scheme(uri: string | null): string | null
11598
11598
  * @param uri a valid URI.
11599
11599
  * @returns The ‘scheme’ component of the URI, or %NULL on error. The returned string is normalized to all-lowercase, and interned via g_intern_string(), so it does not need to be freed.
11600
11600
  */
11601
- export function uri_peek_scheme(uri: string | null): string | null
11601
+ export function uri_peek_scheme(uri: string): string | null
11602
11602
  /**
11603
11603
  * Parses `uri_ref` according to `flags` and, if it is a
11604
11604
  * [relative URI][relative-absolute-uris], resolves it relative to
@@ -11612,7 +11612,7 @@ export function uri_peek_scheme(uri: string | null): string | null
11612
11612
  * @param flags flags describing how to parse `uri_ref`
11613
11613
  * @returns the resolved URI string, or NULL on error.
11614
11614
  */
11615
- export function uri_resolve_relative(base_uri_string: string | null, uri_ref: string | null, flags: UriFlags): string | null
11615
+ export function uri_resolve_relative(base_uri_string: string | null, uri_ref: string, flags: UriFlags): string | null
11616
11616
  /**
11617
11617
  * Parses `uri_ref` (which can be an
11618
11618
  * [absolute or relative URI][relative-absolute-uris]) according to `flags,` and
@@ -11634,7 +11634,7 @@ export function uri_resolve_relative(base_uri_string: string | null, uri_ref: st
11634
11634
  * @param flags flags for parsing `uri_ref`
11635
11635
  * @returns %TRUE if @uri_ref parsed successfully, %FALSE on error.
11636
11636
  */
11637
- export function uri_split(uri_ref: string | null, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* userinfo */ string | null, /* host */ string | null, /* port */ number, /* path */ string | null, /* query */ string | null, /* fragment */ string | null ]
11637
+ export function uri_split(uri_ref: string, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* userinfo */ string | null, /* host */ string | null, /* port */ number, /* path */ string, /* query */ string | null, /* fragment */ string | null ]
11638
11638
  /**
11639
11639
  * Parses `uri_string` (which must be an [absolute URI][relative-absolute-uris])
11640
11640
  * according to `flags,` and returns the pieces relevant to connecting to a host.
@@ -11646,7 +11646,7 @@ export function uri_split(uri_ref: string | null, flags: UriFlags): [ /* returnT
11646
11646
  * @param flags flags for parsing `uri_string`
11647
11647
  * @returns %TRUE if @uri_string parsed successfully, %FALSE on error.
11648
11648
  */
11649
- export function uri_split_network(uri_string: string | null, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* host */ string | null, /* port */ number ]
11649
+ export function uri_split_network(uri_string: string, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* host */ string | null, /* port */ number ]
11650
11650
  /**
11651
11651
  * Parses `uri_ref` (which can be an
11652
11652
  * [absolute or relative URI][relative-absolute-uris]) according to `flags,` and
@@ -11663,7 +11663,7 @@ export function uri_split_network(uri_string: string | null, flags: UriFlags): [
11663
11663
  * @param flags flags for parsing `uri_ref`
11664
11664
  * @returns %TRUE if @uri_ref parsed successfully, %FALSE on error.
11665
11665
  */
11666
- export function uri_split_with_user(uri_ref: string | null, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* user */ string | null, /* password */ string | null, /* auth_params */ string | null, /* host */ string | null, /* port */ number, /* path */ string | null, /* query */ string | null, /* fragment */ string | null ]
11666
+ export function uri_split_with_user(uri_ref: string, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* user */ string | null, /* password */ string | null, /* auth_params */ string | null, /* host */ string | null, /* port */ number, /* path */ string, /* query */ string | null, /* fragment */ string | null ]
11667
11667
  /**
11668
11668
  * Unescapes a segment of an escaped string as binary data.
11669
11669
  *
@@ -11680,7 +11680,7 @@ export function uri_split_with_user(uri_ref: string | null, flags: UriFlags): [
11680
11680
  * @param illegal_characters a string of illegal characters not to be allowed, or %NULL.
11681
11681
  * @returns an unescaped version of @escaped_string or %NULL on error (if decoding failed, using %G_URI_ERROR_FAILED error code). The returned #GBytes should be unreffed when no longer needed.
11682
11682
  */
11683
- export function uri_unescape_bytes(escaped_string: string | null, length: number, illegal_characters: string | null): Bytes
11683
+ export function uri_unescape_bytes(escaped_string: string, length: number, illegal_characters: string | null): Bytes
11684
11684
  /**
11685
11685
  * Unescapes a segment of an escaped string.
11686
11686
  *
@@ -11710,7 +11710,7 @@ export function uri_unescape_segment(escaped_string: string | null, escaped_stri
11710
11710
  * @param illegal_characters a string of illegal characters not to be allowed, or %NULL.
11711
11711
  * @returns an unescaped version of @escaped_string. The returned string should be freed when no longer needed.
11712
11712
  */
11713
- export function uri_unescape_string(escaped_string: string | null, illegal_characters: string | null): string | null
11713
+ export function uri_unescape_string(escaped_string: string, illegal_characters: string | null): string | null
11714
11714
  /**
11715
11715
  * Pauses the current thread for the given number of microseconds.
11716
11716
  *
@@ -11762,7 +11762,7 @@ export function utf16_to_utf8(str: number[]): [ /* returnType */ string | null,
11762
11762
  * @param len length of `str,` in bytes, or -1 if `str` is nul-terminated.
11763
11763
  * @returns a newly allocated string, that is a case independent form of @str.
11764
11764
  */
11765
- export function utf8_casefold(str: string | null, len: number): string | null
11765
+ export function utf8_casefold(str: string, len: number): string | null
11766
11766
  /**
11767
11767
  * Compares two strings for ordering using the linguistically
11768
11768
  * correct rules for the [current locale][setlocale].
@@ -11778,7 +11778,7 @@ export function utf8_casefold(str: string | null, len: number): string | null
11778
11778
  * @param str2 a UTF-8 encoded string
11779
11779
  * @returns < 0 if @str1 compares before @str2, 0 if they compare equal, > 0 if @str1 compares after @str2.
11780
11780
  */
11781
- export function utf8_collate(str1: string | null, str2: string | null): number
11781
+ export function utf8_collate(str1: string, str2: string): number
11782
11782
  /**
11783
11783
  * Converts a string into a collation key that can be compared
11784
11784
  * with other collation keys produced by the same function using
@@ -11793,7 +11793,7 @@ export function utf8_collate(str1: string | null, str2: string | null): number
11793
11793
  * @param len length of `str,` in bytes, or -1 if `str` is nul-terminated.
11794
11794
  * @returns a newly allocated string. This string should be freed with g_free() when you are done with it.
11795
11795
  */
11796
- export function utf8_collate_key(str: string | null, len: number): string | null
11796
+ export function utf8_collate_key(str: string, len: number): string | null
11797
11797
  /**
11798
11798
  * Converts a string into a collation key that can be compared
11799
11799
  * with other collation keys produced by the same function using strcmp().
@@ -11810,7 +11810,7 @@ export function utf8_collate_key(str: string | null, len: number): string | null
11810
11810
  * @param len length of `str,` in bytes, or -1 if `str` is nul-terminated.
11811
11811
  * @returns a newly allocated string. This string should be freed with g_free() when you are done with it.
11812
11812
  */
11813
- export function utf8_collate_key_for_filename(str: string | null, len: number): string | null
11813
+ export function utf8_collate_key_for_filename(str: string, len: number): string | null
11814
11814
  /**
11815
11815
  * Finds the start of the next UTF-8 character in the string after `p`.
11816
11816
  *
@@ -11826,7 +11826,7 @@ export function utf8_collate_key_for_filename(str: string | null, len: number):
11826
11826
  * @param end a pointer to the byte following the end of the string, or %NULL to indicate that the string is nul-terminated
11827
11827
  * @returns a pointer to the found character or %NULL if @end is set and is reached
11828
11828
  */
11829
- export function utf8_find_next_char(p: string | null, end: string | null): string | null
11829
+ export function utf8_find_next_char(p: string, end: string | null): string | null
11830
11830
  /**
11831
11831
  * Given a position `p` with a UTF-8 encoded string `str,` find the start
11832
11832
  * of the previous UTF-8 character starting before `p`. Returns %NULL if no
@@ -11839,7 +11839,7 @@ export function utf8_find_next_char(p: string | null, end: string | null): strin
11839
11839
  * @param p pointer to some position within `str`
11840
11840
  * @returns a pointer to the found character or %NULL.
11841
11841
  */
11842
- export function utf8_find_prev_char(str: string | null, p: string | null): string | null
11842
+ export function utf8_find_prev_char(str: string, p: string): string | null
11843
11843
  /**
11844
11844
  * Converts a sequence of bytes encoded as UTF-8 to a Unicode character.
11845
11845
  *
@@ -11850,7 +11850,7 @@ export function utf8_find_prev_char(str: string | null, p: string | null): strin
11850
11850
  * @param p a pointer to Unicode character encoded as UTF-8
11851
11851
  * @returns the resulting character
11852
11852
  */
11853
- export function utf8_get_char(p: string | null): string
11853
+ export function utf8_get_char(p: string): string
11854
11854
  /**
11855
11855
  * Convert a sequence of bytes encoded as UTF-8 to a Unicode character.
11856
11856
  * This function checks for incomplete characters, for invalid characters
@@ -11864,7 +11864,7 @@ export function utf8_get_char(p: string | null): string
11864
11864
  * @param max_len the maximum number of bytes to read, or -1 if `p` is nul-terminated
11865
11865
  * @returns the resulting character. If @p points to a partial sequence at the end of a string that could begin a valid character (or if @max_len is zero), returns (gunichar)-2; otherwise, if @p does not point to a valid UTF-8 encoded Unicode character, returns (gunichar)-1.
11866
11866
  */
11867
- export function utf8_get_char_validated(p: string | null, max_len: number): string
11867
+ export function utf8_get_char_validated(p: string, max_len: number): string
11868
11868
  /**
11869
11869
  * If the provided string is valid UTF-8, return a copy of it. If not,
11870
11870
  * return a copy in which bytes that could not be interpreted as valid Unicode
@@ -11879,7 +11879,7 @@ export function utf8_get_char_validated(p: string | null, max_len: number): stri
11879
11879
  * @param len the maximum length of `str` to use, in bytes. If `len` < 0, then the string is nul-terminated.
11880
11880
  * @returns a valid UTF-8 string whose content resembles @str
11881
11881
  */
11882
- export function utf8_make_valid(str: string | null, len: number): string | null
11882
+ export function utf8_make_valid(str: string, len: number): string | null
11883
11883
  /**
11884
11884
  * Converts a string into canonical form, standardizing
11885
11885
  * such issues as whether a character with an accent
@@ -11911,7 +11911,7 @@ export function utf8_make_valid(str: string | null, len: number): string | null
11911
11911
  * @param mode the type of normalization to perform.
11912
11912
  * @returns a newly allocated string, that is the normalized form of @str, or %NULL if @str is not valid UTF-8.
11913
11913
  */
11914
- export function utf8_normalize(str: string | null, len: number, mode: NormalizeMode): string | null
11914
+ export function utf8_normalize(str: string, len: number, mode: NormalizeMode): string | null
11915
11915
  /**
11916
11916
  * Converts from an integer character offset to a pointer to a position
11917
11917
  * within the string.
@@ -11930,7 +11930,7 @@ export function utf8_normalize(str: string | null, len: number, mode: NormalizeM
11930
11930
  * @param offset a character offset within `str`
11931
11931
  * @returns the resulting pointer
11932
11932
  */
11933
- export function utf8_offset_to_pointer(str: string | null, offset: number): string | null
11933
+ export function utf8_offset_to_pointer(str: string, offset: number): string | null
11934
11934
  /**
11935
11935
  * Converts from a pointer to position within a string to an integer
11936
11936
  * character offset.
@@ -11941,7 +11941,7 @@ export function utf8_offset_to_pointer(str: string | null, offset: number): stri
11941
11941
  * @param pos a pointer to a position within `str`
11942
11942
  * @returns the resulting character offset
11943
11943
  */
11944
- export function utf8_pointer_to_offset(str: string | null, pos: string | null): number
11944
+ export function utf8_pointer_to_offset(str: string, pos: string): number
11945
11945
  /**
11946
11946
  * Finds the previous UTF-8 character in the string before `p`.
11947
11947
  *
@@ -11952,7 +11952,7 @@ export function utf8_pointer_to_offset(str: string | null, pos: string | null):
11952
11952
  * @param p a pointer to a position within a UTF-8 encoded string
11953
11953
  * @returns a pointer to the found character
11954
11954
  */
11955
- export function utf8_prev_char(p: string | null): string | null
11955
+ export function utf8_prev_char(p: string): string | null
11956
11956
  /**
11957
11957
  * Finds the leftmost occurrence of the given Unicode character
11958
11958
  * in a UTF-8 encoded string, while limiting the search to `len` bytes.
@@ -11962,7 +11962,7 @@ export function utf8_prev_char(p: string | null): string | null
11962
11962
  * @param c a Unicode character
11963
11963
  * @returns %NULL if the string does not contain the character, otherwise, a pointer to the start of the leftmost occurrence of the character in the string.
11964
11964
  */
11965
- export function utf8_strchr(p: string | null, len: number, c: string): string | null
11965
+ export function utf8_strchr(p: string, len: number, c: string): string | null
11966
11966
  /**
11967
11967
  * Converts all Unicode characters in the string that have a case
11968
11968
  * to lowercase. The exact manner that this is done depends
@@ -11972,7 +11972,7 @@ export function utf8_strchr(p: string | null, len: number, c: string): string |
11972
11972
  * @param len length of `str,` in bytes, or -1 if `str` is nul-terminated.
11973
11973
  * @returns a newly allocated string, with all characters converted to lowercase.
11974
11974
  */
11975
- export function utf8_strdown(str: string | null, len: number): string | null
11975
+ export function utf8_strdown(str: string, len: number): string | null
11976
11976
  /**
11977
11977
  * Computes the length of the string in characters, not including
11978
11978
  * the terminating nul character. If the `max'`th byte falls in the
@@ -11981,7 +11981,7 @@ export function utf8_strdown(str: string | null, len: number): string | null
11981
11981
  * @param max the maximum number of bytes to examine. If `max` is less than 0, then the string is assumed to be nul-terminated. If `max` is 0, `p` will not be examined and may be %NULL. If `max` is greater than 0, up to `max` bytes are examined
11982
11982
  * @returns the length of the string in characters
11983
11983
  */
11984
- export function utf8_strlen(p: string | null, max: number): number
11984
+ export function utf8_strlen(p: string, max: number): number
11985
11985
  /**
11986
11986
  * Like the standard C strncpy() function, but copies a given number
11987
11987
  * of characters instead of a given number of bytes. The `src` string
@@ -11995,7 +11995,7 @@ export function utf8_strlen(p: string | null, max: number): number
11995
11995
  * @param n character count
11996
11996
  * @returns @dest
11997
11997
  */
11998
- export function utf8_strncpy(dest: string | null, src: string | null, n: number): string | null
11998
+ export function utf8_strncpy(dest: string | null, src: string, n: number): string | null
11999
11999
  /**
12000
12000
  * Find the rightmost occurrence of the given Unicode character
12001
12001
  * in a UTF-8 encoded string, while limiting the search to `len` bytes.
@@ -12005,7 +12005,7 @@ export function utf8_strncpy(dest: string | null, src: string | null, n: number)
12005
12005
  * @param c a Unicode character
12006
12006
  * @returns %NULL if the string does not contain the character, otherwise, a pointer to the start of the rightmost occurrence of the character in the string.
12007
12007
  */
12008
- export function utf8_strrchr(p: string | null, len: number, c: string): string | null
12008
+ export function utf8_strrchr(p: string, len: number, c: string): string | null
12009
12009
  /**
12010
12010
  * Reverses a UTF-8 string. `str` must be valid UTF-8 encoded text.
12011
12011
  * (Use g_utf8_validate() on all text before trying to use UTF-8
@@ -12024,7 +12024,7 @@ export function utf8_strrchr(p: string | null, len: number, c: string): string |
12024
12024
  * @param len the maximum length of `str` to use, in bytes. If `len` < 0, then the string is nul-terminated.
12025
12025
  * @returns a newly-allocated string which is the reverse of @str
12026
12026
  */
12027
- export function utf8_strreverse(str: string | null, len: number): string | null
12027
+ export function utf8_strreverse(str: string, len: number): string | null
12028
12028
  /**
12029
12029
  * Converts all Unicode characters in the string that have a case
12030
12030
  * to uppercase. The exact manner that this is done depends
@@ -12035,7 +12035,7 @@ export function utf8_strreverse(str: string | null, len: number): string | null
12035
12035
  * @param len length of `str,` in bytes, or -1 if `str` is nul-terminated.
12036
12036
  * @returns a newly allocated string, with all characters converted to uppercase.
12037
12037
  */
12038
- export function utf8_strup(str: string | null, len: number): string | null
12038
+ export function utf8_strup(str: string, len: number): string | null
12039
12039
  /**
12040
12040
  * Copies a substring out of a UTF-8 encoded string.
12041
12041
  * The substring will contain `end_pos` - `start_pos` characters.
@@ -12047,7 +12047,7 @@ export function utf8_strup(str: string | null, len: number): string | null
12047
12047
  * @param end_pos another character offset within `str,` or `-1` to indicate the end of the string
12048
12048
  * @returns a newly allocated copy of the requested substring. Free with g_free() when no longer needed.
12049
12049
  */
12050
- export function utf8_substring(str: string | null, start_pos: number, end_pos: number): string | null
12050
+ export function utf8_substring(str: string, start_pos: number, end_pos: number): string | null
12051
12051
  /**
12052
12052
  * Convert a string from UTF-8 to a 32-bit fixed width
12053
12053
  * representation as UCS-4. A trailing 0 character will be added to the
@@ -12056,7 +12056,7 @@ export function utf8_substring(str: string | null, start_pos: number, end_pos: n
12056
12056
  * @param len the maximum length of `str` to use, in bytes. If `len` < 0, then the string is nul-terminated.
12057
12057
  * @returns a pointer to a newly allocated UCS-4 string. This value must be freed with g_free(). If an error occurs, %NULL will be returned and @error set.
12058
12058
  */
12059
- export function utf8_to_ucs4(str: string | null, len: number): [ /* returnType */ string, /* items_read */ number, /* items_written */ number ]
12059
+ export function utf8_to_ucs4(str: string, len: number): [ /* returnType */ string, /* items_read */ number, /* items_written */ number ]
12060
12060
  /**
12061
12061
  * Convert a string from UTF-8 to a 32-bit fixed width
12062
12062
  * representation as UCS-4, assuming valid UTF-8 input.
@@ -12067,7 +12067,7 @@ export function utf8_to_ucs4(str: string | null, len: number): [ /* returnType *
12067
12067
  * @param len the maximum length of `str` to use, in bytes. If `len` < 0, then the string is nul-terminated.
12068
12068
  * @returns a pointer to a newly allocated UCS-4 string. This value must be freed with g_free().
12069
12069
  */
12070
- export function utf8_to_ucs4_fast(str: string | null, len: number): [ /* returnType */ string, /* items_written */ number ]
12070
+ export function utf8_to_ucs4_fast(str: string, len: number): [ /* returnType */ string, /* items_written */ number ]
12071
12071
  /**
12072
12072
  * Convert a string from UTF-8 to UTF-16. A 0 character will be
12073
12073
  * added to the result after the converted text.
@@ -12075,7 +12075,7 @@ export function utf8_to_ucs4_fast(str: string | null, len: number): [ /* returnT
12075
12075
  * @param len the maximum length (number of bytes) of `str` to use. If `len` < 0, then the string is nul-terminated.
12076
12076
  * @returns a pointer to a newly allocated UTF-16 string. This value must be freed with g_free(). If an error occurs, %NULL will be returned and @error set.
12077
12077
  */
12078
- export function utf8_to_utf16(str: string | null, len: number): [ /* returnType */ number, /* items_read */ number, /* items_written */ number ]
12078
+ export function utf8_to_utf16(str: string, len: number): [ /* returnType */ number, /* items_read */ number, /* items_written */ number ]
12079
12079
  /**
12080
12080
  * Cuts off the middle of the string, preserving half of `truncate_length`
12081
12081
  * characters at the beginning and half at the end.
@@ -12086,7 +12086,7 @@ export function utf8_to_utf16(str: string | null, len: number): [ /* returnType
12086
12086
  * @param truncate_length the new size of `string,` in characters, including the ellipsis character
12087
12087
  * @returns a newly-allocated copy of @string ellipsized in the middle
12088
12088
  */
12089
- export function utf8_truncate_middle(string: string | null, truncate_length: number): string | null
12089
+ export function utf8_truncate_middle(string: string, truncate_length: number): string | null
12090
12090
  /**
12091
12091
  * Validates UTF-8 encoded text. `str` is the text to validate;
12092
12092
  * if `str` is nul-terminated, then `max_len` can be -1, otherwise
@@ -12106,7 +12106,7 @@ export function utf8_truncate_middle(string: string | null, truncate_length: num
12106
12106
  * @param str a pointer to character data
12107
12107
  * @returns %TRUE if the text was valid UTF-8
12108
12108
  */
12109
- export function utf8_validate(str: Uint8Array): [ /* returnType */ boolean, /* end */ string | null ]
12109
+ export function utf8_validate(str: Uint8Array): [ /* returnType */ boolean, /* end */ string ]
12110
12110
  /**
12111
12111
  * Validates UTF-8 encoded text.
12112
12112
  *
@@ -12115,7 +12115,7 @@ export function utf8_validate(str: Uint8Array): [ /* returnType */ boolean, /* e
12115
12115
  * @param str a pointer to character data
12116
12116
  * @returns %TRUE if the text was valid UTF-8
12117
12117
  */
12118
- export function utf8_validate_len(str: Uint8Array): [ /* returnType */ boolean, /* end */ string | null ]
12118
+ export function utf8_validate_len(str: Uint8Array): [ /* returnType */ boolean, /* end */ string ]
12119
12119
  /**
12120
12120
  * Parses the string `str` and verify if it is a UUID.
12121
12121
  *
@@ -12128,7 +12128,7 @@ export function utf8_validate_len(str: Uint8Array): [ /* returnType */ boolean,
12128
12128
  * @param str a string representing a UUID
12129
12129
  * @returns %TRUE if @str is a valid UUID, %FALSE otherwise.
12130
12130
  */
12131
- export function uuid_string_is_valid(str: string | null): boolean
12131
+ export function uuid_string_is_valid(str: string): boolean
12132
12132
  /**
12133
12133
  * Generates a random UUID (RFC 4122 version 4) as a string. It has the same
12134
12134
  * randomness guarantees as #GRand, so must not be used for cryptographic
@@ -12149,7 +12149,7 @@ export function variant_get_gtype(): GObject.GType
12149
12149
  * @param string a normal C nul-terminated string
12150
12150
  * @returns %TRUE if @string is a D-Bus object path
12151
12151
  */
12152
- export function variant_is_object_path(string: string | null): boolean
12152
+ export function variant_is_object_path(string: string): boolean
12153
12153
  /**
12154
12154
  * Determines if a given string is a valid D-Bus type signature. You
12155
12155
  * should ensure that a string is a valid D-Bus type signature before
@@ -12160,7 +12160,7 @@ export function variant_is_object_path(string: string | null): boolean
12160
12160
  * @param string a normal C nul-terminated string
12161
12161
  * @returns %TRUE if @string is a D-Bus type signature
12162
12162
  */
12163
- export function variant_is_signature(string: string | null): boolean
12163
+ export function variant_is_signature(string: string): boolean
12164
12164
  /**
12165
12165
  * Parses a #GVariant from a text representation.
12166
12166
  *
@@ -12203,7 +12203,7 @@ export function variant_is_signature(string: string | null): boolean
12203
12203
  * @param endptr a location to store the end pointer, or %NULL
12204
12204
  * @returns a non-floating reference to a #GVariant, or %NULL
12205
12205
  */
12206
- export function variant_parse(type: VariantType | null, text: string | null, limit: string | null, endptr: string | null): Variant
12206
+ export function variant_parse(type: VariantType | null, text: string, limit: string | null, endptr: string | null): Variant
12207
12207
  /**
12208
12208
  * Pretty-prints a message showing the context of a #GVariant parse
12209
12209
  * error within the string for which parsing was attempted.
@@ -12242,14 +12242,14 @@ export function variant_parse(type: VariantType | null, text: string | null, lim
12242
12242
  * @param source_str the string that was given to the parser
12243
12243
  * @returns the printed message
12244
12244
  */
12245
- export function variant_parse_error_print_context(error: Error, source_str: string | null): string | null
12245
+ export function variant_parse_error_print_context(error: Error, source_str: string): string | null
12246
12246
  export function variant_parse_error_quark(): Quark
12247
12247
  /**
12248
12248
  * Same as g_variant_error_quark().
12249
12249
  */
12250
12250
  export function variant_parser_get_error_quark(): Quark
12251
- export function variant_type_checked_(arg0: string | null): VariantType
12252
- export function variant_type_string_get_depth_(type_string: string | null): number
12251
+ export function variant_type_checked_(arg0: string): VariantType
12252
+ export function variant_type_string_get_depth_(type_string: string): number
12253
12253
  /**
12254
12254
  * Checks if `type_string` is a valid GVariant type string. This call is
12255
12255
  * equivalent to calling g_variant_type_string_scan() and confirming
@@ -12257,7 +12257,7 @@ export function variant_type_string_get_depth_(type_string: string | null): numb
12257
12257
  * @param type_string a pointer to any string
12258
12258
  * @returns %TRUE if @type_string is exactly one valid type string Since 2.24
12259
12259
  */
12260
- export function variant_type_string_is_valid(type_string: string | null): boolean
12260
+ export function variant_type_string_is_valid(type_string: string): boolean
12261
12261
  /**
12262
12262
  * Scan for a single complete and valid GVariant type string in `string`.
12263
12263
  * The memory pointed to by `limit` (or bytes beyond it) is never
@@ -12276,7 +12276,7 @@ export function variant_type_string_is_valid(type_string: string | null): boolea
12276
12276
  * @param limit the end of `string,` or %NULL
12277
12277
  * @returns %TRUE if a valid type string was found
12278
12278
  */
12279
- export function variant_type_string_scan(string: string | null, limit: string | null): [ /* returnType */ boolean, /* endptr */ string | null ]
12279
+ export function variant_type_string_scan(string: string, limit: string | null): [ /* returnType */ boolean, /* endptr */ string ]
12280
12280
  /**
12281
12281
  * Prototype of a #GChildWatchSource callback, called when a child
12282
12282
  * process has exited.
@@ -12624,7 +12624,7 @@ export interface IOFunc {
12624
12624
  * @param message the message to process
12625
12625
  */
12626
12626
  export interface LogFunc {
12627
- (log_domain: string | null, log_level: LogLevelFlags, message: string | null): void
12627
+ (log_domain: string, log_level: LogLevelFlags, message: string): void
12628
12628
  }
12629
12629
  /**
12630
12630
  * Writer function for log entries. A log entry is a collection of one or more
@@ -12687,7 +12687,7 @@ export interface NodeTraverseFunc {
12687
12687
  * @returns %TRUE if the option was successfully parsed, %FALSE if an error occurred, in which case @error should be set with g_set_error()
12688
12688
  */
12689
12689
  export interface OptionArgFunc {
12690
- (option_name: string | null, value: string | null, data: any | null): boolean
12690
+ (option_name: string, value: string, data: any | null): boolean
12691
12691
  }
12692
12692
  /**
12693
12693
  * The type of function to be used as callback when a parse error occurs.
@@ -12729,7 +12729,7 @@ export interface PollFunc {
12729
12729
  * @param string the message to output
12730
12730
  */
12731
12731
  export interface PrintFunc {
12732
- (string: string | null): void
12732
+ (string: string): void
12733
12733
  }
12734
12734
  /**
12735
12735
  * Specifies the type of the function passed to g_regex_replace_eval().
@@ -12885,7 +12885,7 @@ export interface TestFunc {
12885
12885
  * @returns %TRUE if the program should abort, %FALSE otherwise
12886
12886
  */
12887
12887
  export interface TestLogFatalFunc {
12888
- (log_domain: string | null, log_level: LogLevelFlags, message: string | null): boolean
12888
+ (log_domain: string, log_level: LogLevelFlags, message: string): boolean
12889
12889
  }
12890
12890
  /**
12891
12891
  * Specifies the type of the `func` functions passed to g_thread_new()
@@ -12906,7 +12906,7 @@ export interface ThreadFunc {
12906
12906
  * @returns a translation of the string for the current locale. The returned string is owned by GLib and must not be freed.
12907
12907
  */
12908
12908
  export interface TranslateFunc {
12909
- (str: string | null, data: any | null): string | null
12909
+ (str: string, data: any | null): string
12910
12910
  }
12911
12911
  /**
12912
12912
  * Specifies the type of function passed to g_tree_traverse(). It is
@@ -13222,7 +13222,7 @@ export interface BookmarkFile {
13222
13222
  * @param name the name of the application registering the bookmark or %NULL
13223
13223
  * @param exec command line to be used to launch the bookmark or %NULL
13224
13224
  */
13225
- add_application(uri: string | null, name: string | null, exec: string | null): void
13225
+ add_application(uri: string, name: string | null, exec: string | null): void
13226
13226
  /**
13227
13227
  * Adds `group` to the list of groups to which the bookmark for `uri`
13228
13228
  * belongs to.
@@ -13231,7 +13231,7 @@ export interface BookmarkFile {
13231
13231
  * @param uri a valid URI
13232
13232
  * @param group the group name to be added
13233
13233
  */
13234
- add_group(uri: string | null, group: string | null): void
13234
+ add_group(uri: string, group: string): void
13235
13235
  /**
13236
13236
  * Deeply copies a `bookmark` #GBookmarkFile object to a new one.
13237
13237
  * @returns the copy of @bookmark. Use g_bookmark_free() when finished using it.
@@ -13249,7 +13249,7 @@ export interface BookmarkFile {
13249
13249
  * @param uri a valid URI
13250
13250
  * @returns a timestamp
13251
13251
  */
13252
- get_added(uri: string | null): number
13252
+ get_added(uri: string): number
13253
13253
  /**
13254
13254
  * Gets the time the bookmark for `uri` was added to `bookmark`
13255
13255
  *
@@ -13258,7 +13258,7 @@ export interface BookmarkFile {
13258
13258
  * @param uri a valid URI
13259
13259
  * @returns a #GDateTime
13260
13260
  */
13261
- get_added_date_time(uri: string | null): DateTime
13261
+ get_added_date_time(uri: string): DateTime
13262
13262
  /**
13263
13263
  * Gets the registration information of `app_name` for the bookmark for
13264
13264
  * `uri`. See g_bookmark_file_set_application_info() for more information about
@@ -13277,7 +13277,7 @@ export interface BookmarkFile {
13277
13277
  * @param name an application's name
13278
13278
  * @returns %TRUE on success.
13279
13279
  */
13280
- get_app_info(uri: string | null, name: string | null): [ /* returnType */ boolean, /* exec */ string | null, /* count */ number, /* stamp */ number ]
13280
+ get_app_info(uri: string, name: string): [ /* returnType */ boolean, /* exec */ string, /* count */ number, /* stamp */ number ]
13281
13281
  /**
13282
13282
  * Gets the registration information of `app_name` for the bookmark for
13283
13283
  * `uri`. See g_bookmark_file_set_application_info() for more information about
@@ -13296,7 +13296,7 @@ export interface BookmarkFile {
13296
13296
  * @param name an application's name
13297
13297
  * @returns %TRUE on success.
13298
13298
  */
13299
- get_application_info(uri: string | null, name: string | null): [ /* returnType */ boolean, /* exec */ string | null, /* count */ number, /* stamp */ DateTime ]
13299
+ get_application_info(uri: string, name: string): [ /* returnType */ boolean, /* exec */ string, /* count */ number, /* stamp */ DateTime ]
13300
13300
  /**
13301
13301
  * Retrieves the names of the applications that have registered the
13302
13302
  * bookmark for `uri`.
@@ -13306,7 +13306,7 @@ export interface BookmarkFile {
13306
13306
  * @param uri a valid URI
13307
13307
  * @returns a newly allocated %NULL-terminated array of strings. Use g_strfreev() to free it.
13308
13308
  */
13309
- get_applications(uri: string | null): string[]
13309
+ get_applications(uri: string): string[]
13310
13310
  /**
13311
13311
  * Retrieves the description of the bookmark for `uri`.
13312
13312
  *
@@ -13315,7 +13315,7 @@ export interface BookmarkFile {
13315
13315
  * @param uri a valid URI
13316
13316
  * @returns a newly allocated string or %NULL if the specified URI cannot be found.
13317
13317
  */
13318
- get_description(uri: string | null): string | null
13318
+ get_description(uri: string): string | null
13319
13319
  /**
13320
13320
  * Retrieves the list of group names of the bookmark for `uri`.
13321
13321
  *
@@ -13327,7 +13327,7 @@ export interface BookmarkFile {
13327
13327
  * @param uri a valid URI
13328
13328
  * @returns a newly allocated %NULL-terminated array of group names. Use g_strfreev() to free it.
13329
13329
  */
13330
- get_groups(uri: string | null): string[]
13330
+ get_groups(uri: string): string[]
13331
13331
  /**
13332
13332
  * Gets the icon of the bookmark for `uri`.
13333
13333
  *
@@ -13336,7 +13336,7 @@ export interface BookmarkFile {
13336
13336
  * @param uri a valid URI
13337
13337
  * @returns %TRUE if the icon for the bookmark for the URI was found. You should free the returned strings.
13338
13338
  */
13339
- get_icon(uri: string | null): [ /* returnType */ boolean, /* href */ string | null, /* mime_type */ string | null ]
13339
+ get_icon(uri: string): [ /* returnType */ boolean, /* href */ string, /* mime_type */ string ]
13340
13340
  /**
13341
13341
  * Gets whether the private flag of the bookmark for `uri` is set.
13342
13342
  *
@@ -13347,7 +13347,7 @@ export interface BookmarkFile {
13347
13347
  * @param uri a valid URI
13348
13348
  * @returns %TRUE if the private flag is set, %FALSE otherwise.
13349
13349
  */
13350
- get_is_private(uri: string | null): boolean
13350
+ get_is_private(uri: string): boolean
13351
13351
  /**
13352
13352
  * Retrieves the MIME type of the resource pointed by `uri`.
13353
13353
  *
@@ -13358,7 +13358,7 @@ export interface BookmarkFile {
13358
13358
  * @param uri a valid URI
13359
13359
  * @returns a newly allocated string or %NULL if the specified URI cannot be found.
13360
13360
  */
13361
- get_mime_type(uri: string | null): string | null
13361
+ get_mime_type(uri: string): string | null
13362
13362
  /**
13363
13363
  * Gets the time when the bookmark for `uri` was last modified.
13364
13364
  *
@@ -13367,7 +13367,7 @@ export interface BookmarkFile {
13367
13367
  * @param uri a valid URI
13368
13368
  * @returns a timestamp
13369
13369
  */
13370
- get_modified(uri: string | null): number
13370
+ get_modified(uri: string): number
13371
13371
  /**
13372
13372
  * Gets the time when the bookmark for `uri` was last modified.
13373
13373
  *
@@ -13376,7 +13376,7 @@ export interface BookmarkFile {
13376
13376
  * @param uri a valid URI
13377
13377
  * @returns a #GDateTime
13378
13378
  */
13379
- get_modified_date_time(uri: string | null): DateTime
13379
+ get_modified_date_time(uri: string): DateTime
13380
13380
  /**
13381
13381
  * Gets the number of bookmarks inside `bookmark`.
13382
13382
  * @returns the number of bookmarks
@@ -13408,7 +13408,7 @@ export interface BookmarkFile {
13408
13408
  * @param uri a valid URI
13409
13409
  * @returns a timestamp.
13410
13410
  */
13411
- get_visited(uri: string | null): number
13411
+ get_visited(uri: string): number
13412
13412
  /**
13413
13413
  * Gets the time the bookmark for `uri` was last visited.
13414
13414
  *
@@ -13417,7 +13417,7 @@ export interface BookmarkFile {
13417
13417
  * @param uri a valid URI
13418
13418
  * @returns a #GDateTime
13419
13419
  */
13420
- get_visited_date_time(uri: string | null): DateTime
13420
+ get_visited_date_time(uri: string): DateTime
13421
13421
  /**
13422
13422
  * Checks whether the bookmark for `uri` inside `bookmark` has been
13423
13423
  * registered by application `name`.
@@ -13428,7 +13428,7 @@ export interface BookmarkFile {
13428
13428
  * @param name the name of the application
13429
13429
  * @returns %TRUE if the application @name was found
13430
13430
  */
13431
- has_application(uri: string | null, name: string | null): boolean
13431
+ has_application(uri: string, name: string): boolean
13432
13432
  /**
13433
13433
  * Checks whether `group` appears in the list of groups to which
13434
13434
  * the bookmark for `uri` belongs to.
@@ -13439,13 +13439,13 @@ export interface BookmarkFile {
13439
13439
  * @param group the group name to be searched
13440
13440
  * @returns %TRUE if @group was found.
13441
13441
  */
13442
- has_group(uri: string | null, group: string | null): boolean
13442
+ has_group(uri: string, group: string): boolean
13443
13443
  /**
13444
13444
  * Looks whether the desktop bookmark has an item with its URI set to `uri`.
13445
13445
  * @param uri a valid URI
13446
13446
  * @returns %TRUE if @uri is inside @bookmark, %FALSE otherwise
13447
13447
  */
13448
- has_item(uri: string | null): boolean
13448
+ has_item(uri: string): boolean
13449
13449
  /**
13450
13450
  * Loads a bookmark file from memory into an empty #GBookmarkFile
13451
13451
  * structure. If the object cannot be created then `error` is set to a
@@ -13483,7 +13483,7 @@ export interface BookmarkFile {
13483
13483
  * @param new_uri a valid URI, or %NULL
13484
13484
  * @returns %TRUE if the URI was successfully changed
13485
13485
  */
13486
- move_item(old_uri: string | null, new_uri: string | null): boolean
13486
+ move_item(old_uri: string, new_uri: string | null): boolean
13487
13487
  /**
13488
13488
  * Removes application registered with `name` from the list of applications
13489
13489
  * that have registered a bookmark for `uri` inside `bookmark`.
@@ -13497,7 +13497,7 @@ export interface BookmarkFile {
13497
13497
  * @param name the name of the application
13498
13498
  * @returns %TRUE if the application was successfully removed.
13499
13499
  */
13500
- remove_application(uri: string | null, name: string | null): boolean
13500
+ remove_application(uri: string, name: string): boolean
13501
13501
  /**
13502
13502
  * Removes `group` from the list of groups to which the bookmark
13503
13503
  * for `uri` belongs to.
@@ -13510,13 +13510,13 @@ export interface BookmarkFile {
13510
13510
  * @param group the group name to be removed
13511
13511
  * @returns %TRUE if @group was successfully removed.
13512
13512
  */
13513
- remove_group(uri: string | null, group: string | null): boolean
13513
+ remove_group(uri: string, group: string): boolean
13514
13514
  /**
13515
13515
  * Removes the bookmark for `uri` from the bookmark file `bookmark`.
13516
13516
  * @param uri a valid URI
13517
13517
  * @returns %TRUE if the bookmark was removed successfully.
13518
13518
  */
13519
- remove_item(uri: string | null): boolean
13519
+ remove_item(uri: string): boolean
13520
13520
  /**
13521
13521
  * Sets the time the bookmark for `uri` was added into `bookmark`.
13522
13522
  *
@@ -13524,7 +13524,7 @@ export interface BookmarkFile {
13524
13524
  * @param uri a valid URI
13525
13525
  * @param added a timestamp or -1 to use the current time
13526
13526
  */
13527
- set_added(uri: string | null, added: number): void
13527
+ set_added(uri: string, added: number): void
13528
13528
  /**
13529
13529
  * Sets the time the bookmark for `uri` was added into `bookmark`.
13530
13530
  *
@@ -13532,7 +13532,7 @@ export interface BookmarkFile {
13532
13532
  * @param uri a valid URI
13533
13533
  * @param added a #GDateTime
13534
13534
  */
13535
- set_added_date_time(uri: string | null, added: DateTime): void
13535
+ set_added_date_time(uri: string, added: DateTime): void
13536
13536
  /**
13537
13537
  * Sets the meta-data of application `name` inside the list of
13538
13538
  * applications that have registered a bookmark for `uri` inside
@@ -13569,7 +13569,7 @@ export interface BookmarkFile {
13569
13569
  * @param stamp the time of the last registration for this application
13570
13570
  * @returns %TRUE if the application's meta-data was successfully changed.
13571
13571
  */
13572
- set_app_info(uri: string | null, name: string | null, exec: string | null, count: number, stamp: number): boolean
13572
+ set_app_info(uri: string, name: string, exec: string, count: number, stamp: number): boolean
13573
13573
  /**
13574
13574
  * Sets the meta-data of application `name` inside the list of
13575
13575
  * applications that have registered a bookmark for `uri` inside
@@ -13605,7 +13605,7 @@ export interface BookmarkFile {
13605
13605
  * @param stamp the time of the last registration for this application, which may be %NULL if `count` is 0
13606
13606
  * @returns %TRUE if the application's meta-data was successfully changed.
13607
13607
  */
13608
- set_application_info(uri: string | null, name: string | null, exec: string | null, count: number, stamp: DateTime | null): boolean
13608
+ set_application_info(uri: string, name: string, exec: string, count: number, stamp: DateTime | null): boolean
13609
13609
  /**
13610
13610
  * Sets `description` as the description of the bookmark for `uri`.
13611
13611
  *
@@ -13615,7 +13615,7 @@ export interface BookmarkFile {
13615
13615
  * @param uri a valid URI or %NULL
13616
13616
  * @param description a string
13617
13617
  */
13618
- set_description(uri: string | null, description: string | null): void
13618
+ set_description(uri: string | null, description: string): void
13619
13619
  /**
13620
13620
  * Sets a list of group names for the item with URI `uri`. Each previously
13621
13621
  * set group name list is removed.
@@ -13624,7 +13624,7 @@ export interface BookmarkFile {
13624
13624
  * @param uri an item's URI
13625
13625
  * @param groups an array of group names, or %NULL to remove all groups
13626
13626
  */
13627
- set_groups(uri: string | null, groups: string[] | null): void
13627
+ set_groups(uri: string, groups: string[] | null): void
13628
13628
  /**
13629
13629
  * Sets the icon for the bookmark for `uri`. If `href` is %NULL, unsets
13630
13630
  * the currently set icon. `href` can either be a full URL for the icon
@@ -13635,7 +13635,7 @@ export interface BookmarkFile {
13635
13635
  * @param href the URI of the icon for the bookmark, or %NULL
13636
13636
  * @param mime_type the MIME type of the icon for the bookmark
13637
13637
  */
13638
- set_icon(uri: string | null, href: string | null, mime_type: string | null): void
13638
+ set_icon(uri: string, href: string | null, mime_type: string): void
13639
13639
  /**
13640
13640
  * Sets the private flag of the bookmark for `uri`.
13641
13641
  *
@@ -13643,7 +13643,7 @@ export interface BookmarkFile {
13643
13643
  * @param uri a valid URI
13644
13644
  * @param is_private %TRUE if the bookmark should be marked as private
13645
13645
  */
13646
- set_is_private(uri: string | null, is_private: boolean): void
13646
+ set_is_private(uri: string, is_private: boolean): void
13647
13647
  /**
13648
13648
  * Sets `mime_type` as the MIME type of the bookmark for `uri`.
13649
13649
  *
@@ -13651,7 +13651,7 @@ export interface BookmarkFile {
13651
13651
  * @param uri a valid URI
13652
13652
  * @param mime_type a MIME type
13653
13653
  */
13654
- set_mime_type(uri: string | null, mime_type: string | null): void
13654
+ set_mime_type(uri: string, mime_type: string): void
13655
13655
  /**
13656
13656
  * Sets the last time the bookmark for `uri` was last modified.
13657
13657
  *
@@ -13664,7 +13664,7 @@ export interface BookmarkFile {
13664
13664
  * @param uri a valid URI
13665
13665
  * @param modified a timestamp or -1 to use the current time
13666
13666
  */
13667
- set_modified(uri: string | null, modified: number): void
13667
+ set_modified(uri: string, modified: number): void
13668
13668
  /**
13669
13669
  * Sets the last time the bookmark for `uri` was last modified.
13670
13670
  *
@@ -13677,7 +13677,7 @@ export interface BookmarkFile {
13677
13677
  * @param uri a valid URI
13678
13678
  * @param modified a #GDateTime
13679
13679
  */
13680
- set_modified_date_time(uri: string | null, modified: DateTime): void
13680
+ set_modified_date_time(uri: string, modified: DateTime): void
13681
13681
  /**
13682
13682
  * Sets `title` as the title of the bookmark for `uri` inside the
13683
13683
  * bookmark file `bookmark`.
@@ -13688,7 +13688,7 @@ export interface BookmarkFile {
13688
13688
  * @param uri a valid URI or %NULL
13689
13689
  * @param title a UTF-8 encoded string
13690
13690
  */
13691
- set_title(uri: string | null, title: string | null): void
13691
+ set_title(uri: string | null, title: string): void
13692
13692
  /**
13693
13693
  * Sets the time the bookmark for `uri` was last visited.
13694
13694
  *
@@ -13702,7 +13702,7 @@ export interface BookmarkFile {
13702
13702
  * @param uri a valid URI
13703
13703
  * @param visited a timestamp or -1 to use the current time
13704
13704
  */
13705
- set_visited(uri: string | null, visited: number): void
13705
+ set_visited(uri: string, visited: number): void
13706
13706
  /**
13707
13707
  * Sets the time the bookmark for `uri` was last visited.
13708
13708
  *
@@ -13716,7 +13716,7 @@ export interface BookmarkFile {
13716
13716
  * @param uri a valid URI
13717
13717
  * @param visited a #GDateTime
13718
13718
  */
13719
- set_visited_date_time(uri: string | null, visited: DateTime): void
13719
+ set_visited_date_time(uri: string, visited: DateTime): void
13720
13720
  /**
13721
13721
  * This function outputs `bookmark` as a string.
13722
13722
  * @returns a newly allocated string holding the contents of the #GBookmarkFile
@@ -14127,7 +14127,7 @@ export interface Checksum {
14127
14127
  * The hexadecimal characters will be lower case.
14128
14128
  * @returns the hexadecimal representation of the checksum. The returned string is owned by the checksum and should not be modified or freed.
14129
14129
  */
14130
- get_string(): string | null
14130
+ get_string(): string
14131
14131
  /**
14132
14132
  * Resets the state of the `checksum` back to its initial state.
14133
14133
  */
@@ -14633,7 +14633,7 @@ export interface Date {
14633
14633
  * capacity).
14634
14634
  * @param str string to parse
14635
14635
  */
14636
- set_parse(str: string | null): void
14636
+ set_parse(str: string): void
14637
14637
  /**
14638
14638
  * Sets the value of a date from a #GTime value.
14639
14639
  * The time to date conversion is done using the user's current timezone.
@@ -14838,7 +14838,7 @@ export class Date {
14838
14838
  * @param date valid #GDate
14839
14839
  * @returns number of characters written to the buffer, or 0 the buffer was too small
14840
14840
  */
14841
- static strftime(s: string | null, slen: number, format: string | null, date: Date): number
14841
+ static strftime(s: string | null, slen: number, format: string, date: Date): number
14842
14842
  /**
14843
14843
  * Returns %TRUE if the day of the month is valid (a day is valid if it's
14844
14844
  * between 1 and 31 inclusive).
@@ -15093,7 +15093,7 @@ export interface DateTime {
15093
15093
  * @param format a valid UTF-8 string, containing the format for the #GDateTime
15094
15094
  * @returns a newly allocated string formatted to the requested format or %NULL in the case that there was an error (such as a format specifier not being supported in the current locale). The string should be freed with g_free().
15095
15095
  */
15096
- format(format: string | null): string | null
15096
+ format(format: string): string | null
15097
15097
  /**
15098
15098
  * Format `datetime` in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601),
15099
15099
  * including the date, time and time zone, and return that as a UTF-8 encoded
@@ -15167,7 +15167,7 @@ export interface DateTime {
15167
15167
  * time is in effect.
15168
15168
  * @returns the time zone abbreviation. The returned string is owned by the #GDateTime and it should not be modified or freed
15169
15169
  */
15170
- get_timezone_abbreviation(): string | null
15170
+ get_timezone_abbreviation(): string
15171
15171
  /**
15172
15172
  * Determines the offset to UTC in effect at the time and in the time
15173
15173
  * zone of `datetime`.
@@ -15465,7 +15465,7 @@ export class DateTime {
15465
15465
  * @param default_tz a #GTimeZone to use if the text doesn't contain a timezone, or %NULL.
15466
15466
  * @returns a new #GDateTime, or %NULL
15467
15467
  */
15468
- static new_from_iso8601(text: string | null, default_tz: TimeZone | null): DateTime
15468
+ static new_from_iso8601(text: string, default_tz: TimeZone | null): DateTime
15469
15469
  /**
15470
15470
  * Creates a #GDateTime corresponding to the given #GTimeVal `tv` in the
15471
15471
  * local time zone.
@@ -15609,7 +15609,7 @@ export interface DebugKey {
15609
15609
  * the string
15610
15610
  * @field
15611
15611
  */
15612
- key: string | null
15612
+ key: string
15613
15613
  /**
15614
15614
  * the flag
15615
15615
  * @field
@@ -15788,7 +15788,7 @@ export class Error {
15788
15788
  * @param message error message
15789
15789
  * @returns a new #GError
15790
15790
  */
15791
- static new_literal(domain: Quark, code: number, message: string | null): Error
15791
+ static new_literal(domain: Quark, code: number, message: string): Error
15792
15792
 
15793
15793
  // Owm static methods of GLib-2.0.GLib.Error
15794
15794
 
@@ -16114,7 +16114,7 @@ export interface Hmac {
16114
16114
  * The hexadecimal characters will be lower case.
16115
16115
  * @returns the hexadecimal representation of the HMAC. The returned string is owned by the HMAC and should not be modified or freed.
16116
16116
  */
16117
- get_string(): string | null
16117
+ get_string(): string
16118
16118
  /**
16119
16119
  * Atomically decrements the reference count of `hmac` by one.
16120
16120
  *
@@ -16400,7 +16400,7 @@ export interface IOChannel {
16400
16400
  * makes the channel safe for binary data.
16401
16401
  * @returns A string containing the encoding, this string is owned by GLib and must not be freed.
16402
16402
  */
16403
- get_encoding(): string | null
16403
+ get_encoding(): string
16404
16404
  /**
16405
16405
  * Gets the current flags for a #GIOChannel, including read-only
16406
16406
  * flags such as %G_IO_FLAG_IS_READABLE.
@@ -16420,7 +16420,7 @@ export interface IOChannel {
16420
16420
  * indicates autodetection.
16421
16421
  * @returns The line termination string. This value is owned by GLib and must not be freed.
16422
16422
  */
16423
- get_line_term(): [ /* returnType */ string | null, /* length */ number ]
16423
+ get_line_term(): [ /* returnType */ string, /* length */ number ]
16424
16424
  /**
16425
16425
  * Initializes a #GIOChannel struct.
16426
16426
  *
@@ -16605,7 +16605,7 @@ export interface IOChannel {
16605
16605
  * @param bytes_written the number of bytes actually written
16606
16606
  * @returns %G_IO_ERROR_NONE if the operation was successful.
16607
16607
  */
16608
- write(buf: string | null, count: number, bytes_written: number): IOError
16608
+ write(buf: string, count: number, bytes_written: number): IOError
16609
16609
  /**
16610
16610
  * Replacement for g_io_channel_write() with the new API.
16611
16611
  *
@@ -16652,7 +16652,7 @@ export class IOChannel {
16652
16652
  * @param mode One of "r", "w", "a", "r+", "w+", "a+". These have the same meaning as in fopen()
16653
16653
  * @returns A #GIOChannel on success, %NULL on failure.
16654
16654
  */
16655
- static new_file(filename: string, mode: string | null): IOChannel
16655
+ static new_file(filename: string, mode: string): IOChannel
16656
16656
  /**
16657
16657
  * Creates a new #GIOChannel given a file descriptor. On UNIX systems
16658
16658
  * this works for plain files, pipes, and sockets.
@@ -16695,7 +16695,7 @@ export interface IOFuncs {
16695
16695
  // Own fields of GLib-2.0.GLib.IOFuncs
16696
16696
 
16697
16697
  io_read: (channel: IOChannel, buf: string | null, count: number, bytes_read: number) => IOStatus
16698
- io_write: (channel: IOChannel, buf: string | null, count: number, bytes_written: number) => IOStatus
16698
+ io_write: (channel: IOChannel, buf: string, count: number, bytes_written: number) => IOStatus
16699
16699
  io_seek: (channel: IOChannel, offset: number, type: SeekType) => IOStatus
16700
16700
  io_close: (channel: IOChannel) => IOStatus
16701
16701
  io_create_watch: (channel: IOChannel, condition: IOCondition) => Source
@@ -16732,7 +16732,7 @@ export interface KeyFile {
16732
16732
  * @param key a key
16733
16733
  * @returns the value associated with the key as a boolean, or %FALSE if the key was not found or could not be parsed.
16734
16734
  */
16735
- get_boolean(group_name: string | null, key: string | null): boolean
16735
+ get_boolean(group_name: string, key: string): boolean
16736
16736
  /**
16737
16737
  * Returns the values associated with `key` under `group_name` as
16738
16738
  * booleans.
@@ -16745,7 +16745,7 @@ export interface KeyFile {
16745
16745
  * @param key a key
16746
16746
  * @returns the values associated with the key as a list of booleans, or %NULL if the key was not found or could not be parsed. The returned list of booleans should be freed with g_free() when no longer needed.
16747
16747
  */
16748
- get_boolean_list(group_name: string | null, key: string | null): boolean[]
16748
+ get_boolean_list(group_name: string, key: string): boolean[]
16749
16749
  /**
16750
16750
  * Retrieves a comment above `key` from `group_name`.
16751
16751
  * If `key` is %NULL then `comment` will be read from above
@@ -16772,7 +16772,7 @@ export interface KeyFile {
16772
16772
  * @param key a key
16773
16773
  * @returns the value associated with the key as a double, or 0.0 if the key was not found or could not be parsed.
16774
16774
  */
16775
- get_double(group_name: string | null, key: string | null): number
16775
+ get_double(group_name: string, key: string): number
16776
16776
  /**
16777
16777
  * Returns the values associated with `key` under `group_name` as
16778
16778
  * doubles.
@@ -16785,7 +16785,7 @@ export interface KeyFile {
16785
16785
  * @param key a key
16786
16786
  * @returns the values associated with the key as a list of doubles, or %NULL if the key was not found or could not be parsed. The returned list of doubles should be freed with g_free() when no longer needed.
16787
16787
  */
16788
- get_double_list(group_name: string | null, key: string | null): number[]
16788
+ get_double_list(group_name: string, key: string): number[]
16789
16789
  /**
16790
16790
  * Returns all groups in the key file loaded with `key_file`.
16791
16791
  * The array of returned groups will be %NULL-terminated, so
@@ -16801,7 +16801,7 @@ export interface KeyFile {
16801
16801
  * @param key a non-%NULL key
16802
16802
  * @returns the value associated with the key as a signed 64-bit integer, or 0 if the key was not found or could not be parsed.
16803
16803
  */
16804
- get_int64(group_name: string | null, key: string | null): number
16804
+ get_int64(group_name: string, key: string): number
16805
16805
  /**
16806
16806
  * Returns the value associated with `key` under `group_name` as an
16807
16807
  * integer.
@@ -16815,7 +16815,7 @@ export interface KeyFile {
16815
16815
  * @param key a key
16816
16816
  * @returns the value associated with the key as an integer, or 0 if the key was not found or could not be parsed.
16817
16817
  */
16818
- get_integer(group_name: string | null, key: string | null): number
16818
+ get_integer(group_name: string, key: string): number
16819
16819
  /**
16820
16820
  * Returns the values associated with `key` under `group_name` as
16821
16821
  * integers.
@@ -16829,7 +16829,7 @@ export interface KeyFile {
16829
16829
  * @param key a key
16830
16830
  * @returns the values associated with the key as a list of integers, or %NULL if the key was not found or could not be parsed. The returned list of integers should be freed with g_free() when no longer needed.
16831
16831
  */
16832
- get_integer_list(group_name: string | null, key: string | null): number[]
16832
+ get_integer_list(group_name: string, key: string): number[]
16833
16833
  /**
16834
16834
  * Returns all keys for the group name `group_name`. The array of
16835
16835
  * returned keys will be %NULL-terminated, so `length` may
@@ -16839,7 +16839,7 @@ export interface KeyFile {
16839
16839
  * @param group_name a group name
16840
16840
  * @returns a newly-allocated %NULL-terminated array of strings. Use g_strfreev() to free it.
16841
16841
  */
16842
- get_keys(group_name: string | null): [ /* returnType */ string[], /* length */ number ]
16842
+ get_keys(group_name: string): [ /* returnType */ string[], /* length */ number ]
16843
16843
  /**
16844
16844
  * Returns the actual locale which the result of
16845
16845
  * g_key_file_get_locale_string() or g_key_file_get_locale_string_list()
@@ -16855,7 +16855,7 @@ export interface KeyFile {
16855
16855
  * @param locale a locale identifier or %NULL
16856
16856
  * @returns the locale from the file, or %NULL if the key was not found or the entry in the file was was untranslated
16857
16857
  */
16858
- get_locale_for_key(group_name: string | null, key: string | null, locale: string | null): string | null
16858
+ get_locale_for_key(group_name: string, key: string, locale: string | null): string | null
16859
16859
  /**
16860
16860
  * Returns the value associated with `key` under `group_name`
16861
16861
  * translated in the given `locale` if available. If `locale` is
@@ -16874,7 +16874,7 @@ export interface KeyFile {
16874
16874
  * @param locale a locale identifier or %NULL
16875
16875
  * @returns a newly allocated string or %NULL if the specified key cannot be found.
16876
16876
  */
16877
- get_locale_string(group_name: string | null, key: string | null, locale: string | null): string | null
16877
+ get_locale_string(group_name: string, key: string, locale: string | null): string | null
16878
16878
  /**
16879
16879
  * Returns the values associated with `key` under `group_name`
16880
16880
  * translated in the given `locale` if available. If `locale` is
@@ -16895,7 +16895,7 @@ export interface KeyFile {
16895
16895
  * @param locale a locale identifier or %NULL
16896
16896
  * @returns a newly allocated %NULL-terminated string array or %NULL if the key isn't found. The string array should be freed with g_strfreev().
16897
16897
  */
16898
- get_locale_string_list(group_name: string | null, key: string | null, locale: string | null): string[]
16898
+ get_locale_string_list(group_name: string, key: string, locale: string | null): string[]
16899
16899
  /**
16900
16900
  * Returns the name of the start group of the file.
16901
16901
  * @returns The start group of the key file.
@@ -16914,7 +16914,7 @@ export interface KeyFile {
16914
16914
  * @param key a key
16915
16915
  * @returns a newly allocated string or %NULL if the specified key cannot be found.
16916
16916
  */
16917
- get_string(group_name: string | null, key: string | null): string | null
16917
+ get_string(group_name: string, key: string): string | null
16918
16918
  /**
16919
16919
  * Returns the values associated with `key` under `group_name`.
16920
16920
  *
@@ -16926,7 +16926,7 @@ export interface KeyFile {
16926
16926
  * @param key a key
16927
16927
  * @returns a %NULL-terminated string array or %NULL if the specified key cannot be found. The array should be freed with g_strfreev().
16928
16928
  */
16929
- get_string_list(group_name: string | null, key: string | null): string[]
16929
+ get_string_list(group_name: string, key: string): string[]
16930
16930
  /**
16931
16931
  * Returns the value associated with `key` under `group_name` as an unsigned
16932
16932
  * 64-bit integer. This is similar to g_key_file_get_integer() but can return
@@ -16935,7 +16935,7 @@ export interface KeyFile {
16935
16935
  * @param key a non-%NULL key
16936
16936
  * @returns the value associated with the key as an unsigned 64-bit integer, or 0 if the key was not found or could not be parsed.
16937
16937
  */
16938
- get_uint64(group_name: string | null, key: string | null): number
16938
+ get_uint64(group_name: string, key: string): number
16939
16939
  /**
16940
16940
  * Returns the raw value associated with `key` under `group_name`.
16941
16941
  * Use g_key_file_get_string() to retrieve an unescaped UTF-8 string.
@@ -16948,13 +16948,13 @@ export interface KeyFile {
16948
16948
  * @param key a key
16949
16949
  * @returns a newly allocated string or %NULL if the specified key cannot be found.
16950
16950
  */
16951
- get_value(group_name: string | null, key: string | null): string | null
16951
+ get_value(group_name: string, key: string): string | null
16952
16952
  /**
16953
16953
  * Looks whether the key file has the group `group_name`.
16954
16954
  * @param group_name a group name
16955
16955
  * @returns %TRUE if @group_name is a part of @key_file, %FALSE otherwise.
16956
16956
  */
16957
- has_group(group_name: string | null): boolean
16957
+ has_group(group_name: string): boolean
16958
16958
  /**
16959
16959
  * Loads a key file from the data in `bytes` into an empty #GKeyFile structure.
16960
16960
  * If the object cannot be created then %error is set to a #GKeyFileError.
@@ -16971,7 +16971,7 @@ export interface KeyFile {
16971
16971
  * @param flags flags from #GKeyFileFlags
16972
16972
  * @returns %TRUE if a key file could be loaded, %FALSE otherwise
16973
16973
  */
16974
- load_from_data(data: string | null, length: number, flags: KeyFileFlags): boolean
16974
+ load_from_data(data: string, length: number, flags: KeyFileFlags): boolean
16975
16975
  /**
16976
16976
  * This function looks for a key file named `file` in the paths
16977
16977
  * returned from g_get_user_data_dir() and g_get_system_data_dirs(),
@@ -17029,14 +17029,14 @@ export interface KeyFile {
17029
17029
  * @param group_name a group name
17030
17030
  * @returns %TRUE if the group was removed, %FALSE otherwise
17031
17031
  */
17032
- remove_group(group_name: string | null): boolean
17032
+ remove_group(group_name: string): boolean
17033
17033
  /**
17034
17034
  * Removes `key` in `group_name` from the key file.
17035
17035
  * @param group_name a group name
17036
17036
  * @param key a key name to remove
17037
17037
  * @returns %TRUE if the key was removed, %FALSE otherwise
17038
17038
  */
17039
- remove_key(group_name: string | null, key: string | null): boolean
17039
+ remove_key(group_name: string, key: string): boolean
17040
17040
  /**
17041
17041
  * Writes the contents of `key_file` to `filename` using
17042
17042
  * g_file_set_contents(). If you need stricter guarantees about durability of
@@ -17048,7 +17048,7 @@ export interface KeyFile {
17048
17048
  * @param filename the name of the file to write to
17049
17049
  * @returns %TRUE if successful, else %FALSE with @error set
17050
17050
  */
17051
- save_to_file(filename: string | null): boolean
17051
+ save_to_file(filename: string): boolean
17052
17052
  /**
17053
17053
  * Associates a new boolean value with `key` under `group_name`.
17054
17054
  * If `key` cannot be found then it is created.
@@ -17056,7 +17056,7 @@ export interface KeyFile {
17056
17056
  * @param key a key
17057
17057
  * @param value %TRUE or %FALSE
17058
17058
  */
17059
- set_boolean(group_name: string | null, key: string | null, value: boolean): void
17059
+ set_boolean(group_name: string, key: string, value: boolean): void
17060
17060
  /**
17061
17061
  * Associates a list of boolean values with `key` under `group_name`.
17062
17062
  * If `key` cannot be found then it is created.
@@ -17065,7 +17065,7 @@ export interface KeyFile {
17065
17065
  * @param key a key
17066
17066
  * @param list an array of boolean values
17067
17067
  */
17068
- set_boolean_list(group_name: string | null, key: string | null, list: boolean[]): void
17068
+ set_boolean_list(group_name: string, key: string, list: boolean[]): void
17069
17069
  /**
17070
17070
  * Places a comment above `key` from `group_name`.
17071
17071
  *
@@ -17080,7 +17080,7 @@ export interface KeyFile {
17080
17080
  * @param comment a comment
17081
17081
  * @returns %TRUE if the comment was written, %FALSE otherwise
17082
17082
  */
17083
- set_comment(group_name: string | null, key: string | null, comment: string | null): boolean
17083
+ set_comment(group_name: string | null, key: string | null, comment: string): boolean
17084
17084
  /**
17085
17085
  * Associates a new double value with `key` under `group_name`.
17086
17086
  * If `key` cannot be found then it is created.
@@ -17088,7 +17088,7 @@ export interface KeyFile {
17088
17088
  * @param key a key
17089
17089
  * @param value a double value
17090
17090
  */
17091
- set_double(group_name: string | null, key: string | null, value: number): void
17091
+ set_double(group_name: string, key: string, value: number): void
17092
17092
  /**
17093
17093
  * Associates a list of double values with `key` under
17094
17094
  * `group_name`. If `key` cannot be found then it is created.
@@ -17096,7 +17096,7 @@ export interface KeyFile {
17096
17096
  * @param key a key
17097
17097
  * @param list an array of double values
17098
17098
  */
17099
- set_double_list(group_name: string | null, key: string | null, list: number[]): void
17099
+ set_double_list(group_name: string, key: string, list: number[]): void
17100
17100
  /**
17101
17101
  * Associates a new integer value with `key` under `group_name`.
17102
17102
  * If `key` cannot be found then it is created.
@@ -17104,7 +17104,7 @@ export interface KeyFile {
17104
17104
  * @param key a key
17105
17105
  * @param value an integer value
17106
17106
  */
17107
- set_int64(group_name: string | null, key: string | null, value: number): void
17107
+ set_int64(group_name: string, key: string, value: number): void
17108
17108
  /**
17109
17109
  * Associates a new integer value with `key` under `group_name`.
17110
17110
  * If `key` cannot be found then it is created.
@@ -17112,7 +17112,7 @@ export interface KeyFile {
17112
17112
  * @param key a key
17113
17113
  * @param value an integer value
17114
17114
  */
17115
- set_integer(group_name: string | null, key: string | null, value: number): void
17115
+ set_integer(group_name: string, key: string, value: number): void
17116
17116
  /**
17117
17117
  * Associates a list of integer values with `key` under `group_name`.
17118
17118
  * If `key` cannot be found then it is created.
@@ -17120,7 +17120,7 @@ export interface KeyFile {
17120
17120
  * @param key a key
17121
17121
  * @param list an array of integer values
17122
17122
  */
17123
- set_integer_list(group_name: string | null, key: string | null, list: number[]): void
17123
+ set_integer_list(group_name: string, key: string, list: number[]): void
17124
17124
  /**
17125
17125
  * Sets the character which is used to separate
17126
17126
  * values in lists. Typically ';' or ',' are used
@@ -17136,7 +17136,7 @@ export interface KeyFile {
17136
17136
  * @param locale a locale identifier
17137
17137
  * @param string a string
17138
17138
  */
17139
- set_locale_string(group_name: string | null, key: string | null, locale: string | null, string: string | null): void
17139
+ set_locale_string(group_name: string, key: string, locale: string, string: string): void
17140
17140
  /**
17141
17141
  * Associates a list of string values for `key` and `locale` under
17142
17142
  * `group_name`. If the translation for `key` cannot be found then
@@ -17146,7 +17146,7 @@ export interface KeyFile {
17146
17146
  * @param locale a locale identifier
17147
17147
  * @param list a %NULL-terminated array of locale string values
17148
17148
  */
17149
- set_locale_string_list(group_name: string | null, key: string | null, locale: string | null, list: string[]): void
17149
+ set_locale_string_list(group_name: string, key: string, locale: string, list: string[]): void
17150
17150
  /**
17151
17151
  * Associates a new string value with `key` under `group_name`.
17152
17152
  * If `key` cannot be found then it is created.
@@ -17157,7 +17157,7 @@ export interface KeyFile {
17157
17157
  * @param key a key
17158
17158
  * @param string a string
17159
17159
  */
17160
- set_string(group_name: string | null, key: string | null, string: string | null): void
17160
+ set_string(group_name: string, key: string, string: string): void
17161
17161
  /**
17162
17162
  * Associates a list of string values for `key` under `group_name`.
17163
17163
  * If `key` cannot be found then it is created.
@@ -17166,7 +17166,7 @@ export interface KeyFile {
17166
17166
  * @param key a key
17167
17167
  * @param list an array of string values
17168
17168
  */
17169
- set_string_list(group_name: string | null, key: string | null, list: string[]): void
17169
+ set_string_list(group_name: string, key: string, list: string[]): void
17170
17170
  /**
17171
17171
  * Associates a new integer value with `key` under `group_name`.
17172
17172
  * If `key` cannot be found then it is created.
@@ -17174,7 +17174,7 @@ export interface KeyFile {
17174
17174
  * @param key a key
17175
17175
  * @param value an integer value
17176
17176
  */
17177
- set_uint64(group_name: string | null, key: string | null, value: number): void
17177
+ set_uint64(group_name: string, key: string, value: number): void
17178
17178
  /**
17179
17179
  * Associates a new value with `key` under `group_name`.
17180
17180
  *
@@ -17186,7 +17186,7 @@ export interface KeyFile {
17186
17186
  * @param key a key
17187
17187
  * @param value a string
17188
17188
  */
17189
- set_value(group_name: string | null, key: string | null, value: string | null): void
17189
+ set_value(group_name: string, key: string, value: string): void
17190
17190
  /**
17191
17191
  * This function outputs `key_file` as a string.
17192
17192
  *
@@ -17416,7 +17416,7 @@ export interface LogField {
17416
17416
  * field name (UTF-8 string)
17417
17417
  * @field
17418
17418
  */
17419
- key: string | null
17419
+ key: string
17420
17420
  /**
17421
17421
  * field value (arbitrary bytes)
17422
17422
  * @field
@@ -17826,6 +17826,11 @@ export interface MainLoop {
17826
17826
  * the result is zero, free the loop and free all associated memory.
17827
17827
  */
17828
17828
  unref(): void
17829
+ /**
17830
+ * Similar to `GLib.MainLoop.run` but return a Promise which resolves when the main loop ends, instead of blocking while the main loop runs.
17831
+ * This helps avoid the situation where Promises never resolved if you didn't run the main loop inside a callback.
17832
+ */
17833
+ runAsync(): Promise<void>
17829
17834
  }
17830
17835
 
17831
17836
  /**
@@ -18015,7 +18020,7 @@ export interface MarkupParseContext {
18015
18020
  * elements, see g_markup_parse_context_get_element_stack().
18016
18021
  * @returns the name of the currently open element, or %NULL
18017
18022
  */
18018
- get_element(): string | null
18023
+ get_element(): string
18019
18024
  /**
18020
18025
  * Retrieves the current line number and the number of the character on
18021
18026
  * that line. Intended for use in error messages; there are no strict
@@ -18047,7 +18052,7 @@ export interface MarkupParseContext {
18047
18052
  * @param text_len length of `text` in bytes
18048
18053
  * @returns %FALSE if an error occurred, %TRUE on success
18049
18054
  */
18050
- parse(text: string | null, text_len: number): boolean
18055
+ parse(text: string, text_len: number): boolean
18051
18056
  /**
18052
18057
  * Completes the process of a temporary sub-parser redirection.
18053
18058
  *
@@ -18252,10 +18257,10 @@ export interface MarkupParser {
18252
18257
 
18253
18258
  // Own fields of GLib-2.0.GLib.MarkupParser
18254
18259
 
18255
- start_element: (context: MarkupParseContext, element_name: string | null, attribute_names: string | null, attribute_values: string | null) => void
18256
- end_element: (context: MarkupParseContext, element_name: string | null) => void
18257
- text: (context: MarkupParseContext, text: string | null, text_len: number) => void
18258
- passthrough: (context: MarkupParseContext, passthrough_text: string | null, text_len: number) => void
18260
+ start_element: (context: MarkupParseContext, element_name: string, attribute_names: string, attribute_values: string) => void
18261
+ end_element: (context: MarkupParseContext, element_name: string) => void
18262
+ text: (context: MarkupParseContext, text: string, text_len: number) => void
18263
+ passthrough: (context: MarkupParseContext, passthrough_text: string, text_len: number) => void
18259
18264
  error: (context: MarkupParseContext, error: Error) => void
18260
18265
  }
18261
18266
 
@@ -18301,7 +18306,7 @@ export interface MatchInfo {
18301
18306
  * @param string_to_expand the string to expand
18302
18307
  * @returns the expanded string, or %NULL if an error occurred
18303
18308
  */
18304
- expand_references(string_to_expand: string | null): string | null
18309
+ expand_references(string_to_expand: string): string | null
18305
18310
  /**
18306
18311
  * Retrieves the text matching the `match_num'`th capturing
18307
18312
  * parentheses. 0 is the full text of the match, 1 is the first paren
@@ -18355,7 +18360,7 @@ export interface MatchInfo {
18355
18360
  * @param name name of the subexpression
18356
18361
  * @returns The matched substring, or %NULL if an error occurred. You have to free the string yourself
18357
18362
  */
18358
- fetch_named(name: string | null): string | null
18363
+ fetch_named(name: string): string | null
18359
18364
  /**
18360
18365
  * Retrieves the position in bytes of the capturing parentheses named `name`.
18361
18366
  *
@@ -18365,7 +18370,7 @@ export interface MatchInfo {
18365
18370
  * @param name name of the subexpression
18366
18371
  * @returns %TRUE if the position was fetched, %FALSE otherwise. If the position cannot be fetched, @start_pos and @end_pos are left unchanged.
18367
18372
  */
18368
- fetch_named_pos(name: string | null): [ /* returnType */ boolean, /* start_pos */ number, /* end_pos */ number ]
18373
+ fetch_named_pos(name: string): [ /* returnType */ boolean, /* start_pos */ number, /* end_pos */ number ]
18369
18374
  /**
18370
18375
  * Retrieves the position in bytes of the `match_num'`th capturing
18371
18376
  * parentheses. 0 is the full text of the match, 1 is the first
@@ -18414,7 +18419,7 @@ export interface MatchInfo {
18414
18419
  * you may not free it before calling this function.
18415
18420
  * @returns the string searched with @match_info
18416
18421
  */
18417
- get_string(): string | null
18422
+ get_string(): string
18418
18423
  /**
18419
18424
  * Usually if the string passed to g_regex_match*() matches as far as
18420
18425
  * it goes, but is too short to match the entire pattern, %FALSE is
@@ -18740,7 +18745,7 @@ export interface OptionContext {
18740
18745
  * Returns the description. See g_option_context_set_description().
18741
18746
  * @returns the description
18742
18747
  */
18743
- get_description(): string | null
18748
+ get_description(): string
18744
18749
  /**
18745
18750
  * Returns a formatted, translated help text for the given context.
18746
18751
  * To obtain the text produced by `--help`, call
@@ -18782,7 +18787,7 @@ export interface OptionContext {
18782
18787
  * Returns the summary. See g_option_context_set_summary().
18783
18788
  * @returns the summary
18784
18789
  */
18785
- get_summary(): string | null
18790
+ get_summary(): string
18786
18791
  /**
18787
18792
  * Parses the command line arguments, recognizing options
18788
18793
  * which have been added to `context`. A side-effect of
@@ -18924,7 +18929,7 @@ export interface OptionContext {
18924
18929
  * user-visible strings.
18925
18930
  * @param domain the domain to use
18926
18931
  */
18927
- set_translation_domain(domain: string | null): void
18932
+ set_translation_domain(domain: string): void
18928
18933
  }
18929
18934
 
18930
18935
  /**
@@ -19108,7 +19113,7 @@ export interface OptionEntry {
19108
19113
  * `--groupname-long_name`.
19109
19114
  * @field
19110
19115
  */
19111
- long_name: string | null
19116
+ long_name: string
19112
19117
  /**
19113
19118
  * If an option has a short name, it can be specified
19114
19119
  * `-short_name` in a commandline. `short_name` must be a printable
@@ -19154,7 +19159,7 @@ export interface OptionEntry {
19154
19159
  * of the group, see g_option_group_set_translation_domain().
19155
19160
  * @field
19156
19161
  */
19157
- description: string | null
19162
+ description: string
19158
19163
  /**
19159
19164
  * The placeholder to use for the extra argument parsed
19160
19165
  * by the option in `--help` output. The `arg_description` is translated
@@ -19162,7 +19167,7 @@ export interface OptionEntry {
19162
19167
  * g_option_group_set_translation_domain().
19163
19168
  * @field
19164
19169
  */
19165
- arg_description: string | null
19170
+ arg_description: string
19166
19171
  }
19167
19172
 
19168
19173
  /**
@@ -19212,7 +19217,7 @@ export interface OptionGroup {
19212
19217
  * user-visible strings.
19213
19218
  * @param domain the domain to use
19214
19219
  */
19215
- set_translation_domain(domain: string | null): void
19220
+ set_translation_domain(domain: string): void
19216
19221
  /**
19217
19222
  * Decrements the reference count of `group` by one.
19218
19223
  * If the reference count drops to 0, the `group` will be freed.
@@ -19249,7 +19254,7 @@ export class OptionGroup {
19249
19254
  * @param destroy a function that will be called to free `user_data,` or %NULL
19250
19255
  * @returns a newly created option group. It should be added to a #GOptionContext or freed with g_option_group_unref().
19251
19256
  */
19252
- constructor(name: string | null, description: string | null, help_description: string | null, user_data: any | null, destroy: DestroyNotify | null)
19257
+ constructor(name: string, description: string, help_description: string, user_data: any | null, destroy: DestroyNotify | null)
19253
19258
  /**
19254
19259
  * Creates a new #GOptionGroup.
19255
19260
  * @constructor
@@ -19260,7 +19265,7 @@ export class OptionGroup {
19260
19265
  * @param destroy a function that will be called to free `user_data,` or %NULL
19261
19266
  * @returns a newly created option group. It should be added to a #GOptionContext or freed with g_option_group_unref().
19262
19267
  */
19263
- static new(name: string | null, description: string | null, help_description: string | null, user_data: any | null, destroy: DestroyNotify | null): OptionGroup
19268
+ static new(name: string, description: string, help_description: string, user_data: any | null, destroy: DestroyNotify | null): OptionGroup
19264
19269
  }
19265
19270
 
19266
19271
  export interface PathBuf {
@@ -19539,7 +19544,7 @@ export interface PatternSpec {
19539
19544
  * @param string_reversed the reverse of `string` or %NULL
19540
19545
  * @returns %TRUE if @string matches @pspec
19541
19546
  */
19542
- match(string_length: number, string: string | null, string_reversed: string | null): boolean
19547
+ match(string_length: number, string: string, string_reversed: string | null): boolean
19543
19548
  /**
19544
19549
  * Matches a string against a compiled pattern. If the string is to be
19545
19550
  * matched against more than one pattern, consider using
@@ -19547,7 +19552,7 @@ export interface PatternSpec {
19547
19552
  * @param string the UTF-8 encoded string to match
19548
19553
  * @returns %TRUE if @string matches @pspec
19549
19554
  */
19550
- match_string(string: string | null): boolean
19555
+ match_string(string: string): boolean
19551
19556
  }
19552
19557
 
19553
19558
  /**
@@ -19569,14 +19574,14 @@ export class PatternSpec {
19569
19574
  * @param pattern a zero-terminated UTF-8 encoded string
19570
19575
  * @returns a newly-allocated #GPatternSpec
19571
19576
  */
19572
- constructor(pattern: string | null)
19577
+ constructor(pattern: string)
19573
19578
  /**
19574
19579
  * Compiles a pattern to a #GPatternSpec.
19575
19580
  * @constructor
19576
19581
  * @param pattern a zero-terminated UTF-8 encoded string
19577
19582
  * @returns a newly-allocated #GPatternSpec
19578
19583
  */
19579
- static new(pattern: string | null): PatternSpec
19584
+ static new(pattern: string): PatternSpec
19580
19585
  }
19581
19586
 
19582
19587
  export interface PollFD {
@@ -20240,13 +20245,13 @@ export interface Regex {
20240
20245
  * the string passed to g_regex_new().
20241
20246
  * @returns the pattern of @regex
20242
20247
  */
20243
- get_pattern(): string | null
20248
+ get_pattern(): string
20244
20249
  /**
20245
20250
  * Retrieves the number of the subexpression named `name`.
20246
20251
  * @param name name of the subexpression
20247
20252
  * @returns The number of the subexpression or -1 if @name does not exists
20248
20253
  */
20249
- get_string_number(name: string | null): number
20254
+ get_string_number(name: string): number
20250
20255
  /**
20251
20256
  * Scans for a match in `string` for the pattern in `regex`.
20252
20257
  * The `match_options` are combined with the match options specified
@@ -20294,7 +20299,7 @@ export interface Regex {
20294
20299
  * @param match_options match options
20295
20300
  * @returns %TRUE is the string matched, %FALSE otherwise
20296
20301
  */
20297
- match(string: string | null, match_options: RegexMatchFlags): [ /* returnType */ boolean, /* match_info */ MatchInfo ]
20302
+ match(string: string, match_options: RegexMatchFlags): [ /* returnType */ boolean, /* match_info */ MatchInfo ]
20298
20303
  /**
20299
20304
  * Using the standard algorithm for regular expression matching only
20300
20305
  * the longest match in the string is retrieved. This function uses
@@ -20314,7 +20319,7 @@ export interface Regex {
20314
20319
  * @param match_options match options
20315
20320
  * @returns %TRUE is the string matched, %FALSE otherwise
20316
20321
  */
20317
- match_all(string: string | null, match_options: RegexMatchFlags): [ /* returnType */ boolean, /* match_info */ MatchInfo ]
20322
+ match_all(string: string, match_options: RegexMatchFlags): [ /* returnType */ boolean, /* match_info */ MatchInfo ]
20318
20323
  /**
20319
20324
  * Using the standard algorithm for regular expression matching only
20320
20325
  * the longest match in the `string` is retrieved, it is not possible
@@ -20458,7 +20463,7 @@ export interface Regex {
20458
20463
  * @param match_options options for the match
20459
20464
  * @returns a newly allocated string containing the replacements
20460
20465
  */
20461
- replace(string: string[], start_position: number, replacement: string | null, match_options: RegexMatchFlags): string | null
20466
+ replace(string: string[], start_position: number, replacement: string, match_options: RegexMatchFlags): string | null
20462
20467
  /**
20463
20468
  * Replaces all occurrences of the pattern in `regex` with the
20464
20469
  * replacement text. `replacement` is replaced literally, to
@@ -20474,7 +20479,7 @@ export interface Regex {
20474
20479
  * @param match_options options for the match
20475
20480
  * @returns a newly allocated string containing the replacements
20476
20481
  */
20477
- replace_literal(string: string[], start_position: number, replacement: string | null, match_options: RegexMatchFlags): string | null
20482
+ replace_literal(string: string[], start_position: number, replacement: string, match_options: RegexMatchFlags): string | null
20478
20483
  /**
20479
20484
  * Breaks the string on the pattern, and returns an array of the tokens.
20480
20485
  * If the pattern contains capturing parentheses, then the text for each
@@ -20497,7 +20502,7 @@ export interface Regex {
20497
20502
  * @param match_options match time option flags
20498
20503
  * @returns a %NULL-terminated gchar ** array. Free it using g_strfreev()
20499
20504
  */
20500
- split(string: string | null, match_options: RegexMatchFlags): string[]
20505
+ split(string: string, match_options: RegexMatchFlags): string[]
20501
20506
  /**
20502
20507
  * Breaks the string on the pattern, and returns an array of the tokens.
20503
20508
  * If the pattern contains capturing parentheses, then the text for each
@@ -20607,7 +20612,7 @@ export class Regex {
20607
20612
  * @param match_options match options for the regular expression, or 0
20608
20613
  * @returns a #GRegex structure or %NULL if an error occurred. Call g_regex_unref() when you are done with it
20609
20614
  */
20610
- constructor(pattern: string | null, compile_options: RegexCompileFlags, match_options: RegexMatchFlags)
20615
+ constructor(pattern: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags)
20611
20616
  /**
20612
20617
  * Compiles the regular expression to an internal form, and does
20613
20618
  * the initial setup of the #GRegex structure.
@@ -20617,7 +20622,7 @@ export class Regex {
20617
20622
  * @param match_options match options for the regular expression, or 0
20618
20623
  * @returns a #GRegex structure or %NULL if an error occurred. Call g_regex_unref() when you are done with it
20619
20624
  */
20620
- static new(pattern: string | null, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): Regex
20625
+ static new(pattern: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): Regex
20621
20626
  /**
20622
20627
  * Checks whether `replacement` is a valid replacement string
20623
20628
  * (see g_regex_replace()), i.e. that all escape sequences in
@@ -20631,7 +20636,7 @@ export class Regex {
20631
20636
  * @param replacement the replacement string
20632
20637
  * @returns whether @replacement is a valid replacement string
20633
20638
  */
20634
- static check_replacement(replacement: string | null): [ /* returnType */ boolean, /* has_references */ boolean ]
20639
+ static check_replacement(replacement: string): [ /* returnType */ boolean, /* has_references */ boolean ]
20635
20640
  static error_quark(): Quark
20636
20641
  /**
20637
20642
  * Escapes the nul characters in `string` to "\x00". It can be used
@@ -20643,7 +20648,7 @@ export class Regex {
20643
20648
  * @param length the length of `string`
20644
20649
  * @returns a newly-allocated escaped string
20645
20650
  */
20646
- static escape_nul(string: string | null, length: number): string | null
20651
+ static escape_nul(string: string, length: number): string | null
20647
20652
  /**
20648
20653
  * Escapes the special characters used for regular expressions
20649
20654
  * in `string,` for instance "a.b*c" becomes "a\.b\*c". This
@@ -20656,7 +20661,7 @@ export class Regex {
20656
20661
  * @param length the length of `string,` in bytes, or -1 if `string` is nul-terminated
20657
20662
  * @returns a newly-allocated escaped string
20658
20663
  */
20659
- static escape_string(string: string | null, length: number): string | null
20664
+ static escape_string(string: string, length: number): string | null
20660
20665
  /**
20661
20666
  * Scans for a match in `string` for `pattern`.
20662
20667
  *
@@ -20674,7 +20679,7 @@ export class Regex {
20674
20679
  * @param match_options match options, or 0
20675
20680
  * @returns %TRUE if the string matched, %FALSE otherwise
20676
20681
  */
20677
- static match_simple(pattern: string | null, string: string | null, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): boolean
20682
+ static match_simple(pattern: string, string: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): boolean
20678
20683
  /**
20679
20684
  * Breaks the string on the pattern, and returns an array of
20680
20685
  * the tokens. If the pattern contains capturing parentheses,
@@ -20709,7 +20714,7 @@ export class Regex {
20709
20714
  * @param match_options match options, or 0
20710
20715
  * @returns a %NULL-terminated array of strings. Free it using g_strfreev()
20711
20716
  */
20712
- static split_simple(pattern: string | null, string: string | null, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): string[]
20717
+ static split_simple(pattern: string, string: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): string[]
20713
20718
  }
20714
20719
 
20715
20720
  export interface SList {
@@ -20765,7 +20770,7 @@ export interface Scanner {
20765
20770
  * name of input stream, featured by the default message handler
20766
20771
  * @field
20767
20772
  */
20768
- input_name: string | null
20773
+ input_name: string
20769
20774
  /**
20770
20775
  * quarked data
20771
20776
  * @field
@@ -20872,7 +20877,7 @@ export interface Scanner {
20872
20877
  * @param text the text buffer to scan
20873
20878
  * @param text_len the length of the text buffer
20874
20879
  */
20875
- input_text(text: string | null, text_len: number): void
20880
+ input_text(text: string, text_len: number): void
20876
20881
  /**
20877
20882
  * Looks up a symbol in the current scope and return its value.
20878
20883
  * If the symbol is not bound in the current scope, %NULL is
@@ -20880,7 +20885,7 @@ export interface Scanner {
20880
20885
  * @param symbol the symbol to look up
20881
20886
  * @returns the value of @symbol in the current scope, or %NULL if @symbol is not bound in the current scope
20882
20887
  */
20883
- lookup_symbol(symbol: string | null): any | null
20888
+ lookup_symbol(symbol: string): any | null
20884
20889
  /**
20885
20890
  * Parses the next token, without removing it from the input stream.
20886
20891
  * The token data is placed in the `next_token,` `next_value,` `next_line,`
@@ -20902,7 +20907,7 @@ export interface Scanner {
20902
20907
  * @param symbol the symbol to add
20903
20908
  * @param value the value of the symbol
20904
20909
  */
20905
- scope_add_symbol(scope_id: number, symbol: string | null, value: any | null): void
20910
+ scope_add_symbol(scope_id: number, symbol: string, value: any | null): void
20906
20911
  /**
20907
20912
  * Looks up a symbol in a scope and return its value. If the
20908
20913
  * symbol is not bound in the scope, %NULL is returned.
@@ -20910,13 +20915,13 @@ export interface Scanner {
20910
20915
  * @param symbol the symbol to look up
20911
20916
  * @returns the value of @symbol in the given scope, or %NULL if @symbol is not bound in the given scope.
20912
20917
  */
20913
- scope_lookup_symbol(scope_id: number, symbol: string | null): any | null
20918
+ scope_lookup_symbol(scope_id: number, symbol: string): any | null
20914
20919
  /**
20915
20920
  * Removes a symbol from a scope.
20916
20921
  * @param scope_id the scope id
20917
20922
  * @param symbol the symbol to remove
20918
20923
  */
20919
- scope_remove_symbol(scope_id: number, symbol: string | null): void
20924
+ scope_remove_symbol(scope_id: number, symbol: string): void
20920
20925
  /**
20921
20926
  * Sets the current scope.
20922
20927
  * @param scope_id the new scope id
@@ -20945,7 +20950,7 @@ export interface Scanner {
20945
20950
  * @param message a message string to output at the end of the warning/error, or %NULL.
20946
20951
  * @param is_error if %TRUE it is output as an error. If %FALSE it is output as a warning.
20947
20952
  */
20948
- unexp_token(expected_token: TokenType, identifier_spec: string | null, symbol_spec: string | null, symbol_name: string | null, message: string | null, is_error: number): void
20953
+ unexp_token(expected_token: TokenType, identifier_spec: string, symbol_spec: string, symbol_name: string, message: string, is_error: number): void
20949
20954
  }
20950
20955
 
20951
20956
  /**
@@ -21754,7 +21759,7 @@ export interface Source {
21754
21759
  * Also see g_source_set_static_name().
21755
21760
  * @param name debug name for the source
21756
21761
  */
21757
- set_name(name: string | null): void
21762
+ set_name(name: string): void
21758
21763
  /**
21759
21764
  * Sets the priority of a source. While the main loop is being run, a
21760
21765
  * source will be dispatched if it is ready to be dispatched and no
@@ -21799,7 +21804,7 @@ export interface Source {
21799
21804
  * string literals.
21800
21805
  * @param name debug name for the source
21801
21806
  */
21802
- set_static_name(name: string | null): void
21807
+ set_static_name(name: string): void
21803
21808
  /**
21804
21809
  * Decreases the reference count of a source by one. If the
21805
21810
  * resulting reference count is zero the source and associated
@@ -21912,7 +21917,7 @@ export class Source {
21912
21917
  * @param tag a #GSource ID
21913
21918
  * @param name debug name for the source
21914
21919
  */
21915
- static set_name_by_id(tag: number, name: string | null): void
21920
+ static set_name_by_id(tag: number, name: string): void
21916
21921
  }
21917
21922
 
21918
21923
  export interface SourceCallbackFuncs {
@@ -22033,7 +22038,7 @@ export interface String {
22033
22038
  * @param val the string to append onto the end of `string`
22034
22039
  * @returns @string
22035
22040
  */
22036
- append(val: string | null): String
22041
+ append(val: string): String
22037
22042
  /**
22038
22043
  * Adds a byte onto the end of a #GString, expanding
22039
22044
  * it if necessary.
@@ -22055,7 +22060,7 @@ export interface String {
22055
22060
  * @param len number of bytes of `val` to use, or -1 for all of `val`
22056
22061
  * @returns @string
22057
22062
  */
22058
- append_len(val: string | null, len: number): String
22063
+ append_len(val: string, len: number): String
22059
22064
  /**
22060
22065
  * Converts a Unicode character into UTF-8, and appends it
22061
22066
  * to the string.
@@ -22071,7 +22076,7 @@ export interface String {
22071
22076
  * @param allow_utf8 set %TRUE if the escaped string may include UTF8 characters
22072
22077
  * @returns @string
22073
22078
  */
22074
- append_uri_escaped(unescaped: string | null, reserved_chars_allowed: string | null, allow_utf8: boolean): String
22079
+ append_uri_escaped(unescaped: string, reserved_chars_allowed: string, allow_utf8: boolean): String
22075
22080
  /**
22076
22081
  * Converts all uppercase ASCII letters to lowercase ASCII letters.
22077
22082
  * @returns passed-in @string pointer, with all the uppercase characters converted to lowercase in place, with semantics that exactly match g_ascii_tolower().
@@ -22090,7 +22095,7 @@ export interface String {
22090
22095
  * @param rval the string to copy into `string`
22091
22096
  * @returns @string
22092
22097
  */
22093
- assign(rval: string | null): String
22098
+ assign(rval: string): String
22094
22099
  /**
22095
22100
  * Converts a #GString to lowercase.
22096
22101
  * @returns the #GString
@@ -22155,7 +22160,7 @@ export interface String {
22155
22160
  * @param val the string to insert
22156
22161
  * @returns @string
22157
22162
  */
22158
- insert(pos: number, val: string | null): String
22163
+ insert(pos: number, val: string): String
22159
22164
  /**
22160
22165
  * Inserts a byte into a #GString, expanding it if necessary.
22161
22166
  * @param pos the position to insert the byte
@@ -22179,7 +22184,7 @@ export interface String {
22179
22184
  * @param len number of bytes of `val` to insert, or -1 for all of `val`
22180
22185
  * @returns @string
22181
22186
  */
22182
- insert_len(pos: number, val: string | null, len: number): String
22187
+ insert_len(pos: number, val: string, len: number): String
22183
22188
  /**
22184
22189
  * Converts a Unicode character into UTF-8, and insert it
22185
22190
  * into the string at the given position.
@@ -22194,7 +22199,7 @@ export interface String {
22194
22199
  * @param val the string that will overwrite the `string` starting at `pos`
22195
22200
  * @returns @string
22196
22201
  */
22197
- overwrite(pos: number, val: string | null): String
22202
+ overwrite(pos: number, val: string): String
22198
22203
  /**
22199
22204
  * Overwrites part of a string, lengthening it if necessary.
22200
22205
  * This function will work with embedded nuls.
@@ -22203,14 +22208,14 @@ export interface String {
22203
22208
  * @param len the number of bytes to write from `val`
22204
22209
  * @returns @string
22205
22210
  */
22206
- overwrite_len(pos: number, val: string | null, len: number): String
22211
+ overwrite_len(pos: number, val: string, len: number): String
22207
22212
  /**
22208
22213
  * Adds a string on to the start of a #GString,
22209
22214
  * expanding it if necessary.
22210
22215
  * @param val the string to prepend on the start of `string`
22211
22216
  * @returns @string
22212
22217
  */
22213
- prepend(val: string | null): String
22218
+ prepend(val: string): String
22214
22219
  /**
22215
22220
  * Adds a byte onto the start of a #GString,
22216
22221
  * expanding it if necessary.
@@ -22232,7 +22237,7 @@ export interface String {
22232
22237
  * @param len number of bytes in `val` to prepend, or -1 for all of `val`
22233
22238
  * @returns @string
22234
22239
  */
22235
- prepend_len(val: string | null, len: number): String
22240
+ prepend_len(val: string, len: number): String
22236
22241
  /**
22237
22242
  * Converts a Unicode character into UTF-8, and prepends it
22238
22243
  * to the string.
@@ -22255,7 +22260,7 @@ export interface String {
22255
22260
  * @param limit the maximum instances of `find` to replace with `replace,` or `0` for no limit
22256
22261
  * @returns the number of find and replace operations performed.
22257
22262
  */
22258
- replace(find: string | null, replace: string | null, limit: number): number
22263
+ replace(find: string, replace: string, limit: number): number
22259
22264
  /**
22260
22265
  * Sets the length of a #GString. If the length is less than
22261
22266
  * the current length, the string will be truncated. If the
@@ -22318,7 +22323,7 @@ export class String {
22318
22323
  * @param len length of `init` to use
22319
22324
  * @returns a new #GString
22320
22325
  */
22321
- static new_len(init: string | null, len: number): String
22326
+ static new_len(init: string, len: number): String
22322
22327
  /**
22323
22328
  * Creates a new #GString, initialized with the given string.
22324
22329
  *
@@ -22373,7 +22378,7 @@ export interface StringChunk {
22373
22378
  * @param string the string to add
22374
22379
  * @returns a pointer to the copy of @string within the #GStringChunk
22375
22380
  */
22376
- insert(string: string | null): string | null
22381
+ insert(string: string): string | null
22377
22382
  /**
22378
22383
  * Adds a copy of `string` to the #GStringChunk, unless the same
22379
22384
  * string has already been added to the #GStringChunk with
@@ -22391,7 +22396,7 @@ export interface StringChunk {
22391
22396
  * @param string the string to add
22392
22397
  * @returns a pointer to the new or existing copy of @string within the #GStringChunk
22393
22398
  */
22394
- insert_const(string: string | null): string | null
22399
+ insert_const(string: string): string | null
22395
22400
  /**
22396
22401
  * Adds a copy of the first `len` bytes of `string` to the #GStringChunk.
22397
22402
  * The copy is nul-terminated.
@@ -22406,7 +22411,7 @@ export interface StringChunk {
22406
22411
  * @param len number of bytes of `string` to insert, or -1 to insert a nul-terminated string
22407
22412
  * @returns a pointer to the copy of @string within the #GStringChunk
22408
22413
  */
22409
- insert_len(string: string | null, len: number): string | null
22414
+ insert_len(string: string, len: number): string | null
22410
22415
  }
22411
22416
 
22412
22417
  /**
@@ -22431,7 +22436,7 @@ export interface StrvBuilder {
22431
22436
  * Since 2.68
22432
22437
  * @param value a string.
22433
22438
  */
22434
- add(value: string | null): void
22439
+ add(value: string): void
22435
22440
  /**
22436
22441
  * Appends all the strings in the given vector to the builder.
22437
22442
  *
@@ -23062,7 +23067,7 @@ export class TimeVal {
23062
23067
  * @param iso_date an ISO 8601 encoded date string
23063
23068
  * @returns %TRUE if the conversion was successful.
23064
23069
  */
23065
- static from_iso8601(iso_date: string | null): [ /* returnType */ boolean, /* time_ */ TimeVal ]
23070
+ static from_iso8601(iso_date: string): [ /* returnType */ boolean, /* time_ */ TimeVal ]
23066
23071
  }
23067
23072
 
23068
23073
  export interface TimeZone {
@@ -23125,7 +23130,7 @@ export interface TimeZone {
23125
23130
  * @param interval an interval within the timezone
23126
23131
  * @returns the time zone abbreviation, which belongs to @tz
23127
23132
  */
23128
- get_abbreviation(interval: number): string | null
23133
+ get_abbreviation(interval: number): string
23129
23134
  /**
23130
23135
  * Get the identifier of this #GTimeZone, as passed to g_time_zone_new().
23131
23136
  * If the identifier passed at construction time was not recognised, `UTC` will
@@ -23137,7 +23142,7 @@ export interface TimeZone {
23137
23142
  * this function.
23138
23143
  * @returns identifier for this timezone
23139
23144
  */
23140
- get_identifier(): string | null
23145
+ get_identifier(): string
23141
23146
  /**
23142
23147
  * Determines the offset to UTC in effect during a particular `interval`
23143
23148
  * of time in the time zone `tz`.
@@ -23733,7 +23738,7 @@ export interface Uri {
23733
23738
  * flags with which `uri` was created.
23734
23739
  * @returns @uri's path.
23735
23740
  */
23736
- get_path(): string | null
23741
+ get_path(): string
23737
23742
  /**
23738
23743
  * Gets `uri'`s port.
23739
23744
  * @returns @uri's port, or `-1` if no port was specified.
@@ -23753,7 +23758,7 @@ export interface Uri {
23753
23758
  * regardless of the string or strings that `uri` was created from.
23754
23759
  * @returns @uri's scheme.
23755
23760
  */
23756
- get_scheme(): string | null
23761
+ get_scheme(): string
23757
23762
  /**
23758
23763
  * Gets the ‘username’ component of `uri'`s userinfo, which may contain
23759
23764
  * `%`-encoding, depending on the flags with which `uri` was created.
@@ -23777,7 +23782,7 @@ export interface Uri {
23777
23782
  * @param flags flags describing how to parse `uri_ref`
23778
23783
  * @returns a new #GUri, or NULL on error.
23779
23784
  */
23780
- parse_relative(uri_ref: string | null, flags: UriFlags): Uri
23785
+ parse_relative(uri_ref: string, flags: UriFlags): Uri
23781
23786
  /**
23782
23787
  * Returns a string representing `uri`.
23783
23788
  *
@@ -23937,7 +23942,7 @@ export class Uri {
23937
23942
  * @param fragment the fragment, or %NULL
23938
23943
  * @returns a new #GUri
23939
23944
  */
23940
- static build(flags: UriFlags, scheme: string | null, userinfo: string | null, host: string | null, port: number, path: string | null, query: string | null, fragment: string | null): Uri
23945
+ static build(flags: UriFlags, scheme: string, userinfo: string | null, host: string | null, port: number, path: string, query: string | null, fragment: string | null): Uri
23941
23946
  /**
23942
23947
  * Creates a new #GUri from the given components according to `flags`
23943
23948
  * (%G_URI_FLAGS_HAS_PASSWORD is added unconditionally). The `flags` must be
@@ -23959,7 +23964,7 @@ export class Uri {
23959
23964
  * @param fragment the fragment, or %NULL
23960
23965
  * @returns a new #GUri
23961
23966
  */
23962
- static build_with_user(flags: UriFlags, scheme: string | null, user: string | null, password: string | null, auth_params: string | null, host: string | null, port: number, path: string | null, query: string | null, fragment: string | null): Uri
23967
+ static build_with_user(flags: UriFlags, scheme: string, user: string | null, password: string | null, auth_params: string | null, host: string | null, port: number, path: string, query: string | null, fragment: string | null): Uri
23963
23968
  static error_quark(): Quark
23964
23969
  /**
23965
23970
  * Escapes arbitrary data for use in a URI.
@@ -23992,7 +23997,7 @@ export class Uri {
23992
23997
  * @param allow_utf8 %TRUE if the result can include UTF-8 characters.
23993
23998
  * @returns an escaped version of @unescaped. The returned string should be freed when no longer needed.
23994
23999
  */
23995
- static escape_string(unescaped: string | null, reserved_chars_allowed: string | null, allow_utf8: boolean): string | null
24000
+ static escape_string(unescaped: string, reserved_chars_allowed: string | null, allow_utf8: boolean): string | null
23996
24001
  /**
23997
24002
  * Parses `uri_string` according to `flags,` to determine whether it is a valid
23998
24003
  * [absolute URI][relative-absolute-uris], i.e. it does not need to be resolved
@@ -24006,7 +24011,7 @@ export class Uri {
24006
24011
  * @param flags flags for parsing `uri_string`
24007
24012
  * @returns %TRUE if @uri_string is a valid absolute URI, %FALSE on error.
24008
24013
  */
24009
- static is_valid(uri_string: string | null, flags: UriFlags): boolean
24014
+ static is_valid(uri_string: string, flags: UriFlags): boolean
24010
24015
  /**
24011
24016
  * Joins the given components together according to `flags` to create
24012
24017
  * an absolute URI string. `path` may not be %NULL (though it may be the empty
@@ -24032,7 +24037,7 @@ export class Uri {
24032
24037
  * @param fragment the fragment, or %NULL
24033
24038
  * @returns an absolute URI string
24034
24039
  */
24035
- static join(flags: UriFlags, scheme: string | null, userinfo: string | null, host: string | null, port: number, path: string | null, query: string | null, fragment: string | null): string | null
24040
+ static join(flags: UriFlags, scheme: string | null, userinfo: string | null, host: string | null, port: number, path: string, query: string | null, fragment: string | null): string | null
24036
24041
  /**
24037
24042
  * Joins the given components together according to `flags` to create
24038
24043
  * an absolute URI string. `path` may not be %NULL (though it may be the empty
@@ -24055,7 +24060,7 @@ export class Uri {
24055
24060
  * @param fragment the fragment, or %NULL
24056
24061
  * @returns an absolute URI string
24057
24062
  */
24058
- static join_with_user(flags: UriFlags, scheme: string | null, user: string | null, password: string | null, auth_params: string | null, host: string | null, port: number, path: string | null, query: string | null, fragment: string | null): string | null
24063
+ static join_with_user(flags: UriFlags, scheme: string | null, user: string | null, password: string | null, auth_params: string | null, host: string | null, port: number, path: string, query: string | null, fragment: string | null): string | null
24059
24064
  /**
24060
24065
  * Splits an URI list conforming to the text/uri-list
24061
24066
  * mime type defined in RFC 2483 into individual URIs,
@@ -24063,7 +24068,7 @@ export class Uri {
24063
24068
  * @param uri_list an URI list
24064
24069
  * @returns a newly allocated %NULL-terminated list of strings holding the individual URIs. The array should be freed with g_strfreev().
24065
24070
  */
24066
- static list_extract_uris(uri_list: string | null): string[]
24071
+ static list_extract_uris(uri_list: string): string[]
24067
24072
  /**
24068
24073
  * Parses `uri_string` according to `flags`. If the result is not a
24069
24074
  * valid [absolute URI][relative-absolute-uris], it will be discarded, and an
@@ -24072,7 +24077,7 @@ export class Uri {
24072
24077
  * @param flags flags describing how to parse `uri_string`
24073
24078
  * @returns a new #GUri, or NULL on error.
24074
24079
  */
24075
- static parse(uri_string: string | null, flags: UriFlags): Uri
24080
+ static parse(uri_string: string, flags: UriFlags): Uri
24076
24081
  /**
24077
24082
  * Many URI schemes include one or more attribute/value pairs as part of the URI
24078
24083
  * value. This method can be used to parse them into a hash table. When an
@@ -24104,7 +24109,7 @@ export class Uri {
24104
24109
  * @param flags flags to modify the way the parameters are handled.
24105
24110
  * @returns A hash table of attribute/value pairs, with both names and values fully-decoded; or %NULL on error.
24106
24111
  */
24107
- static parse_params(params: string | null, length: number, separators: string | null, flags: UriParamsFlags): HashTable
24112
+ static parse_params(params: string, length: number, separators: string, flags: UriParamsFlags): HashTable
24108
24113
  /**
24109
24114
  * Gets the scheme portion of a URI string.
24110
24115
  * [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) decodes the scheme
@@ -24118,7 +24123,7 @@ export class Uri {
24118
24123
  * @param uri a valid URI.
24119
24124
  * @returns The ‘scheme’ component of the URI, or %NULL on error. The returned string should be freed when no longer needed.
24120
24125
  */
24121
- static parse_scheme(uri: string | null): string | null
24126
+ static parse_scheme(uri: string): string | null
24122
24127
  /**
24123
24128
  * Gets the scheme portion of a URI string.
24124
24129
  * [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) decodes the scheme
@@ -24135,7 +24140,7 @@ export class Uri {
24135
24140
  * @param uri a valid URI.
24136
24141
  * @returns The ‘scheme’ component of the URI, or %NULL on error. The returned string is normalized to all-lowercase, and interned via g_intern_string(), so it does not need to be freed.
24137
24142
  */
24138
- static peek_scheme(uri: string | null): string | null
24143
+ static peek_scheme(uri: string): string | null
24139
24144
  /**
24140
24145
  * Parses `uri_ref` according to `flags` and, if it is a
24141
24146
  * [relative URI][relative-absolute-uris], resolves it relative to
@@ -24149,7 +24154,7 @@ export class Uri {
24149
24154
  * @param flags flags describing how to parse `uri_ref`
24150
24155
  * @returns the resolved URI string, or NULL on error.
24151
24156
  */
24152
- static resolve_relative(base_uri_string: string | null, uri_ref: string | null, flags: UriFlags): string | null
24157
+ static resolve_relative(base_uri_string: string | null, uri_ref: string, flags: UriFlags): string | null
24153
24158
  /**
24154
24159
  * Parses `uri_ref` (which can be an
24155
24160
  * [absolute or relative URI][relative-absolute-uris]) according to `flags,` and
@@ -24171,7 +24176,7 @@ export class Uri {
24171
24176
  * @param flags flags for parsing `uri_ref`
24172
24177
  * @returns %TRUE if @uri_ref parsed successfully, %FALSE on error.
24173
24178
  */
24174
- static split(uri_ref: string | null, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* userinfo */ string | null, /* host */ string | null, /* port */ number, /* path */ string | null, /* query */ string | null, /* fragment */ string | null ]
24179
+ static split(uri_ref: string, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* userinfo */ string | null, /* host */ string | null, /* port */ number, /* path */ string, /* query */ string | null, /* fragment */ string | null ]
24175
24180
  /**
24176
24181
  * Parses `uri_string` (which must be an [absolute URI][relative-absolute-uris])
24177
24182
  * according to `flags,` and returns the pieces relevant to connecting to a host.
@@ -24183,7 +24188,7 @@ export class Uri {
24183
24188
  * @param flags flags for parsing `uri_string`
24184
24189
  * @returns %TRUE if @uri_string parsed successfully, %FALSE on error.
24185
24190
  */
24186
- static split_network(uri_string: string | null, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* host */ string | null, /* port */ number ]
24191
+ static split_network(uri_string: string, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* host */ string | null, /* port */ number ]
24187
24192
  /**
24188
24193
  * Parses `uri_ref` (which can be an
24189
24194
  * [absolute or relative URI][relative-absolute-uris]) according to `flags,` and
@@ -24200,7 +24205,7 @@ export class Uri {
24200
24205
  * @param flags flags for parsing `uri_ref`
24201
24206
  * @returns %TRUE if @uri_ref parsed successfully, %FALSE on error.
24202
24207
  */
24203
- static split_with_user(uri_ref: string | null, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* user */ string | null, /* password */ string | null, /* auth_params */ string | null, /* host */ string | null, /* port */ number, /* path */ string | null, /* query */ string | null, /* fragment */ string | null ]
24208
+ static split_with_user(uri_ref: string, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* user */ string | null, /* password */ string | null, /* auth_params */ string | null, /* host */ string | null, /* port */ number, /* path */ string, /* query */ string | null, /* fragment */ string | null ]
24204
24209
  /**
24205
24210
  * Unescapes a segment of an escaped string as binary data.
24206
24211
  *
@@ -24217,7 +24222,7 @@ export class Uri {
24217
24222
  * @param illegal_characters a string of illegal characters not to be allowed, or %NULL.
24218
24223
  * @returns an unescaped version of @escaped_string or %NULL on error (if decoding failed, using %G_URI_ERROR_FAILED error code). The returned #GBytes should be unreffed when no longer needed.
24219
24224
  */
24220
- static unescape_bytes(escaped_string: string | null, length: number, illegal_characters: string | null): Bytes
24225
+ static unescape_bytes(escaped_string: string, length: number, illegal_characters: string | null): Bytes
24221
24226
  /**
24222
24227
  * Unescapes a segment of an escaped string.
24223
24228
  *
@@ -24247,7 +24252,7 @@ export class Uri {
24247
24252
  * @param illegal_characters a string of illegal characters not to be allowed, or %NULL.
24248
24253
  * @returns an unescaped version of @escaped_string. The returned string should be freed when no longer needed.
24249
24254
  */
24250
- static unescape_string(escaped_string: string | null, illegal_characters: string | null): string | null
24255
+ static unescape_string(escaped_string: string, illegal_characters: string | null): string | null
24251
24256
  }
24252
24257
 
24253
24258
  export interface UriParamsIter {
@@ -24295,7 +24300,7 @@ export interface UriParamsIter {
24295
24300
  * @param separators the separator byte character set between parameters. (usually `&`, but sometimes `;` or both `&;`). Note that this function works on bytes not characters, so it can't be used to delimit UTF-8 strings for anything but ASCII characters. You may pass an empty set, in which case no splitting will occur.
24296
24301
  * @param flags flags to modify the way the parameters are handled.
24297
24302
  */
24298
- init(params: string | null, length: number, separators: string | null, flags: UriParamsFlags): void
24303
+ init(params: string, length: number, separators: string, flags: UriParamsFlags): void
24299
24304
  /**
24300
24305
  * Advances `iter` and retrieves the next attribute/value. %FALSE is returned if
24301
24306
  * an error has occurred (in which case `error` is set), or if the end of the
@@ -24374,7 +24379,7 @@ export interface Variant {
24374
24379
  * @param copy_only %TRUE to ensure the format string makes deep copies
24375
24380
  * @returns %TRUE if @format_string is safe to use
24376
24381
  */
24377
- check_format_string(format_string: string | null, copy_only: boolean): boolean
24382
+ check_format_string(format_string: string, copy_only: boolean): boolean
24378
24383
  /**
24379
24384
  * Classifies `value` according to its top-level type.
24380
24385
  * @returns the #GVariantClass of @value
@@ -24719,7 +24724,7 @@ export interface Variant {
24719
24724
  * The return value remains valid as long as `value` exists.
24720
24725
  * @returns the constant string, UTF-8 encoded
24721
24726
  */
24722
- get_string(): [ /* returnType */ string | null, /* length */ number ]
24727
+ get_string(): [ /* returnType */ string, /* length */ number ]
24723
24728
  /**
24724
24729
  * Gets the contents of an array of strings #GVariant. This call
24725
24730
  * makes a shallow copy; the return result should be released with
@@ -24748,7 +24753,7 @@ export interface Variant {
24748
24753
  * string belongs to #GVariant and must not be freed.
24749
24754
  * @returns the type string for the type of @value
24750
24755
  */
24751
- get_type_string(): string | null
24756
+ get_type_string(): string
24752
24757
  /**
24753
24758
  * Returns the 16-bit unsigned integer value of `value`.
24754
24759
  *
@@ -24859,7 +24864,7 @@ export interface Variant {
24859
24864
  * @param expected_type a #GVariantType, or %NULL
24860
24865
  * @returns the value of the dictionary key, or %NULL
24861
24866
  */
24862
- lookup_value(key: string | null, expected_type: VariantType | null): Variant
24867
+ lookup_value(key: string, expected_type: VariantType | null): Variant
24863
24868
  /**
24864
24869
  * Determines the number of children in a container #GVariant instance.
24865
24870
  * This includes variants, maybes, arrays, tuples and dictionary
@@ -25447,7 +25452,7 @@ export class Variant {
25447
25452
  * @param object_path a normal C nul-terminated string
25448
25453
  * @returns a floating reference to a new object path #GVariant instance
25449
25454
  */
25450
- static new_object_path(object_path: string | null): Variant
25455
+ static new_object_path(object_path: string): Variant
25451
25456
  /**
25452
25457
  * Constructs an array of object paths #GVariant from the given array of
25453
25458
  * strings.
@@ -25469,7 +25474,7 @@ export class Variant {
25469
25474
  * @param signature a normal C nul-terminated string
25470
25475
  * @returns a floating reference to a new signature #GVariant instance
25471
25476
  */
25472
- static new_signature(signature: string | null): Variant
25477
+ static new_signature(signature: string): Variant
25473
25478
  /**
25474
25479
  * Creates a string #GVariant with the contents of `string`.
25475
25480
  *
@@ -25480,7 +25485,7 @@ export class Variant {
25480
25485
  * @param string a normal UTF-8 nul-terminated string
25481
25486
  * @returns a floating reference to a new string #GVariant instance
25482
25487
  */
25483
- static new_string(string: string | null): Variant
25488
+ static new_string(string: string): Variant
25484
25489
  /**
25485
25490
  * Constructs an array of strings #GVariant from the given array of
25486
25491
  * strings.
@@ -25549,7 +25554,7 @@ export class Variant {
25549
25554
  * @param string a normal C nul-terminated string
25550
25555
  * @returns %TRUE if @string is a D-Bus object path
25551
25556
  */
25552
- static is_object_path(string: string | null): boolean
25557
+ static is_object_path(string: string): boolean
25553
25558
  /**
25554
25559
  * Determines if a given string is a valid D-Bus type signature. You
25555
25560
  * should ensure that a string is a valid D-Bus type signature before
@@ -25560,7 +25565,7 @@ export class Variant {
25560
25565
  * @param string a normal C nul-terminated string
25561
25566
  * @returns %TRUE if @string is a D-Bus type signature
25562
25567
  */
25563
- static is_signature(string: string | null): boolean
25568
+ static is_signature(string: string): boolean
25564
25569
  /**
25565
25570
  * Parses a #GVariant from a text representation.
25566
25571
  *
@@ -25603,7 +25608,7 @@ export class Variant {
25603
25608
  * @param endptr a location to store the end pointer, or %NULL
25604
25609
  * @returns a non-floating reference to a #GVariant, or %NULL
25605
25610
  */
25606
- static parse(type: VariantType | null, text: string | null, limit: string | null, endptr: string | null): Variant
25611
+ static parse(type: VariantType | null, text: string, limit: string | null, endptr: string | null): Variant
25607
25612
  /**
25608
25613
  * Pretty-prints a message showing the context of a #GVariant parse
25609
25614
  * error within the string for which parsing was attempted.
@@ -25642,7 +25647,7 @@ export class Variant {
25642
25647
  * @param source_str the string that was given to the parser
25643
25648
  * @returns the printed message
25644
25649
  */
25645
- static parse_error_print_context(error: Error, source_str: string | null): string | null
25650
+ static parse_error_print_context(error: Error, source_str: string): string | null
25646
25651
  static parse_error_quark(): Quark
25647
25652
  /**
25648
25653
  * Same as g_variant_error_quark().
@@ -25840,7 +25845,7 @@ export interface VariantDict {
25840
25845
  * @param key the key to look up in the dictionary
25841
25846
  * @returns %TRUE if @key is in @dict
25842
25847
  */
25843
- contains(key: string | null): boolean
25848
+ contains(key: string): boolean
25844
25849
  /**
25845
25850
  * Returns the current value of `dict` as a #GVariant of type
25846
25851
  * %G_VARIANT_TYPE_VARDICT, clearing it in the process.
@@ -25859,7 +25864,7 @@ export interface VariantDict {
25859
25864
  * @param key the key to insert a value for
25860
25865
  * @param value the value to insert
25861
25866
  */
25862
- insert_value(key: string | null, value: Variant): void
25867
+ insert_value(key: string, value: Variant): void
25863
25868
  /**
25864
25869
  * Looks up a value in a #GVariantDict.
25865
25870
  *
@@ -25876,7 +25881,7 @@ export interface VariantDict {
25876
25881
  * @param expected_type a #GVariantType, or %NULL
25877
25882
  * @returns the value of the dictionary key, or %NULL
25878
25883
  */
25879
- lookup_value(key: string | null, expected_type: VariantType | null): Variant | null
25884
+ lookup_value(key: string, expected_type: VariantType | null): Variant | null
25880
25885
  /**
25881
25886
  * Increases the reference count on `dict`.
25882
25887
  *
@@ -25890,7 +25895,7 @@ export interface VariantDict {
25890
25895
  * @param key the key to remove
25891
25896
  * @returns %TRUE if the key was found and removed
25892
25897
  */
25893
- remove(key: string | null): boolean
25898
+ remove(key: string): boolean
25894
25899
  /**
25895
25900
  * Decreases the reference count on `dict`.
25896
25901
  *
@@ -26500,7 +26505,7 @@ export class VariantType {
26500
26505
  * @param type_string a valid GVariant type string
26501
26506
  * @returns a new #GVariantType
26502
26507
  */
26503
- constructor(type_string: string | null)
26508
+ constructor(type_string: string)
26504
26509
  /**
26505
26510
  * Creates a new #GVariantType corresponding to the type string given
26506
26511
  * by `type_string`. It is appropriate to call g_variant_type_free() on
@@ -26512,7 +26517,7 @@ export class VariantType {
26512
26517
  * @param type_string a valid GVariant type string
26513
26518
  * @returns a new #GVariantType
26514
26519
  */
26515
- static new(type_string: string | null): VariantType
26520
+ static new(type_string: string): VariantType
26516
26521
  /**
26517
26522
  * Constructs the type corresponding to an array of elements of the
26518
26523
  * type `type`.
@@ -26556,8 +26561,8 @@ export class VariantType {
26556
26561
  * @returns a new tuple #GVariantType Since 2.24
26557
26562
  */
26558
26563
  static new_tuple(items: VariantType[]): VariantType
26559
- static checked_(arg0: string | null): VariantType
26560
- static string_get_depth_(type_string: string | null): number
26564
+ static checked_(arg0: string): VariantType
26565
+ static string_get_depth_(type_string: string): number
26561
26566
  /**
26562
26567
  * Checks if `type_string` is a valid GVariant type string. This call is
26563
26568
  * equivalent to calling g_variant_type_string_scan() and confirming
@@ -26565,7 +26570,7 @@ export class VariantType {
26565
26570
  * @param type_string a pointer to any string
26566
26571
  * @returns %TRUE if @type_string is exactly one valid type string Since 2.24
26567
26572
  */
26568
- static string_is_valid(type_string: string | null): boolean
26573
+ static string_is_valid(type_string: string): boolean
26569
26574
  /**
26570
26575
  * Scan for a single complete and valid GVariant type string in `string`.
26571
26576
  * The memory pointed to by `limit` (or bytes beyond it) is never
@@ -26584,7 +26589,7 @@ export class VariantType {
26584
26589
  * @param limit the end of `string,` or %NULL
26585
26590
  * @returns %TRUE if a valid type string was found
26586
26591
  */
26587
- static string_scan(string: string | null, limit: string | null): [ /* returnType */ boolean, /* endptr */ string | null ]
26592
+ static string_scan(string: string, limit: string | null): [ /* returnType */ boolean, /* endptr */ string ]
26588
26593
  }
26589
26594
 
26590
26595
  export interface DoubleIEEE754 {