@girs/glib-2.0 2.78.0-3.2.6 → 2.78.0-3.2.7
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/README.md +1 -1
- package/glib-2.0.d.cts +413 -413
- package/glib-2.0.d.ts +413 -413
- package/package.json +3 -3
package/glib-2.0.d.ts
CHANGED
|
@@ -3682,19 +3682,19 @@ const BIG_ENDIAN: number
|
|
|
3682
3682
|
* Used for specifying valid identifier characters
|
|
3683
3683
|
* in #GScannerConfig.
|
|
3684
3684
|
*/
|
|
3685
|
-
const CSET_A_2_Z: string
|
|
3685
|
+
const CSET_A_2_Z: string
|
|
3686
3686
|
/**
|
|
3687
3687
|
* The set of ASCII digits.
|
|
3688
3688
|
* Used for specifying valid identifier characters
|
|
3689
3689
|
* in #GScannerConfig.
|
|
3690
3690
|
*/
|
|
3691
|
-
const CSET_DIGITS: string
|
|
3691
|
+
const CSET_DIGITS: string
|
|
3692
3692
|
/**
|
|
3693
3693
|
* The set of lowercase ASCII alphabet characters.
|
|
3694
3694
|
* Used for specifying valid identifier characters
|
|
3695
3695
|
* in #GScannerConfig.
|
|
3696
3696
|
*/
|
|
3697
|
-
const CSET_a_2_z: string
|
|
3697
|
+
const CSET_a_2_z: string
|
|
3698
3698
|
/**
|
|
3699
3699
|
* The C standard version the code is compiling against, it's normally
|
|
3700
3700
|
* defined with the same value of `__STDC_VERSION__` for C standard
|
|
@@ -3734,7 +3734,7 @@ const DIR_SEPARATOR: number
|
|
|
3734
3734
|
* The directory separator as a string.
|
|
3735
3735
|
* This is "/" on UNIX machines and "\" under Windows.
|
|
3736
3736
|
*/
|
|
3737
|
-
const DIR_SEPARATOR_S: string
|
|
3737
|
+
const DIR_SEPARATOR_S: string
|
|
3738
3738
|
/**
|
|
3739
3739
|
* The base of natural logarithms.
|
|
3740
3740
|
*/
|
|
@@ -3759,7 +3759,7 @@ const E: number
|
|
|
3759
3759
|
* ```
|
|
3760
3760
|
*
|
|
3761
3761
|
*/
|
|
3762
|
-
const GINT16_FORMAT: string
|
|
3762
|
+
const GINT16_FORMAT: string
|
|
3763
3763
|
/**
|
|
3764
3764
|
* The platform dependent length modifier for conversion specifiers
|
|
3765
3765
|
* for scanning and printing values of type #gint16 or #guint16. It
|
|
@@ -3779,7 +3779,7 @@ const GINT16_FORMAT: string | null
|
|
|
3779
3779
|
* `int16_t` values, even though the in-memory representation is the same.
|
|
3780
3780
|
* Standard C macros like `PRId16` and `SCNd16` should be used for `int16_t`.
|
|
3781
3781
|
*/
|
|
3782
|
-
const GINT16_MODIFIER: string
|
|
3782
|
+
const GINT16_MODIFIER: string
|
|
3783
3783
|
/**
|
|
3784
3784
|
* This is the platform dependent conversion specifier for scanning
|
|
3785
3785
|
* and printing values of type #gint32. See also %G_GINT16_FORMAT.
|
|
@@ -3788,7 +3788,7 @@ const GINT16_MODIFIER: string | null
|
|
|
3788
3788
|
* `int32_t` values, even though the in-memory representation is the same.
|
|
3789
3789
|
* Standard C macros like `PRId32` and `SCNd32` should be used for `int32_t`.
|
|
3790
3790
|
*/
|
|
3791
|
-
const GINT32_FORMAT: string
|
|
3791
|
+
const GINT32_FORMAT: string
|
|
3792
3792
|
/**
|
|
3793
3793
|
* The platform dependent length modifier for conversion specifiers
|
|
3794
3794
|
* for scanning and printing values of type #gint32 or #guint32. It
|
|
@@ -3798,7 +3798,7 @@ const GINT32_FORMAT: string | null
|
|
|
3798
3798
|
* `int32_t` values, even though the in-memory representation is the same.
|
|
3799
3799
|
* Standard C macros like `PRId32` and `SCNd32` should be used for `int32_t`.
|
|
3800
3800
|
*/
|
|
3801
|
-
const GINT32_MODIFIER: string
|
|
3801
|
+
const GINT32_MODIFIER: string
|
|
3802
3802
|
/**
|
|
3803
3803
|
* This is the platform dependent conversion specifier for scanning
|
|
3804
3804
|
* and printing values of type #gint64. See also %G_GINT16_FORMAT.
|
|
@@ -3814,7 +3814,7 @@ const GINT32_MODIFIER: string | null
|
|
|
3814
3814
|
* `int64_t` values, even though the in-memory representation is the same.
|
|
3815
3815
|
* Standard C macros like `PRId64` and `SCNd64` should be used for `int64_t`.
|
|
3816
3816
|
*/
|
|
3817
|
-
const GINT64_FORMAT: string
|
|
3817
|
+
const GINT64_FORMAT: string
|
|
3818
3818
|
/**
|
|
3819
3819
|
* The platform dependent length modifier for conversion specifiers
|
|
3820
3820
|
* for scanning and printing values of type #gint64 or #guint64.
|
|
@@ -3828,7 +3828,7 @@ const GINT64_FORMAT: string | null
|
|
|
3828
3828
|
* `int64_t` values, even though the in-memory representation is the same.
|
|
3829
3829
|
* Standard C macros like `PRId64` and `SCNd64` should be used for `int64_t`.
|
|
3830
3830
|
*/
|
|
3831
|
-
const GINT64_MODIFIER: string
|
|
3831
|
+
const GINT64_MODIFIER: string
|
|
3832
3832
|
/**
|
|
3833
3833
|
* This is the platform dependent conversion specifier for scanning
|
|
3834
3834
|
* and printing values of type #gintptr.
|
|
@@ -3839,7 +3839,7 @@ const GINT64_MODIFIER: string | null
|
|
|
3839
3839
|
* Standard C macros like `PRIdPTR` and `SCNdPTR` should be used for
|
|
3840
3840
|
* `intptr_t`.
|
|
3841
3841
|
*/
|
|
3842
|
-
const GINTPTR_FORMAT: string
|
|
3842
|
+
const GINTPTR_FORMAT: string
|
|
3843
3843
|
/**
|
|
3844
3844
|
* The platform dependent length modifier for conversion specifiers
|
|
3845
3845
|
* for scanning and printing values of type #gintptr or #guintptr.
|
|
@@ -3851,17 +3851,17 @@ const GINTPTR_FORMAT: string | null
|
|
|
3851
3851
|
* Standard C macros like `PRIdPTR` and `SCNdPTR` should be used for
|
|
3852
3852
|
* `intptr_t`.
|
|
3853
3853
|
*/
|
|
3854
|
-
const GINTPTR_MODIFIER: string
|
|
3854
|
+
const GINTPTR_MODIFIER: string
|
|
3855
3855
|
/**
|
|
3856
3856
|
* Expands to "" on all modern compilers, and to __FUNCTION__ on gcc
|
|
3857
3857
|
* version 2.x. Don't use it.
|
|
3858
3858
|
*/
|
|
3859
|
-
const GNUC_FUNCTION: string
|
|
3859
|
+
const GNUC_FUNCTION: string
|
|
3860
3860
|
/**
|
|
3861
3861
|
* Expands to "" on all modern compilers, and to __PRETTY_FUNCTION__
|
|
3862
3862
|
* on gcc version 2.x. Don't use it.
|
|
3863
3863
|
*/
|
|
3864
|
-
const GNUC_PRETTY_FUNCTION: string
|
|
3864
|
+
const GNUC_PRETTY_FUNCTION: string
|
|
3865
3865
|
/**
|
|
3866
3866
|
* This is the platform dependent conversion specifier for scanning
|
|
3867
3867
|
* and printing values of type #gsize. See also %G_GINT16_FORMAT.
|
|
@@ -3871,7 +3871,7 @@ const GNUC_PRETTY_FUNCTION: string | null
|
|
|
3871
3871
|
* same. The standard C `"zu"` format should be used for `size_t`,
|
|
3872
3872
|
* assuming a C99-compliant `printf` implementation is available.
|
|
3873
3873
|
*/
|
|
3874
|
-
const GSIZE_FORMAT: string
|
|
3874
|
+
const GSIZE_FORMAT: string
|
|
3875
3875
|
/**
|
|
3876
3876
|
* The platform dependent length modifier for conversion specifiers
|
|
3877
3877
|
* for scanning and printing values of type #gsize. It
|
|
@@ -3882,7 +3882,7 @@ const GSIZE_FORMAT: string | null
|
|
|
3882
3882
|
* same. The Standard C `"z"` modifier should be used for `size_t`,
|
|
3883
3883
|
* assuming a C99-compliant `printf` implementation is available.
|
|
3884
3884
|
*/
|
|
3885
|
-
const GSIZE_MODIFIER: string
|
|
3885
|
+
const GSIZE_MODIFIER: string
|
|
3886
3886
|
/**
|
|
3887
3887
|
* This is the platform dependent conversion specifier for scanning
|
|
3888
3888
|
* and printing values of type #gssize. See also %G_GINT16_FORMAT.
|
|
@@ -3892,7 +3892,7 @@ const GSIZE_MODIFIER: string | null
|
|
|
3892
3892
|
* representation is the same.
|
|
3893
3893
|
* On POSIX platforms, the `"zd"` format should be used for `ssize_t`.
|
|
3894
3894
|
*/
|
|
3895
|
-
const GSSIZE_FORMAT: string
|
|
3895
|
+
const GSSIZE_FORMAT: string
|
|
3896
3896
|
/**
|
|
3897
3897
|
* The platform dependent length modifier for conversion specifiers
|
|
3898
3898
|
* for scanning and printing values of type #gssize. It
|
|
@@ -3903,7 +3903,7 @@ const GSSIZE_FORMAT: string | null
|
|
|
3903
3903
|
* representation is the same.
|
|
3904
3904
|
* On POSIX platforms, the `"z"` modifier should be used for `ssize_t`.
|
|
3905
3905
|
*/
|
|
3906
|
-
const GSSIZE_MODIFIER: string
|
|
3906
|
+
const GSSIZE_MODIFIER: string
|
|
3907
3907
|
/**
|
|
3908
3908
|
* This is the platform dependent conversion specifier for scanning
|
|
3909
3909
|
* and printing values of type #guint16. See also %G_GINT16_FORMAT
|
|
@@ -3912,7 +3912,7 @@ const GSSIZE_MODIFIER: string | null
|
|
|
3912
3912
|
* `uint16_t` values, even though the in-memory representation is the same.
|
|
3913
3913
|
* Standard C macros like `PRIu16` and `SCNu16` should be used for `uint16_t`.
|
|
3914
3914
|
*/
|
|
3915
|
-
const GUINT16_FORMAT: string
|
|
3915
|
+
const GUINT16_FORMAT: string
|
|
3916
3916
|
/**
|
|
3917
3917
|
* This is the platform dependent conversion specifier for scanning
|
|
3918
3918
|
* and printing values of type #guint32. See also %G_GINT16_FORMAT.
|
|
@@ -3921,7 +3921,7 @@ const GUINT16_FORMAT: string | null
|
|
|
3921
3921
|
* `uint32_t` values, even though the in-memory representation is the same.
|
|
3922
3922
|
* Standard C macros like `PRIu32` and `SCNu32` should be used for `uint32_t`.
|
|
3923
3923
|
*/
|
|
3924
|
-
const GUINT32_FORMAT: string
|
|
3924
|
+
const GUINT32_FORMAT: string
|
|
3925
3925
|
/**
|
|
3926
3926
|
* This is the platform dependent conversion specifier for scanning
|
|
3927
3927
|
* and printing values of type #guint64. See also %G_GINT16_FORMAT.
|
|
@@ -3937,7 +3937,7 @@ const GUINT32_FORMAT: string | null
|
|
|
3937
3937
|
* `uint64_t` values, even though the in-memory representation is the same.
|
|
3938
3938
|
* Standard C macros like `PRIu64` and `SCNu64` should be used for `uint64_t`.
|
|
3939
3939
|
*/
|
|
3940
|
-
const GUINT64_FORMAT: string
|
|
3940
|
+
const GUINT64_FORMAT: string
|
|
3941
3941
|
/**
|
|
3942
3942
|
* This is the platform dependent conversion specifier
|
|
3943
3943
|
* for scanning and printing values of type #guintptr.
|
|
@@ -3948,7 +3948,7 @@ const GUINT64_FORMAT: string | null
|
|
|
3948
3948
|
* Standard C macros like `PRIuPTR` and `SCNuPTR` should be used for
|
|
3949
3949
|
* `uintptr_t`.
|
|
3950
3950
|
*/
|
|
3951
|
-
const GUINTPTR_FORMAT: string
|
|
3951
|
+
const GUINTPTR_FORMAT: string
|
|
3952
3952
|
const HAVE_GINT64: number
|
|
3953
3953
|
const HAVE_GNUC_VARARGS: number
|
|
3954
3954
|
/**
|
|
@@ -3978,110 +3978,110 @@ const IEEE754_FLOAT_BIAS: number
|
|
|
3978
3978
|
* Consult the specification for more
|
|
3979
3979
|
* details about the meanings of the keys below.
|
|
3980
3980
|
*/
|
|
3981
|
-
const KEY_FILE_DESKTOP_GROUP: string
|
|
3981
|
+
const KEY_FILE_DESKTOP_GROUP: string
|
|
3982
3982
|
/**
|
|
3983
3983
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string list
|
|
3984
3984
|
* giving the available application actions.
|
|
3985
3985
|
*/
|
|
3986
|
-
const KEY_FILE_DESKTOP_KEY_ACTIONS: string
|
|
3986
|
+
const KEY_FILE_DESKTOP_KEY_ACTIONS: string
|
|
3987
3987
|
/**
|
|
3988
3988
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list
|
|
3989
3989
|
* of strings giving the categories in which the desktop entry
|
|
3990
3990
|
* should be shown in a menu.
|
|
3991
3991
|
*/
|
|
3992
|
-
const KEY_FILE_DESKTOP_KEY_CATEGORIES: string
|
|
3992
|
+
const KEY_FILE_DESKTOP_KEY_CATEGORIES: string
|
|
3993
3993
|
/**
|
|
3994
3994
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
|
|
3995
3995
|
* string giving the tooltip for the desktop entry.
|
|
3996
3996
|
*/
|
|
3997
|
-
const KEY_FILE_DESKTOP_KEY_COMMENT: string
|
|
3997
|
+
const KEY_FILE_DESKTOP_KEY_COMMENT: string
|
|
3998
3998
|
/**
|
|
3999
3999
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
|
|
4000
4000
|
* set to true if the application is D-Bus activatable.
|
|
4001
4001
|
*/
|
|
4002
|
-
const KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE: string
|
|
4002
|
+
const KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE: string
|
|
4003
4003
|
/**
|
|
4004
4004
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
|
|
4005
4005
|
* giving the command line to execute. It is only valid for desktop
|
|
4006
4006
|
* entries with the `Application` type.
|
|
4007
4007
|
*/
|
|
4008
|
-
const KEY_FILE_DESKTOP_KEY_EXEC: string
|
|
4008
|
+
const KEY_FILE_DESKTOP_KEY_EXEC: string
|
|
4009
4009
|
/**
|
|
4010
4010
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
|
|
4011
4011
|
* string giving the generic name of the desktop entry.
|
|
4012
4012
|
*/
|
|
4013
|
-
const KEY_FILE_DESKTOP_KEY_GENERIC_NAME: string
|
|
4013
|
+
const KEY_FILE_DESKTOP_KEY_GENERIC_NAME: string
|
|
4014
4014
|
/**
|
|
4015
4015
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
|
|
4016
4016
|
* stating whether the desktop entry has been deleted by the user.
|
|
4017
4017
|
*/
|
|
4018
|
-
const KEY_FILE_DESKTOP_KEY_HIDDEN: string
|
|
4018
|
+
const KEY_FILE_DESKTOP_KEY_HIDDEN: string
|
|
4019
4019
|
/**
|
|
4020
4020
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
|
|
4021
4021
|
* string giving the name of the icon to be displayed for the desktop
|
|
4022
4022
|
* entry.
|
|
4023
4023
|
*/
|
|
4024
|
-
const KEY_FILE_DESKTOP_KEY_ICON: string
|
|
4024
|
+
const KEY_FILE_DESKTOP_KEY_ICON: string
|
|
4025
4025
|
/**
|
|
4026
4026
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list
|
|
4027
4027
|
* of strings giving the MIME types supported by this desktop entry.
|
|
4028
4028
|
*/
|
|
4029
|
-
const KEY_FILE_DESKTOP_KEY_MIME_TYPE: string
|
|
4029
|
+
const KEY_FILE_DESKTOP_KEY_MIME_TYPE: string
|
|
4030
4030
|
/**
|
|
4031
4031
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
|
|
4032
4032
|
* string giving the specific name of the desktop entry.
|
|
4033
4033
|
*/
|
|
4034
|
-
const KEY_FILE_DESKTOP_KEY_NAME: string
|
|
4034
|
+
const KEY_FILE_DESKTOP_KEY_NAME: string
|
|
4035
4035
|
/**
|
|
4036
4036
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list of
|
|
4037
4037
|
* strings identifying the environments that should not display the
|
|
4038
4038
|
* desktop entry.
|
|
4039
4039
|
*/
|
|
4040
|
-
const KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN: string
|
|
4040
|
+
const KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN: string
|
|
4041
4041
|
/**
|
|
4042
4042
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
|
|
4043
4043
|
* stating whether the desktop entry should be shown in menus.
|
|
4044
4044
|
*/
|
|
4045
|
-
const KEY_FILE_DESKTOP_KEY_NO_DISPLAY: string
|
|
4045
|
+
const KEY_FILE_DESKTOP_KEY_NO_DISPLAY: string
|
|
4046
4046
|
/**
|
|
4047
4047
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list of
|
|
4048
4048
|
* strings identifying the environments that should display the
|
|
4049
4049
|
* desktop entry.
|
|
4050
4050
|
*/
|
|
4051
|
-
const KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN: string
|
|
4051
|
+
const KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN: string
|
|
4052
4052
|
/**
|
|
4053
4053
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
|
|
4054
4054
|
* containing the working directory to run the program in. It is only
|
|
4055
4055
|
* valid for desktop entries with the `Application` type.
|
|
4056
4056
|
*/
|
|
4057
|
-
const KEY_FILE_DESKTOP_KEY_PATH: string
|
|
4057
|
+
const KEY_FILE_DESKTOP_KEY_PATH: string
|
|
4058
4058
|
/**
|
|
4059
4059
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
|
|
4060
4060
|
* stating whether the application supports the
|
|
4061
4061
|
* [Startup Notification Protocol Specification](http://www.freedesktop.org/Standards/startup-notification-spec).
|
|
4062
4062
|
*/
|
|
4063
|
-
const KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY: string
|
|
4063
|
+
const KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY: string
|
|
4064
4064
|
/**
|
|
4065
4065
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is string
|
|
4066
4066
|
* identifying the WM class or name hint of a window that the application
|
|
4067
4067
|
* will create, which can be used to emulate Startup Notification with
|
|
4068
4068
|
* older applications.
|
|
4069
4069
|
*/
|
|
4070
|
-
const KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS: string
|
|
4070
|
+
const KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS: string
|
|
4071
4071
|
/**
|
|
4072
4072
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
|
|
4073
4073
|
* stating whether the program should be run in a terminal window.
|
|
4074
4074
|
*
|
|
4075
4075
|
* It is only valid for desktop entries with the `Application` type.
|
|
4076
4076
|
*/
|
|
4077
|
-
const KEY_FILE_DESKTOP_KEY_TERMINAL: string
|
|
4077
|
+
const KEY_FILE_DESKTOP_KEY_TERMINAL: string
|
|
4078
4078
|
/**
|
|
4079
4079
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
|
|
4080
4080
|
* giving the file name of a binary on disk used to determine if the
|
|
4081
4081
|
* program is actually installed. It is only valid for desktop entries
|
|
4082
4082
|
* with the `Application` type.
|
|
4083
4083
|
*/
|
|
4084
|
-
const KEY_FILE_DESKTOP_KEY_TRY_EXEC: string
|
|
4084
|
+
const KEY_FILE_DESKTOP_KEY_TRY_EXEC: string
|
|
4085
4085
|
/**
|
|
4086
4086
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
|
|
4087
4087
|
* giving the type of the desktop entry.
|
|
@@ -4090,34 +4090,34 @@ const KEY_FILE_DESKTOP_KEY_TRY_EXEC: string | null
|
|
|
4090
4090
|
* %G_KEY_FILE_DESKTOP_TYPE_LINK, or
|
|
4091
4091
|
* %G_KEY_FILE_DESKTOP_TYPE_DIRECTORY.
|
|
4092
4092
|
*/
|
|
4093
|
-
const KEY_FILE_DESKTOP_KEY_TYPE: string
|
|
4093
|
+
const KEY_FILE_DESKTOP_KEY_TYPE: string
|
|
4094
4094
|
/**
|
|
4095
4095
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
|
|
4096
4096
|
* giving the URL to access. It is only valid for desktop entries
|
|
4097
4097
|
* with the `Link` type.
|
|
4098
4098
|
*/
|
|
4099
|
-
const KEY_FILE_DESKTOP_KEY_URL: string
|
|
4099
|
+
const KEY_FILE_DESKTOP_KEY_URL: string
|
|
4100
4100
|
/**
|
|
4101
4101
|
* A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
|
|
4102
4102
|
* giving the version of the Desktop Entry Specification used for
|
|
4103
4103
|
* the desktop entry file.
|
|
4104
4104
|
*/
|
|
4105
|
-
const KEY_FILE_DESKTOP_KEY_VERSION: string
|
|
4105
|
+
const KEY_FILE_DESKTOP_KEY_VERSION: string
|
|
4106
4106
|
/**
|
|
4107
4107
|
* The value of the %G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop
|
|
4108
4108
|
* entries representing applications.
|
|
4109
4109
|
*/
|
|
4110
|
-
const KEY_FILE_DESKTOP_TYPE_APPLICATION: string
|
|
4110
|
+
const KEY_FILE_DESKTOP_TYPE_APPLICATION: string
|
|
4111
4111
|
/**
|
|
4112
4112
|
* The value of the %G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop
|
|
4113
4113
|
* entries representing directories.
|
|
4114
4114
|
*/
|
|
4115
|
-
const KEY_FILE_DESKTOP_TYPE_DIRECTORY: string
|
|
4115
|
+
const KEY_FILE_DESKTOP_TYPE_DIRECTORY: string
|
|
4116
4116
|
/**
|
|
4117
4117
|
* The value of the %G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop
|
|
4118
4118
|
* entries representing links to documents.
|
|
4119
4119
|
*/
|
|
4120
|
-
const KEY_FILE_DESKTOP_TYPE_LINK: string
|
|
4120
|
+
const KEY_FILE_DESKTOP_TYPE_LINK: string
|
|
4121
4121
|
/**
|
|
4122
4122
|
* Specifies one of the possible types of byte order.
|
|
4123
4123
|
* See %G_BYTE_ORDER.
|
|
@@ -4268,7 +4268,7 @@ const MININT8: number
|
|
|
4268
4268
|
* linked against at application run time.
|
|
4269
4269
|
*/
|
|
4270
4270
|
const MINOR_VERSION: number
|
|
4271
|
-
const MODULE_SUFFIX: string
|
|
4271
|
+
const MODULE_SUFFIX: string
|
|
4272
4272
|
/**
|
|
4273
4273
|
* If a long option in the main group has this name, it is not treated as a
|
|
4274
4274
|
* regular option. Instead it collects all non-option arguments which would
|
|
@@ -4281,7 +4281,7 @@ const MODULE_SUFFIX: string | null
|
|
|
4281
4281
|
* for leftover arguments has the advantage that GOption takes care of
|
|
4282
4282
|
* necessary encoding conversions for strings or filenames.
|
|
4283
4283
|
*/
|
|
4284
|
-
const OPTION_REMAINING: string
|
|
4284
|
+
const OPTION_REMAINING: string
|
|
4285
4285
|
/**
|
|
4286
4286
|
* Specifies one of the possible types of byte order
|
|
4287
4287
|
* (currently unused). See %G_BYTE_ORDER.
|
|
@@ -4295,7 +4295,7 @@ const PI: number
|
|
|
4295
4295
|
* A format specifier that can be used in printf()-style format strings
|
|
4296
4296
|
* when printing a #GPid.
|
|
4297
4297
|
*/
|
|
4298
|
-
const PID_FORMAT: string
|
|
4298
|
+
const PID_FORMAT: string
|
|
4299
4299
|
/**
|
|
4300
4300
|
* Pi divided by 2.
|
|
4301
4301
|
*/
|
|
@@ -4308,7 +4308,7 @@ const PI_4: number
|
|
|
4308
4308
|
* A format specifier that can be used in printf()-style format strings
|
|
4309
4309
|
* when printing the `fd` member of a #GPollFD.
|
|
4310
4310
|
*/
|
|
4311
|
-
const POLLFD_FORMAT: string
|
|
4311
|
+
const POLLFD_FORMAT: string
|
|
4312
4312
|
/**
|
|
4313
4313
|
* Use this for default priority event sources.
|
|
4314
4314
|
*
|
|
@@ -4377,7 +4377,7 @@ const SEARCHPATH_SEPARATOR: number
|
|
|
4377
4377
|
* The search path separator as a string.
|
|
4378
4378
|
* This is ":" on UNIX machines and ";" under Windows.
|
|
4379
4379
|
*/
|
|
4380
|
-
const SEARCHPATH_SEPARATOR_S: string
|
|
4380
|
+
const SEARCHPATH_SEPARATOR_S: string
|
|
4381
4381
|
const SIZEOF_LONG: number
|
|
4382
4382
|
const SIZEOF_SIZE_T: number
|
|
4383
4383
|
const SIZEOF_SSIZE_T: number
|
|
@@ -4399,7 +4399,7 @@ const SQRT2: number
|
|
|
4399
4399
|
/**
|
|
4400
4400
|
* The standard delimiters, used in g_strdelimit().
|
|
4401
4401
|
*/
|
|
4402
|
-
const STR_DELIMITERS: string
|
|
4402
|
+
const STR_DELIMITERS: string
|
|
4403
4403
|
const SYSDEF_AF_INET: number
|
|
4404
4404
|
const SYSDEF_AF_INET6: number
|
|
4405
4405
|
const SYSDEF_AF_UNIX: number
|
|
@@ -4431,7 +4431,7 @@ const SYSDEF_MSG_PEEK: number
|
|
|
4431
4431
|
* calls to functions like g_get_user_cache_dir(), the caller must be prepared
|
|
4432
4432
|
* to create the directory if it doesn’t exist.
|
|
4433
4433
|
*/
|
|
4434
|
-
const TEST_OPTION_ISOLATE_DIRS: string
|
|
4434
|
+
const TEST_OPTION_ISOLATE_DIRS: string
|
|
4435
4435
|
/**
|
|
4436
4436
|
* Evaluates to a time span of one day.
|
|
4437
4437
|
*/
|
|
@@ -4463,12 +4463,12 @@ const UNICHAR_MAX_DECOMPOSITION_LENGTH: number
|
|
|
4463
4463
|
* Generic delimiters characters as defined in
|
|
4464
4464
|
* [RFC 3986](https://tools.ietf.org/html/rfc3986). Includes `:/?#[]```.
|
|
4465
4465
|
*/
|
|
4466
|
-
const URI_RESERVED_CHARS_GENERIC_DELIMITERS: string
|
|
4466
|
+
const URI_RESERVED_CHARS_GENERIC_DELIMITERS: string
|
|
4467
4467
|
/**
|
|
4468
4468
|
* Subcomponent delimiter characters as defined in
|
|
4469
4469
|
* [RFC 3986](https://tools.ietf.org/html/rfc3986). Includes `!$&'()*+,;=`.
|
|
4470
4470
|
*/
|
|
4471
|
-
const URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: string
|
|
4471
|
+
const URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: string
|
|
4472
4472
|
/**
|
|
4473
4473
|
* Number of microseconds in one second (1 million).
|
|
4474
4474
|
* This macro is provided for code readability.
|
|
@@ -4599,7 +4599,7 @@ function ascii_dtostr(buffer: string | null, buf_len: number, d: number): string
|
|
|
4599
4599
|
* @param d The #gdouble to convert
|
|
4600
4600
|
* @returns The pointer to the buffer with the converted string.
|
|
4601
4601
|
*/
|
|
4602
|
-
function ascii_formatd(buffer: string | null, buf_len: number, format: string
|
|
4602
|
+
function ascii_formatd(buffer: string | null, buf_len: number, format: string, d: number): string | null
|
|
4603
4603
|
/**
|
|
4604
4604
|
* Compare two strings, ignoring the case of ASCII characters.
|
|
4605
4605
|
*
|
|
@@ -4620,14 +4620,14 @@ function ascii_formatd(buffer: string | null, buf_len: number, format: string |
|
|
|
4620
4620
|
* @param s2 string to compare with `s1`
|
|
4621
4621
|
* @returns 0 if the strings match, a negative value if @s1 < @s2, or a positive value if @s1 > @s2.
|
|
4622
4622
|
*/
|
|
4623
|
-
function ascii_strcasecmp(s1: string
|
|
4623
|
+
function ascii_strcasecmp(s1: string, s2: string): number
|
|
4624
4624
|
/**
|
|
4625
4625
|
* Converts all upper case ASCII letters to lower case ASCII letters.
|
|
4626
4626
|
* @param str a string
|
|
4627
4627
|
* @param len length of `str` in bytes, or -1 if `str` is nul-terminated
|
|
4628
4628
|
* @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.)
|
|
4629
4629
|
*/
|
|
4630
|
-
function ascii_strdown(str: string
|
|
4630
|
+
function ascii_strdown(str: string, len: number): string | null
|
|
4631
4631
|
/**
|
|
4632
4632
|
* A convenience function for converting a string to a signed number.
|
|
4633
4633
|
*
|
|
@@ -4656,7 +4656,7 @@ function ascii_strdown(str: string | null, len: number): string | null
|
|
|
4656
4656
|
* @param max an upper bound (inclusive)
|
|
4657
4657
|
* @returns %TRUE if @str was a number, otherwise %FALSE.
|
|
4658
4658
|
*/
|
|
4659
|
-
function ascii_string_to_signed(str: string
|
|
4659
|
+
function ascii_string_to_signed(str: string, base: number, min: number, max: number): [ /* returnType */ boolean, /* out_num */ number ]
|
|
4660
4660
|
/**
|
|
4661
4661
|
* A convenience function for converting a string to an unsigned number.
|
|
4662
4662
|
*
|
|
@@ -4686,7 +4686,7 @@ function ascii_string_to_signed(str: string | null, base: number, min: number, m
|
|
|
4686
4686
|
* @param max an upper bound (inclusive)
|
|
4687
4687
|
* @returns %TRUE if @str was a number, otherwise %FALSE.
|
|
4688
4688
|
*/
|
|
4689
|
-
function ascii_string_to_unsigned(str: string
|
|
4689
|
+
function ascii_string_to_unsigned(str: string, base: number, min: number, max: number): [ /* returnType */ boolean, /* out_num */ number ]
|
|
4690
4690
|
/**
|
|
4691
4691
|
* Compare `s1` and `s2`, ignoring the case of ASCII characters and any
|
|
4692
4692
|
* characters after the first `n` in each string. If either string is
|
|
@@ -4705,7 +4705,7 @@ function ascii_string_to_unsigned(str: string | null, base: number, min: number,
|
|
|
4705
4705
|
* @param n number of characters to compare
|
|
4706
4706
|
* @returns 0 if the strings match, a negative value if @s1 < @s2, or a positive value if @s1 > @s2.
|
|
4707
4707
|
*/
|
|
4708
|
-
function ascii_strncasecmp(s1: string
|
|
4708
|
+
function ascii_strncasecmp(s1: string, s2: string, n: number): number
|
|
4709
4709
|
/**
|
|
4710
4710
|
* Converts a string to a #gdouble value.
|
|
4711
4711
|
*
|
|
@@ -4733,7 +4733,7 @@ function ascii_strncasecmp(s1: string | null, s2: string | null, n: number): num
|
|
|
4733
4733
|
* @param nptr the string to convert to a numeric value.
|
|
4734
4734
|
* @returns the #gdouble value.
|
|
4735
4735
|
*/
|
|
4736
|
-
function ascii_strtod(nptr: string
|
|
4736
|
+
function ascii_strtod(nptr: string): [ /* returnType */ number, /* endptr */ string ]
|
|
4737
4737
|
/**
|
|
4738
4738
|
* Converts a string to a #gint64 value.
|
|
4739
4739
|
* This function behaves like the standard strtoll() function
|
|
@@ -4756,7 +4756,7 @@ function ascii_strtod(nptr: string | null): [ /* returnType */ number, /* endptr
|
|
|
4756
4756
|
* @param base to be used for the conversion, 2..36 or 0
|
|
4757
4757
|
* @returns the #gint64 value or zero on error.
|
|
4758
4758
|
*/
|
|
4759
|
-
function ascii_strtoll(nptr: string
|
|
4759
|
+
function ascii_strtoll(nptr: string, base: number): [ /* returnType */ number, /* endptr */ string ]
|
|
4760
4760
|
/**
|
|
4761
4761
|
* Converts a string to a #guint64 value.
|
|
4762
4762
|
* This function behaves like the standard strtoull() function
|
|
@@ -4784,14 +4784,14 @@ function ascii_strtoll(nptr: string | null, base: number): [ /* returnType */ nu
|
|
|
4784
4784
|
* @param base to be used for the conversion, 2..36 or 0
|
|
4785
4785
|
* @returns the #guint64 value or zero on error.
|
|
4786
4786
|
*/
|
|
4787
|
-
function ascii_strtoull(nptr: string
|
|
4787
|
+
function ascii_strtoull(nptr: string, base: number): [ /* returnType */ number, /* endptr */ string ]
|
|
4788
4788
|
/**
|
|
4789
4789
|
* Converts all lower case ASCII letters to upper case ASCII letters.
|
|
4790
4790
|
* @param str a string
|
|
4791
4791
|
* @param len length of `str` in bytes, or -1 if `str` is nul-terminated
|
|
4792
4792
|
* @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.)
|
|
4793
4793
|
*/
|
|
4794
|
-
function ascii_strup(str: string
|
|
4794
|
+
function ascii_strup(str: string, len: number): string | null
|
|
4795
4795
|
/**
|
|
4796
4796
|
* Convert a character to ASCII lower case.
|
|
4797
4797
|
*
|
|
@@ -4829,12 +4829,12 @@ function ascii_toupper(c: number): number
|
|
|
4829
4829
|
* @returns If @c is a hex digit (according to g_ascii_isxdigit()), its numeric value. Otherwise, -1.
|
|
4830
4830
|
*/
|
|
4831
4831
|
function ascii_xdigit_value(c: number): number
|
|
4832
|
-
function assert_warning(log_domain: string
|
|
4833
|
-
function assertion_message(domain: string
|
|
4834
|
-
function assertion_message_cmpint(domain: string
|
|
4835
|
-
function assertion_message_cmpstr(domain: string
|
|
4836
|
-
function assertion_message_cmpstrv(domain: string
|
|
4837
|
-
function assertion_message_error(domain: string
|
|
4832
|
+
function assert_warning(log_domain: string, file: string, line: number, pretty_function: string, expression: string): void
|
|
4833
|
+
function assertion_message(domain: string, file: string, line: number, func: string, message: string): void
|
|
4834
|
+
function assertion_message_cmpint(domain: string, file: string, line: number, func: string, expr: string, arg1: number, cmp: string, arg2: number, numtype: number): void
|
|
4835
|
+
function assertion_message_cmpstr(domain: string, file: string, line: number, func: string, expr: string, arg1: string, cmp: string, arg2: string): void
|
|
4836
|
+
function assertion_message_cmpstrv(domain: string, file: string, line: number, func: string, expr: string, arg1: string, arg2: string, first_wrong_idx: number): void
|
|
4837
|
+
function assertion_message_error(domain: string, file: string, line: number, func: string, expr: string, error: Error, error_domain: Quark, error_code: number): void
|
|
4838
4838
|
/**
|
|
4839
4839
|
* Specifies a function to be called at normal program termination.
|
|
4840
4840
|
*
|
|
@@ -5286,7 +5286,7 @@ function atomic_ref_count_init(arc: number): void
|
|
|
5286
5286
|
* @param text zero-terminated string with base64 text to decode
|
|
5287
5287
|
* @returns newly allocated buffer containing the binary data that @text represents. The returned buffer must be freed with g_free().
|
|
5288
5288
|
*/
|
|
5289
|
-
function base64_decode(text: string
|
|
5289
|
+
function base64_decode(text: string): Uint8Array
|
|
5290
5290
|
/**
|
|
5291
5291
|
* Decode a sequence of Base-64 encoded text into binary data
|
|
5292
5292
|
* by overwriting the input data.
|
|
@@ -5453,7 +5453,7 @@ function build_filenamev(args: string[]): string
|
|
|
5453
5453
|
* @param args %NULL-terminated array of strings containing the path elements.
|
|
5454
5454
|
* @returns a newly-allocated string that must be freed with g_free().
|
|
5455
5455
|
*/
|
|
5456
|
-
function build_pathv(separator: string
|
|
5456
|
+
function build_pathv(separator: string, args: string[]): string
|
|
5457
5457
|
/**
|
|
5458
5458
|
* Frees the memory allocated by the #GByteArray. If `free_segment` is
|
|
5459
5459
|
* %TRUE it frees the actual byte data. If the reference count of
|
|
@@ -5702,7 +5702,7 @@ function compute_checksum_for_data(checksum_type: ChecksumType, data: Uint8Array
|
|
|
5702
5702
|
* @param length the length of the string, or -1 if the string is null-terminated.
|
|
5703
5703
|
* @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.
|
|
5704
5704
|
*/
|
|
5705
|
-
function compute_checksum_for_string(checksum_type: ChecksumType, str: string
|
|
5705
|
+
function compute_checksum_for_string(checksum_type: ChecksumType, str: string, length: number): string | null
|
|
5706
5706
|
/**
|
|
5707
5707
|
* Computes the HMAC for a binary `data`. This is a
|
|
5708
5708
|
* convenience wrapper for g_hmac_new(), g_hmac_get_string()
|
|
@@ -5737,7 +5737,7 @@ function compute_hmac_for_data(digest_type: ChecksumType, key: Uint8Array, data:
|
|
|
5737
5737
|
* @param length the length of the string, or -1 if the string is nul-terminated
|
|
5738
5738
|
* @returns the HMAC as a hexadecimal string. The returned string should be freed with g_free() when done using it.
|
|
5739
5739
|
*/
|
|
5740
|
-
function compute_hmac_for_string(digest_type: ChecksumType, key: Uint8Array, str: string
|
|
5740
|
+
function compute_hmac_for_string(digest_type: ChecksumType, key: Uint8Array, str: string, length: number): string | null
|
|
5741
5741
|
/**
|
|
5742
5742
|
* Converts a string from one character set to another.
|
|
5743
5743
|
*
|
|
@@ -5758,7 +5758,7 @@ function compute_hmac_for_string(digest_type: ChecksumType, key: Uint8Array, str
|
|
|
5758
5758
|
* @param from_codeset character set of `str`.
|
|
5759
5759
|
* @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.
|
|
5760
5760
|
*/
|
|
5761
|
-
function convert(str: Uint8Array, to_codeset: string
|
|
5761
|
+
function convert(str: Uint8Array, to_codeset: string, from_codeset: string): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
|
|
5762
5762
|
function convert_error_quark(): Quark
|
|
5763
5763
|
/**
|
|
5764
5764
|
* Converts a string from one character set to another, possibly
|
|
@@ -5784,7 +5784,7 @@ function convert_error_quark(): Quark
|
|
|
5784
5784
|
* @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.
|
|
5785
5785
|
* @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.
|
|
5786
5786
|
*/
|
|
5787
|
-
function convert_with_fallback(str: Uint8Array, to_codeset: string
|
|
5787
|
+
function convert_with_fallback(str: Uint8Array, to_codeset: string, from_codeset: string, fallback: string): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
|
|
5788
5788
|
/**
|
|
5789
5789
|
* Calls the given function for each data element of the datalist. The
|
|
5790
5790
|
* function is called with each data element's #GQuark id and data,
|
|
@@ -5807,7 +5807,7 @@ function datalist_foreach(datalist: Data, func: DataForeachFunc): void
|
|
|
5807
5807
|
* @param key the string identifying a data element.
|
|
5808
5808
|
* @returns the data element, or %NULL if it is not found.
|
|
5809
5809
|
*/
|
|
5810
|
-
function datalist_get_data(datalist: Data, key: string
|
|
5810
|
+
function datalist_get_data(datalist: Data, key: string): any | null
|
|
5811
5811
|
/**
|
|
5812
5812
|
* Gets flags values packed in together with the datalist.
|
|
5813
5813
|
* See g_datalist_set_flags().
|
|
@@ -5937,7 +5937,7 @@ function date_is_leap_year(year: DateYear): boolean
|
|
|
5937
5937
|
* @param date valid #GDate
|
|
5938
5938
|
* @returns number of characters written to the buffer, or 0 the buffer was too small
|
|
5939
5939
|
*/
|
|
5940
|
-
function date_strftime(s: string | null, slen: number, format: string
|
|
5940
|
+
function date_strftime(s: string | null, slen: number, format: string, date: Date): number
|
|
5941
5941
|
/**
|
|
5942
5942
|
* Returns %TRUE if the day of the month is valid (a day is valid if it's
|
|
5943
5943
|
* between 1 and 31 inclusive).
|
|
@@ -5993,7 +5993,7 @@ function date_valid_year(year: DateYear): boolean
|
|
|
5993
5993
|
* @param category a locale category
|
|
5994
5994
|
* @returns the translated string for the given locale category
|
|
5995
5995
|
*/
|
|
5996
|
-
function dcgettext(domain: string | null, msgid: string
|
|
5996
|
+
function dcgettext(domain: string | null, msgid: string, category: number): string
|
|
5997
5997
|
/**
|
|
5998
5998
|
* This function is a wrapper of dgettext() which does not translate
|
|
5999
5999
|
* the message if the default domain as set with textdomain() has no
|
|
@@ -6031,7 +6031,7 @@ function dcgettext(domain: string | null, msgid: string | null, category: number
|
|
|
6031
6031
|
* @param msgid message to translate
|
|
6032
6032
|
* @returns The translated string
|
|
6033
6033
|
*/
|
|
6034
|
-
function dgettext(domain: string | null, msgid: string
|
|
6034
|
+
function dgettext(domain: string | null, msgid: string): string
|
|
6035
6035
|
/**
|
|
6036
6036
|
* Creates a subdirectory in the preferred directory for temporary
|
|
6037
6037
|
* files (as returned by g_get_tmp_dir()).
|
|
@@ -6086,7 +6086,7 @@ function direct_hash(v: any | null): number
|
|
|
6086
6086
|
* @param n the quantity for which translation is needed
|
|
6087
6087
|
* @returns The translated string
|
|
6088
6088
|
*/
|
|
6089
|
-
function dngettext(domain: string | null, msgid: string
|
|
6089
|
+
function dngettext(domain: string | null, msgid: string, msgid_plural: string, n: number): string
|
|
6090
6090
|
/**
|
|
6091
6091
|
* Compares the two #gdouble values being pointed to and returns
|
|
6092
6092
|
* %TRUE if they are equal.
|
|
@@ -6126,7 +6126,7 @@ function double_hash(v: any): number
|
|
|
6126
6126
|
* @param msgidoffset the offset of the message id in `msgctxid`
|
|
6127
6127
|
* @returns The translated string
|
|
6128
6128
|
*/
|
|
6129
|
-
function dpgettext(domain: string | null, msgctxtid: string
|
|
6129
|
+
function dpgettext(domain: string | null, msgctxtid: string, msgidoffset: number): string
|
|
6130
6130
|
/**
|
|
6131
6131
|
* This function is a variant of g_dgettext() which supports
|
|
6132
6132
|
* a disambiguating message context. GNU gettext uses the
|
|
@@ -6143,7 +6143,7 @@ function dpgettext(domain: string | null, msgctxtid: string | null, msgidoffset:
|
|
|
6143
6143
|
* @param msgid the message
|
|
6144
6144
|
* @returns The translated string
|
|
6145
6145
|
*/
|
|
6146
|
-
function dpgettext2(domain: string | null, context: string
|
|
6146
|
+
function dpgettext2(domain: string | null, context: string, msgid: string): string
|
|
6147
6147
|
/**
|
|
6148
6148
|
* Returns the value of the environment variable `variable` in the
|
|
6149
6149
|
* provided list `envp`.
|
|
@@ -6442,7 +6442,7 @@ function filename_display_name(filename: string): string | null
|
|
|
6442
6442
|
* @param uri a uri describing a filename (escaped, encoded in ASCII).
|
|
6443
6443
|
* @returns a newly-allocated string holding the resulting filename, or %NULL on an error.
|
|
6444
6444
|
*/
|
|
6445
|
-
function filename_from_uri(uri: string
|
|
6445
|
+
function filename_from_uri(uri: string): [ /* returnType */ string, /* hostname */ string | null ]
|
|
6446
6446
|
/**
|
|
6447
6447
|
* Converts a string from UTF-8 to the encoding GLib uses for
|
|
6448
6448
|
* filenames. Note that on Windows GLib uses UTF-8 for filenames;
|
|
@@ -6458,7 +6458,7 @@ function filename_from_uri(uri: string | null): [ /* returnType */ string, /* ho
|
|
|
6458
6458
|
* @param len the length of the string, or -1 if the string is nul-terminated.
|
|
6459
6459
|
* @returns The converted string, or %NULL on an error.
|
|
6460
6460
|
*/
|
|
6461
|
-
function filename_from_utf8(utf8string: string
|
|
6461
|
+
function filename_from_utf8(utf8string: string, len: number): [ /* returnType */ string, /* bytes_read */ number, /* bytes_written */ number ]
|
|
6462
6462
|
/**
|
|
6463
6463
|
* Converts an absolute filename to an escaped ASCII-encoded URI, with the path
|
|
6464
6464
|
* component following Section 3.3. of RFC 2396.
|
|
@@ -6617,7 +6617,7 @@ function get_application_name(): string | null
|
|
|
6617
6617
|
* freed.
|
|
6618
6618
|
* @returns %TRUE if the returned charset is UTF-8
|
|
6619
6619
|
*/
|
|
6620
|
-
function get_charset(): [ /* returnType */ boolean, /* charset */ string
|
|
6620
|
+
function get_charset(): [ /* returnType */ boolean, /* charset */ string ]
|
|
6621
6621
|
/**
|
|
6622
6622
|
* Gets the character set for the current locale.
|
|
6623
6623
|
* @returns a newly allocated string containing the name of the character set. This string must be freed with g_free().
|
|
@@ -6643,7 +6643,7 @@ function get_codeset(): string | null
|
|
|
6643
6643
|
* freed.
|
|
6644
6644
|
* @returns %TRUE if the returned charset is UTF-8
|
|
6645
6645
|
*/
|
|
6646
|
-
function get_console_charset(): [ /* returnType */ boolean, /* charset */ string
|
|
6646
|
+
function get_console_charset(): [ /* returnType */ boolean, /* charset */ string ]
|
|
6647
6647
|
/**
|
|
6648
6648
|
* Gets the current directory.
|
|
6649
6649
|
*
|
|
@@ -6748,7 +6748,7 @@ function get_home_dir(): string
|
|
|
6748
6748
|
* The encoding of the returned string is UTF-8.
|
|
6749
6749
|
* @returns the host name of the machine.
|
|
6750
6750
|
*/
|
|
6751
|
-
function get_host_name(): string
|
|
6751
|
+
function get_host_name(): string
|
|
6752
6752
|
/**
|
|
6753
6753
|
* Computes a list of applicable locale names, which can be used to
|
|
6754
6754
|
* e.g. construct locale-dependent filenames or search paths. The returned
|
|
@@ -6778,7 +6778,7 @@ function get_language_names(): string[]
|
|
|
6778
6778
|
* @param category_name a locale category name
|
|
6779
6779
|
* @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.
|
|
6780
6780
|
*/
|
|
6781
|
-
function get_language_names_with_category(category_name: string
|
|
6781
|
+
function get_language_names_with_category(category_name: string): string[]
|
|
6782
6782
|
/**
|
|
6783
6783
|
* Returns a list of derived variants of `locale,` which can be used to
|
|
6784
6784
|
* e.g. construct locale-dependent filenames or search paths. The returned
|
|
@@ -6798,7 +6798,7 @@ function get_language_names_with_category(category_name: string | null): string[
|
|
|
6798
6798
|
* @param locale a locale identifier
|
|
6799
6799
|
* @returns a newly allocated array of newly allocated strings with the locale variants. Free with g_strfreev().
|
|
6800
6800
|
*/
|
|
6801
|
-
function get_locale_variants(locale: string
|
|
6801
|
+
function get_locale_variants(locale: string): string[]
|
|
6802
6802
|
/**
|
|
6803
6803
|
* Queries the system monotonic time.
|
|
6804
6804
|
*
|
|
@@ -6833,7 +6833,7 @@ function get_num_processors(): number
|
|
|
6833
6833
|
* @param key_name a key for the OS info being requested, for example %G_OS_INFO_KEY_NAME.
|
|
6834
6834
|
* @returns The associated value for the requested key or %NULL if this information is not provided.
|
|
6835
6835
|
*/
|
|
6836
|
-
function get_os_info(key_name: string
|
|
6836
|
+
function get_os_info(key_name: string): string | null
|
|
6837
6837
|
/**
|
|
6838
6838
|
* Gets the name of the program. This name should not be localized,
|
|
6839
6839
|
* in contrast to g_get_application_name().
|
|
@@ -7321,7 +7321,7 @@ function hook_unref(hook_list: HookList, hook: Hook): void
|
|
|
7321
7321
|
* @param hostname a hostname
|
|
7322
7322
|
* @returns %TRUE if @hostname contains any ASCII-encoded segments.
|
|
7323
7323
|
*/
|
|
7324
|
-
function hostname_is_ascii_encoded(hostname: string
|
|
7324
|
+
function hostname_is_ascii_encoded(hostname: string): boolean
|
|
7325
7325
|
/**
|
|
7326
7326
|
* Tests if `hostname` is the string form of an IPv4 or IPv6 address.
|
|
7327
7327
|
* (Eg, "192.168.0.1".)
|
|
@@ -7330,7 +7330,7 @@ function hostname_is_ascii_encoded(hostname: string | null): boolean
|
|
|
7330
7330
|
* @param hostname a hostname (or IP address in string form)
|
|
7331
7331
|
* @returns %TRUE if @hostname is an IP address
|
|
7332
7332
|
*/
|
|
7333
|
-
function hostname_is_ip_address(hostname: string
|
|
7333
|
+
function hostname_is_ip_address(hostname: string): boolean
|
|
7334
7334
|
/**
|
|
7335
7335
|
* Tests if `hostname` contains Unicode characters. If this returns
|
|
7336
7336
|
* %TRUE, you need to encode the hostname with g_hostname_to_ascii()
|
|
@@ -7342,7 +7342,7 @@ function hostname_is_ip_address(hostname: string | null): boolean
|
|
|
7342
7342
|
* @param hostname a hostname
|
|
7343
7343
|
* @returns %TRUE if @hostname contains any non-ASCII characters
|
|
7344
7344
|
*/
|
|
7345
|
-
function hostname_is_non_ascii(hostname: string
|
|
7345
|
+
function hostname_is_non_ascii(hostname: string): boolean
|
|
7346
7346
|
/**
|
|
7347
7347
|
* Converts `hostname` to its canonical ASCII form; an ASCII-only
|
|
7348
7348
|
* string containing no uppercase letters and not ending with a
|
|
@@ -7350,7 +7350,7 @@ function hostname_is_non_ascii(hostname: string | null): boolean
|
|
|
7350
7350
|
* @param hostname a valid UTF-8 or ASCII hostname
|
|
7351
7351
|
* @returns an ASCII hostname, which must be freed, or %NULL if @hostname is in some way invalid.
|
|
7352
7352
|
*/
|
|
7353
|
-
function hostname_to_ascii(hostname: string
|
|
7353
|
+
function hostname_to_ascii(hostname: string): string | null
|
|
7354
7354
|
/**
|
|
7355
7355
|
* Converts `hostname` to its canonical presentation form; a UTF-8
|
|
7356
7356
|
* string in Unicode normalization form C, containing no uppercase
|
|
@@ -7362,7 +7362,7 @@ function hostname_to_ascii(hostname: string | null): string | null
|
|
|
7362
7362
|
* @param hostname a valid UTF-8 or ASCII hostname
|
|
7363
7363
|
* @returns a UTF-8 hostname, which must be freed, or %NULL if @hostname is in some way invalid.
|
|
7364
7364
|
*/
|
|
7365
|
-
function hostname_to_unicode(hostname: string
|
|
7365
|
+
function hostname_to_unicode(hostname: string): string | null
|
|
7366
7366
|
/**
|
|
7367
7367
|
* Adds a function to be called whenever there are no higher priority
|
|
7368
7368
|
* events pending.
|
|
@@ -7460,7 +7460,7 @@ function int_hash(v: any): number
|
|
|
7460
7460
|
* @param string a static string
|
|
7461
7461
|
* @returns a canonical representation for the string
|
|
7462
7462
|
*/
|
|
7463
|
-
function intern_static_string(string: string | null): string
|
|
7463
|
+
function intern_static_string(string: string | null): string
|
|
7464
7464
|
/**
|
|
7465
7465
|
* Returns a canonical representation for `string`. Interned strings
|
|
7466
7466
|
* can be compared for equality by comparing the pointers, instead of
|
|
@@ -7472,7 +7472,7 @@ function intern_static_string(string: string | null): string | null
|
|
|
7472
7472
|
* @param string a string
|
|
7473
7473
|
* @returns a canonical representation for the string
|
|
7474
7474
|
*/
|
|
7475
|
-
function intern_string(string: string | null): string
|
|
7475
|
+
function intern_string(string: string | null): string
|
|
7476
7476
|
/**
|
|
7477
7477
|
* Adds the #GIOChannel into the default main loop context
|
|
7478
7478
|
* with the given priority.
|
|
@@ -7541,7 +7541,7 @@ function listenv(): string[]
|
|
|
7541
7541
|
* @param len the length of the string, or -1 if the string is nul-terminated.
|
|
7542
7542
|
* @returns A newly-allocated buffer containing the converted string, or %NULL on an error, and error will be set.
|
|
7543
7543
|
*/
|
|
7544
|
-
function locale_from_utf8(utf8string: string
|
|
7544
|
+
function locale_from_utf8(utf8string: string, len: number): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
|
|
7545
7545
|
/**
|
|
7546
7546
|
* Converts a string which is in the encoding used for strings by
|
|
7547
7547
|
* the C runtime (usually the same as that used by the operating
|
|
@@ -7611,7 +7611,7 @@ function log_get_debug_enabled(): boolean
|
|
|
7611
7611
|
* @param log_domain the log domain
|
|
7612
7612
|
* @param handler_id the id of the handler, which was returned in g_log_set_handler()
|
|
7613
7613
|
*/
|
|
7614
|
-
function log_remove_handler(log_domain: string
|
|
7614
|
+
function log_remove_handler(log_domain: string, handler_id: number): void
|
|
7615
7615
|
/**
|
|
7616
7616
|
* Sets the message levels which are always fatal, in any log domain.
|
|
7617
7617
|
* When a message with any of these levels is logged the program terminates.
|
|
@@ -7661,7 +7661,7 @@ function log_set_debug_enabled(enabled: boolean): void
|
|
|
7661
7661
|
* @param fatal_mask the new fatal mask
|
|
7662
7662
|
* @returns the old fatal mask for the log domain
|
|
7663
7663
|
*/
|
|
7664
|
-
function log_set_fatal_mask(log_domain: string
|
|
7664
|
+
function log_set_fatal_mask(log_domain: string, fatal_mask: LogLevelFlags): LogLevelFlags
|
|
7665
7665
|
/**
|
|
7666
7666
|
* Like g_log_set_handler(), but takes a destroy notify for the `user_data`.
|
|
7667
7667
|
*
|
|
@@ -8085,7 +8085,7 @@ function markup_error_quark(): Quark
|
|
|
8085
8085
|
* @param length length of `text` in bytes, or -1 if the text is nul-terminated
|
|
8086
8086
|
* @returns a newly allocated string with the escaped text
|
|
8087
8087
|
*/
|
|
8088
|
-
function markup_escape_text(text: string
|
|
8088
|
+
function markup_escape_text(text: string, length: number): string | null
|
|
8089
8089
|
/**
|
|
8090
8090
|
* Checks whether the allocator used by g_malloc() is the system's
|
|
8091
8091
|
* malloc implementation. If it returns %TRUE memory allocated with
|
|
@@ -8193,7 +8193,7 @@ function number_parser_error_quark(): Quark
|
|
|
8193
8193
|
* calling g_on_error_stack_trace() instead.
|
|
8194
8194
|
* @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)
|
|
8195
8195
|
*/
|
|
8196
|
-
function on_error_query(prg_name: string
|
|
8196
|
+
function on_error_query(prg_name: string): void
|
|
8197
8197
|
/**
|
|
8198
8198
|
* Invokes gdb, which attaches to the current process and shows a
|
|
8199
8199
|
* stack trace. Called by g_on_error_query() when the "[S]tack trace"
|
|
@@ -8210,7 +8210,7 @@ function on_error_query(prg_name: string | null): void
|
|
|
8210
8210
|
* handle that exception (see [Running GLib Applications](glib-running.html)).
|
|
8211
8211
|
* @param prg_name the program name, needed by gdb for the "[S]tack trace" option
|
|
8212
8212
|
*/
|
|
8213
|
-
function on_error_stack_trace(prg_name: string
|
|
8213
|
+
function on_error_stack_trace(prg_name: string): void
|
|
8214
8214
|
/**
|
|
8215
8215
|
* Function to be called when starting a critical initialization
|
|
8216
8216
|
* section. The argument `location` must point to a static
|
|
@@ -8358,7 +8358,7 @@ function path_skip_root(file_name: string): string | null
|
|
|
8358
8358
|
* @param string the UTF-8 encoded string to match
|
|
8359
8359
|
* @returns %TRUE if @string matches @pspec
|
|
8360
8360
|
*/
|
|
8361
|
-
function pattern_match_simple(pattern: string
|
|
8361
|
+
function pattern_match_simple(pattern: string, string: string): boolean
|
|
8362
8362
|
/**
|
|
8363
8363
|
* This is equivalent to g_bit_lock, but working on pointers (or other
|
|
8364
8364
|
* pointer-sized values).
|
|
@@ -8429,7 +8429,7 @@ function poll(fds: PollFD, nfds: number, timeout: number): number
|
|
|
8429
8429
|
* @param err a return location for a #GError, or %NULL
|
|
8430
8430
|
* @param prefix string to prefix `err` with
|
|
8431
8431
|
*/
|
|
8432
|
-
function prefix_error_literal(err: Error | null, prefix: string
|
|
8432
|
+
function prefix_error_literal(err: Error | null, prefix: string): void
|
|
8433
8433
|
/**
|
|
8434
8434
|
* If `dest` is %NULL, free `src;` otherwise, moves `src` into *`dest`.
|
|
8435
8435
|
* The error variable `dest` points to must be %NULL.
|
|
@@ -8480,7 +8480,7 @@ function quark_from_string(string: string | null): Quark
|
|
|
8480
8480
|
* @param quark a #GQuark.
|
|
8481
8481
|
* @returns the string associated with the #GQuark
|
|
8482
8482
|
*/
|
|
8483
|
-
function quark_to_string(quark: Quark): string
|
|
8483
|
+
function quark_to_string(quark: Quark): string
|
|
8484
8484
|
/**
|
|
8485
8485
|
* Gets the #GQuark associated with the given string, or 0 if string is
|
|
8486
8486
|
* %NULL or it has no associated #GQuark.
|
|
@@ -8665,7 +8665,7 @@ function ref_string_length(str: string | null): number
|
|
|
8665
8665
|
* @param str a NUL-terminated string
|
|
8666
8666
|
* @returns the newly created reference counted string
|
|
8667
8667
|
*/
|
|
8668
|
-
function ref_string_new(str: string
|
|
8668
|
+
function ref_string_new(str: string): string | null
|
|
8669
8669
|
/**
|
|
8670
8670
|
* Creates a new reference counted string and copies the content of `str`
|
|
8671
8671
|
* into it.
|
|
@@ -8676,7 +8676,7 @@ function ref_string_new(str: string | null): string | null
|
|
|
8676
8676
|
* @param str a NUL-terminated string
|
|
8677
8677
|
* @returns the newly created reference counted string, or a new reference to an existing string
|
|
8678
8678
|
*/
|
|
8679
|
-
function ref_string_new_intern(str: string
|
|
8679
|
+
function ref_string_new_intern(str: string): string | null
|
|
8680
8680
|
/**
|
|
8681
8681
|
* Creates a new reference counted string and copies the contents of `str`
|
|
8682
8682
|
* into it, up to `len` bytes.
|
|
@@ -8687,7 +8687,7 @@ function ref_string_new_intern(str: string | null): string | null
|
|
|
8687
8687
|
* @param len length of `str` to use, or -1 if `str` is nul-terminated
|
|
8688
8688
|
* @returns the newly created reference counted string
|
|
8689
8689
|
*/
|
|
8690
|
-
function ref_string_new_len(str: string
|
|
8690
|
+
function ref_string_new_len(str: string, len: number): string | null
|
|
8691
8691
|
/**
|
|
8692
8692
|
* Releases a reference on a string; if it was the last reference, the
|
|
8693
8693
|
* resources allocated by the string are freed as well.
|
|
@@ -8707,7 +8707,7 @@ function ref_string_release(str: string | null): void
|
|
|
8707
8707
|
* @param replacement the replacement string
|
|
8708
8708
|
* @returns whether @replacement is a valid replacement string
|
|
8709
8709
|
*/
|
|
8710
|
-
function regex_check_replacement(replacement: string
|
|
8710
|
+
function regex_check_replacement(replacement: string): [ /* returnType */ boolean, /* has_references */ boolean ]
|
|
8711
8711
|
function regex_error_quark(): Quark
|
|
8712
8712
|
/**
|
|
8713
8713
|
* Escapes the nul characters in `string` to "\x00". It can be used
|
|
@@ -8719,7 +8719,7 @@ function regex_error_quark(): Quark
|
|
|
8719
8719
|
* @param length the length of `string`
|
|
8720
8720
|
* @returns a newly-allocated escaped string
|
|
8721
8721
|
*/
|
|
8722
|
-
function regex_escape_nul(string: string
|
|
8722
|
+
function regex_escape_nul(string: string, length: number): string | null
|
|
8723
8723
|
/**
|
|
8724
8724
|
* Escapes the special characters used for regular expressions
|
|
8725
8725
|
* in `string,` for instance "a.b*c" becomes "a\.b\*c". This
|
|
@@ -8732,7 +8732,7 @@ function regex_escape_nul(string: string | null, length: number): string | null
|
|
|
8732
8732
|
* @param length the length of `string,` in bytes, or -1 if `string` is nul-terminated
|
|
8733
8733
|
* @returns a newly-allocated escaped string
|
|
8734
8734
|
*/
|
|
8735
|
-
function regex_escape_string(string: string
|
|
8735
|
+
function regex_escape_string(string: string, length: number): string | null
|
|
8736
8736
|
/**
|
|
8737
8737
|
* Scans for a match in `string` for `pattern`.
|
|
8738
8738
|
*
|
|
@@ -8750,7 +8750,7 @@ function regex_escape_string(string: string | null, length: number): string | nu
|
|
|
8750
8750
|
* @param match_options match options, or 0
|
|
8751
8751
|
* @returns %TRUE if the string matched, %FALSE otherwise
|
|
8752
8752
|
*/
|
|
8753
|
-
function regex_match_simple(pattern: string
|
|
8753
|
+
function regex_match_simple(pattern: string, string: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): boolean
|
|
8754
8754
|
/**
|
|
8755
8755
|
* Breaks the string on the pattern, and returns an array of
|
|
8756
8756
|
* the tokens. If the pattern contains capturing parentheses,
|
|
@@ -8785,7 +8785,7 @@ function regex_match_simple(pattern: string | null, string: string | null, compi
|
|
|
8785
8785
|
* @param match_options match options, or 0
|
|
8786
8786
|
* @returns a %NULL-terminated array of strings. Free it using g_strfreev()
|
|
8787
8787
|
*/
|
|
8788
|
-
function regex_split_simple(pattern: string
|
|
8788
|
+
function regex_split_simple(pattern: string, string: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): string[]
|
|
8789
8789
|
/**
|
|
8790
8790
|
* Resets the cache used for g_get_user_special_dir(), so
|
|
8791
8791
|
* that the latest on-disk version is used. Call this only
|
|
@@ -8902,7 +8902,7 @@ function sequence_swap(a: SequenceIter, b: SequenceIter): void
|
|
|
8902
8902
|
* or when displaying an application's name in the task list.
|
|
8903
8903
|
* @param application_name localized name of the application
|
|
8904
8904
|
*/
|
|
8905
|
-
function set_application_name(application_name: string
|
|
8905
|
+
function set_application_name(application_name: string): void
|
|
8906
8906
|
/**
|
|
8907
8907
|
* Does nothing if `err` is %NULL; if `err` is non-%NULL, then *`err`
|
|
8908
8908
|
* must be %NULL. A new #GError is created and assigned to *`err`.
|
|
@@ -8913,7 +8913,7 @@ function set_application_name(application_name: string | null): void
|
|
|
8913
8913
|
* @param code error code
|
|
8914
8914
|
* @param message error message
|
|
8915
8915
|
*/
|
|
8916
|
-
function set_error_literal(domain: Quark, code: number, message: string
|
|
8916
|
+
function set_error_literal(domain: Quark, code: number, message: string): /* err */ Error
|
|
8917
8917
|
/**
|
|
8918
8918
|
* Sets the name of the program. This name should not be localized,
|
|
8919
8919
|
* in contrast to g_set_application_name().
|
|
@@ -8929,7 +8929,7 @@ function set_error_literal(domain: Quark, code: number, message: string | null):
|
|
|
8929
8929
|
* could only be called once per process.
|
|
8930
8930
|
* @param prgname the name of the program.
|
|
8931
8931
|
*/
|
|
8932
|
-
function set_prgname(prgname: string
|
|
8932
|
+
function set_prgname(prgname: string): void
|
|
8933
8933
|
/**
|
|
8934
8934
|
* Sets an environment variable. On UNIX, both the variable's name and
|
|
8935
8935
|
* value can be arbitrary byte strings, except that the variable's name
|
|
@@ -9162,7 +9162,7 @@ function source_remove_by_user_data(user_data: any | null): boolean
|
|
|
9162
9162
|
* @param tag a #GSource ID
|
|
9163
9163
|
* @param name debug name for the source
|
|
9164
9164
|
*/
|
|
9165
|
-
function source_set_name_by_id(tag: number, name: string
|
|
9165
|
+
function source_set_name_by_id(tag: number, name: string): void
|
|
9166
9166
|
/**
|
|
9167
9167
|
* Gets the smallest prime number from a built-in array of primes which
|
|
9168
9168
|
* is larger than `num`. This is used within GLib to calculate the optimum
|
|
@@ -9591,7 +9591,7 @@ function spawn_sync(working_directory: string | null, argv: string[], envp: stri
|
|
|
9591
9591
|
* @param src source string.
|
|
9592
9592
|
* @returns a pointer to the trailing nul byte in `dest`.
|
|
9593
9593
|
*/
|
|
9594
|
-
function stpcpy(dest: string | null, src: string
|
|
9594
|
+
function stpcpy(dest: string | null, src: string): string | null
|
|
9595
9595
|
/**
|
|
9596
9596
|
* Compares two strings for byte-by-byte equality and returns %TRUE
|
|
9597
9597
|
* if they are equal. It can be passed to g_hash_table_new() as the
|
|
@@ -9612,14 +9612,14 @@ function str_equal(v1: any, v2: any): boolean
|
|
|
9612
9612
|
* @param prefix the nul-terminated prefix to look for
|
|
9613
9613
|
* @returns %TRUE if @str begins with @prefix, %FALSE otherwise.
|
|
9614
9614
|
*/
|
|
9615
|
-
function str_has_prefix(str: string
|
|
9615
|
+
function str_has_prefix(str: string, prefix: string): boolean
|
|
9616
9616
|
/**
|
|
9617
9617
|
* Looks whether the string `str` ends with `suffix`.
|
|
9618
9618
|
* @param str a nul-terminated string
|
|
9619
9619
|
* @param suffix the nul-terminated suffix to look for
|
|
9620
9620
|
* @returns %TRUE if @str end with @suffix, %FALSE otherwise.
|
|
9621
9621
|
*/
|
|
9622
|
-
function str_has_suffix(str: string
|
|
9622
|
+
function str_has_suffix(str: string, suffix: string): boolean
|
|
9623
9623
|
/**
|
|
9624
9624
|
* Converts a string to a hash value.
|
|
9625
9625
|
*
|
|
@@ -9645,7 +9645,7 @@ function str_hash(v: any): number
|
|
|
9645
9645
|
* @param str a string
|
|
9646
9646
|
* @returns %TRUE if @str is ASCII
|
|
9647
9647
|
*/
|
|
9648
|
-
function str_is_ascii(str: string
|
|
9648
|
+
function str_is_ascii(str: string): boolean
|
|
9649
9649
|
/**
|
|
9650
9650
|
* Checks if a search conducted for `search_term` should match
|
|
9651
9651
|
* `potential_hit`.
|
|
@@ -9674,7 +9674,7 @@ function str_is_ascii(str: string | null): boolean
|
|
|
9674
9674
|
* @param accept_alternates %TRUE to accept ASCII alternates
|
|
9675
9675
|
* @returns %TRUE if @potential_hit is a hit
|
|
9676
9676
|
*/
|
|
9677
|
-
function str_match_string(search_term: string
|
|
9677
|
+
function str_match_string(search_term: string, potential_hit: string, accept_alternates: boolean): boolean
|
|
9678
9678
|
/**
|
|
9679
9679
|
* Transliterate `str` to plain ASCII.
|
|
9680
9680
|
*
|
|
@@ -9698,7 +9698,7 @@ function str_match_string(search_term: string | null, potential_hit: string | nu
|
|
|
9698
9698
|
* @param from_locale the source locale, if known
|
|
9699
9699
|
* @returns a string in plain ASCII
|
|
9700
9700
|
*/
|
|
9701
|
-
function str_to_ascii(str: string
|
|
9701
|
+
function str_to_ascii(str: string, from_locale: string | null): string | null
|
|
9702
9702
|
/**
|
|
9703
9703
|
* Tokenises `string` and performs folding on each token.
|
|
9704
9704
|
*
|
|
@@ -9719,7 +9719,7 @@ function str_to_ascii(str: string | null, from_locale: string | null): string |
|
|
|
9719
9719
|
* @param translit_locale the language code (like 'de' or 'en_GB') from which `string` originates
|
|
9720
9720
|
* @returns the folded tokens
|
|
9721
9721
|
*/
|
|
9722
|
-
function str_tokenize_and_fold(string: string
|
|
9722
|
+
function str_tokenize_and_fold(string: string, translit_locale: string | null): [ /* returnType */ string[], /* ascii_alternates */ string[] ]
|
|
9723
9723
|
/**
|
|
9724
9724
|
* For each character in `string,` if the character is not in `valid_chars,`
|
|
9725
9725
|
* replaces the character with `substitutor`.
|
|
@@ -9747,7 +9747,7 @@ function str_tokenize_and_fold(string: string | null, translit_locale: string |
|
|
|
9747
9747
|
* @param substitutor replacement character for disallowed bytes
|
|
9748
9748
|
* @returns the modified @string
|
|
9749
9749
|
*/
|
|
9750
|
-
function strcanon(string: string | null, valid_chars: string
|
|
9750
|
+
function strcanon(string: string | null, valid_chars: string, substitutor: number): string | null
|
|
9751
9751
|
/**
|
|
9752
9752
|
* A case-insensitive string comparison, corresponding to the standard
|
|
9753
9753
|
* strcasecmp() function on platforms which support it.
|
|
@@ -9755,7 +9755,7 @@ function strcanon(string: string | null, valid_chars: string | null, substitutor
|
|
|
9755
9755
|
* @param s2 a string to compare with `s1`
|
|
9756
9756
|
* @returns 0 if the strings match, a negative value if @s1 < @s2, or a positive value if @s1 > @s2.
|
|
9757
9757
|
*/
|
|
9758
|
-
function strcasecmp(s1: string
|
|
9758
|
+
function strcasecmp(s1: string, s2: string): number
|
|
9759
9759
|
/**
|
|
9760
9760
|
* Removes trailing whitespace from a string.
|
|
9761
9761
|
*
|
|
@@ -9801,7 +9801,7 @@ function strcmp0(str1: string | null, str2: string | null): number
|
|
|
9801
9801
|
* @param source a string to compress
|
|
9802
9802
|
* @returns a newly-allocated copy of @source with all escaped character compressed
|
|
9803
9803
|
*/
|
|
9804
|
-
function strcompress(source: string
|
|
9804
|
+
function strcompress(source: string): string | null
|
|
9805
9805
|
/**
|
|
9806
9806
|
* Converts any delimiter characters in `string` to `new_delimiter`.
|
|
9807
9807
|
*
|
|
@@ -9870,7 +9870,7 @@ function strdup(str: string | null): string | null
|
|
|
9870
9870
|
* @param errnum the system error number. See the standard C %errno documentation
|
|
9871
9871
|
* @returns a UTF-8 string describing the error code. If the error code is unknown, it returns a string like "Unknown error: <code>".
|
|
9872
9872
|
*/
|
|
9873
|
-
function strerror(errnum: number): string
|
|
9873
|
+
function strerror(errnum: number): string
|
|
9874
9874
|
/**
|
|
9875
9875
|
* Escapes the special characters '\b', '\f', '\n', '\r', '\t', '\v', '\'
|
|
9876
9876
|
* and '"' in the string `source` by inserting a '\' before
|
|
@@ -9884,7 +9884,7 @@ function strerror(errnum: number): string | null
|
|
|
9884
9884
|
* @param exceptions a string of characters not to escape in `source`
|
|
9885
9885
|
* @returns a newly-allocated copy of @source with certain characters escaped. See above.
|
|
9886
9886
|
*/
|
|
9887
|
-
function strescape(source: string
|
|
9887
|
+
function strescape(source: string, exceptions: string | null): string | null
|
|
9888
9888
|
/**
|
|
9889
9889
|
* Frees a %NULL-terminated array of strings, as well as each
|
|
9890
9890
|
* string it contains.
|
|
@@ -9899,7 +9899,7 @@ function strfreev(str_array: string | null): void
|
|
|
9899
9899
|
* @param msgval another string
|
|
9900
9900
|
* @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.
|
|
9901
9901
|
*/
|
|
9902
|
-
function strip_context(msgid: string
|
|
9902
|
+
function strip_context(msgid: string, msgval: string): string
|
|
9903
9903
|
/**
|
|
9904
9904
|
* Joins a number of strings together to form one long string, with the
|
|
9905
9905
|
* optional `separator` inserted between each of them. The returned string
|
|
@@ -9932,7 +9932,7 @@ function strjoinv(separator: string | null, str_array: string | null): string |
|
|
|
9932
9932
|
* @param dest_size length of `dest` buffer in bytes (not length of existing string inside `dest)`
|
|
9933
9933
|
* @returns size of attempted result, which is MIN (dest_size, strlen (original dest)) + strlen (src), so if retval >= dest_size, truncation occurred.
|
|
9934
9934
|
*/
|
|
9935
|
-
function strlcat(dest: string | null, src: string
|
|
9935
|
+
function strlcat(dest: string | null, src: string, dest_size: number): number
|
|
9936
9936
|
/**
|
|
9937
9937
|
* Portability wrapper that calls strlcpy() on systems which have it,
|
|
9938
9938
|
* and emulates strlcpy() otherwise. Copies `src` to `dest;` `dest` is
|
|
@@ -9953,7 +9953,7 @@ function strlcat(dest: string | null, src: string | null, dest_size: number): nu
|
|
|
9953
9953
|
* @param dest_size length of `dest` in bytes
|
|
9954
9954
|
* @returns length of @src
|
|
9955
9955
|
*/
|
|
9956
|
-
function strlcpy(dest: string | null, src: string
|
|
9956
|
+
function strlcpy(dest: string | null, src: string, dest_size: number): number
|
|
9957
9957
|
/**
|
|
9958
9958
|
* A case-insensitive string comparison, corresponding to the standard
|
|
9959
9959
|
* strncasecmp() function on platforms which support it. It is similar
|
|
@@ -9964,7 +9964,7 @@ function strlcpy(dest: string | null, src: string | null, dest_size: number): nu
|
|
|
9964
9964
|
* @param n the maximum number of characters to compare
|
|
9965
9965
|
* @returns 0 if the strings match, a negative value if @s1 < @s2, or a positive value if @s1 > @s2.
|
|
9966
9966
|
*/
|
|
9967
|
-
function strncasecmp(s1: string
|
|
9967
|
+
function strncasecmp(s1: string, s2: string, n: number): number
|
|
9968
9968
|
/**
|
|
9969
9969
|
* Duplicates the first `n` bytes of a string, returning a newly-allocated
|
|
9970
9970
|
* buffer `n` + 1 bytes long which will always be nul-terminated. If `str`
|
|
@@ -9978,7 +9978,7 @@ function strncasecmp(s1: string | null, s2: string | null, n: number): number
|
|
|
9978
9978
|
* @param n the maximum number of bytes to copy from `str`
|
|
9979
9979
|
* @returns a newly-allocated buffer containing the first @n bytes of @str, nul-terminated
|
|
9980
9980
|
*/
|
|
9981
|
-
function strndup(str: string
|
|
9981
|
+
function strndup(str: string, n: number): string | null
|
|
9982
9982
|
/**
|
|
9983
9983
|
* Creates a new string `length` bytes long filled with `fill_char`.
|
|
9984
9984
|
* The returned string should be freed when no longer needed.
|
|
@@ -10005,7 +10005,7 @@ function strreverse(string: string | null): string | null
|
|
|
10005
10005
|
* @param needle the nul-terminated string to search for
|
|
10006
10006
|
* @returns a pointer to the found occurrence, or %NULL if not found.
|
|
10007
10007
|
*/
|
|
10008
|
-
function strrstr(haystack: string
|
|
10008
|
+
function strrstr(haystack: string, needle: string): string | null
|
|
10009
10009
|
/**
|
|
10010
10010
|
* Searches the string `haystack` for the last occurrence
|
|
10011
10011
|
* of the string `needle,` limiting the length of the search
|
|
@@ -10015,7 +10015,7 @@ function strrstr(haystack: string | null, needle: string | null): string | null
|
|
|
10015
10015
|
* @param needle the nul-terminated string to search for
|
|
10016
10016
|
* @returns a pointer to the found occurrence, or %NULL if not found.
|
|
10017
10017
|
*/
|
|
10018
|
-
function strrstr_len(haystack: string
|
|
10018
|
+
function strrstr_len(haystack: string, haystack_len: number, needle: string): string | null
|
|
10019
10019
|
/**
|
|
10020
10020
|
* Returns a string describing the given signal, e.g. "Segmentation fault".
|
|
10021
10021
|
* You should use this function in preference to strsignal(), because it
|
|
@@ -10024,7 +10024,7 @@ function strrstr_len(haystack: string | null, haystack_len: number, needle: stri
|
|
|
10024
10024
|
* @param signum the signal number. See the `signal` documentation
|
|
10025
10025
|
* @returns a UTF-8 string describing the signal. If the signal is unknown, it returns "unknown signal (<signum>)".
|
|
10026
10026
|
*/
|
|
10027
|
-
function strsignal(signum: number): string
|
|
10027
|
+
function strsignal(signum: number): string
|
|
10028
10028
|
/**
|
|
10029
10029
|
* Splits a string into a maximum of `max_tokens` pieces, using the given
|
|
10030
10030
|
* `delimiter`. If `max_tokens` is reached, the remainder of `string` is
|
|
@@ -10045,7 +10045,7 @@ function strsignal(signum: number): string | null
|
|
|
10045
10045
|
* @param max_tokens the maximum number of pieces to split `string` into. If this is less than 1, the string is split completely.
|
|
10046
10046
|
* @returns a newly-allocated %NULL-terminated array of strings. Use g_strfreev() to free it.
|
|
10047
10047
|
*/
|
|
10048
|
-
function strsplit(string: string
|
|
10048
|
+
function strsplit(string: string, delimiter: string, max_tokens: number): string[]
|
|
10049
10049
|
/**
|
|
10050
10050
|
* Splits `string` into a number of tokens not containing any of the characters
|
|
10051
10051
|
* in `delimiter`. A token is the (possibly empty) longest string that does not
|
|
@@ -10073,7 +10073,7 @@ function strsplit(string: string | null, delimiter: string | null, max_tokens: n
|
|
|
10073
10073
|
* @param max_tokens The maximum number of tokens to split `string` into. If this is less than 1, the string is split completely
|
|
10074
10074
|
* @returns a newly-allocated %NULL-terminated array of strings. Use g_strfreev() to free it.
|
|
10075
10075
|
*/
|
|
10076
|
-
function strsplit_set(string: string
|
|
10076
|
+
function strsplit_set(string: string, delimiters: string, max_tokens: number): string[]
|
|
10077
10077
|
/**
|
|
10078
10078
|
* Searches the string `haystack` for the first occurrence
|
|
10079
10079
|
* of the string `needle,` limiting the length of the search
|
|
@@ -10083,7 +10083,7 @@ function strsplit_set(string: string | null, delimiters: string | null, max_toke
|
|
|
10083
10083
|
* @param needle the string to search for
|
|
10084
10084
|
* @returns a pointer to the found occurrence, or %NULL if not found.
|
|
10085
10085
|
*/
|
|
10086
|
-
function strstr_len(haystack: string
|
|
10086
|
+
function strstr_len(haystack: string, haystack_len: number, needle: string): string | null
|
|
10087
10087
|
/**
|
|
10088
10088
|
* Converts a string to a #gdouble value.
|
|
10089
10089
|
* It calls the standard strtod() function to handle the conversion, but
|
|
@@ -10099,7 +10099,7 @@ function strstr_len(haystack: string | null, haystack_len: number, needle: strin
|
|
|
10099
10099
|
* @param nptr the string to convert to a numeric value.
|
|
10100
10100
|
* @returns the #gdouble value.
|
|
10101
10101
|
*/
|
|
10102
|
-
function strtod(nptr: string
|
|
10102
|
+
function strtod(nptr: string): [ /* returnType */ number, /* endptr */ string ]
|
|
10103
10103
|
/**
|
|
10104
10104
|
* Converts a string to upper case.
|
|
10105
10105
|
* @param string the string to convert
|
|
@@ -10112,7 +10112,7 @@ function strup(string: string | null): string | null
|
|
|
10112
10112
|
* @param str a string
|
|
10113
10113
|
* @returns %TRUE if @str is an element of @strv, according to g_str_equal().
|
|
10114
10114
|
*/
|
|
10115
|
-
function strv_contains(strv: string
|
|
10115
|
+
function strv_contains(strv: string, str: string): boolean
|
|
10116
10116
|
/**
|
|
10117
10117
|
* Checks if `strv1` and `strv2` contain exactly the same elements in exactly the
|
|
10118
10118
|
* same order. Elements are compared using g_str_equal(). To match independently
|
|
@@ -10124,7 +10124,7 @@ function strv_contains(strv: string | null, str: string | null): boolean
|
|
|
10124
10124
|
* @param strv2 another %NULL-terminated array of strings
|
|
10125
10125
|
* @returns %TRUE if @strv1 and @strv2 are equal
|
|
10126
10126
|
*/
|
|
10127
|
-
function strv_equal(strv1: string
|
|
10127
|
+
function strv_equal(strv1: string, strv2: string): boolean
|
|
10128
10128
|
function strv_get_type(): GObject.GType
|
|
10129
10129
|
/**
|
|
10130
10130
|
* Returns the length of the given %NULL-terminated
|
|
@@ -10151,7 +10151,7 @@ function strv_length(str_array: string | null): number
|
|
|
10151
10151
|
* @param test_data Test data argument for the test function.
|
|
10152
10152
|
* @param test_func The test function to invoke for this test.
|
|
10153
10153
|
*/
|
|
10154
|
-
function test_add_data_func(testpath: string
|
|
10154
|
+
function test_add_data_func(testpath: string, test_data: any | null, test_func: TestDataFunc): void
|
|
10155
10155
|
/**
|
|
10156
10156
|
* Create a new test case, as with g_test_add_data_func(), but freeing
|
|
10157
10157
|
* `test_data` after the test run is complete.
|
|
@@ -10159,7 +10159,7 @@ function test_add_data_func(testpath: string | null, test_data: any | null, test
|
|
|
10159
10159
|
* @param test_data Test data argument for the test function.
|
|
10160
10160
|
* @param test_func The test function to invoke for this test.
|
|
10161
10161
|
*/
|
|
10162
|
-
function test_add_data_func_full(testpath: string
|
|
10162
|
+
function test_add_data_func_full(testpath: string, test_data: any | null, test_func: TestDataFunc): void
|
|
10163
10163
|
/**
|
|
10164
10164
|
* Create a new test case, similar to g_test_create_case(). However
|
|
10165
10165
|
* the test is assumed to use no fixture, and test suites are automatically
|
|
@@ -10176,8 +10176,8 @@ function test_add_data_func_full(testpath: string | null, test_data: any | null,
|
|
|
10176
10176
|
* @param testpath /-separated test case path name for the test.
|
|
10177
10177
|
* @param test_func The test function to invoke for this test.
|
|
10178
10178
|
*/
|
|
10179
|
-
function test_add_func(testpath: string
|
|
10180
|
-
function test_assert_expected_messages_internal(domain: string
|
|
10179
|
+
function test_add_func(testpath: string, test_func: TestFunc): void
|
|
10180
|
+
function test_assert_expected_messages_internal(domain: string, file: string, line: number, func: string): void
|
|
10181
10181
|
/**
|
|
10182
10182
|
* This function adds a message to test reports that
|
|
10183
10183
|
* associates a bug URI with a test case.
|
|
@@ -10191,7 +10191,7 @@ function test_assert_expected_messages_internal(domain: string | null, file: str
|
|
|
10191
10191
|
* is already a valid URI.
|
|
10192
10192
|
* @param bug_uri_snippet Bug specific bug tracker URI or URI portion.
|
|
10193
10193
|
*/
|
|
10194
|
-
function test_bug(bug_uri_snippet: string
|
|
10194
|
+
function test_bug(bug_uri_snippet: string): void
|
|
10195
10195
|
/**
|
|
10196
10196
|
* Specify the base URI for bug reports.
|
|
10197
10197
|
*
|
|
@@ -10209,7 +10209,7 @@ function test_bug(bug_uri_snippet: string | null): void
|
|
|
10209
10209
|
* from the value provided by g_test_bug().
|
|
10210
10210
|
* @param uri_pattern the base pattern for bug URIs
|
|
10211
10211
|
*/
|
|
10212
|
-
function test_bug_base(uri_pattern: string
|
|
10212
|
+
function test_bug_base(uri_pattern: string): void
|
|
10213
10213
|
/**
|
|
10214
10214
|
* Attempt to disable system crash reporting infrastructure.
|
|
10215
10215
|
*
|
|
@@ -10259,7 +10259,7 @@ function test_disable_crash_reporting(): void
|
|
|
10259
10259
|
* @param log_level the log level of the message
|
|
10260
10260
|
* @param pattern a glob-style [pattern][glib-Glob-style-pattern-matching]
|
|
10261
10261
|
*/
|
|
10262
|
-
function test_expect_message(log_domain: string | null, log_level: LogLevelFlags, pattern: string
|
|
10262
|
+
function test_expect_message(log_domain: string | null, log_level: LogLevelFlags, pattern: string): void
|
|
10263
10263
|
/**
|
|
10264
10264
|
* Indicates that a test failed. This function can be called
|
|
10265
10265
|
* multiple times from the same test. You can use this function
|
|
@@ -10317,7 +10317,7 @@ function test_get_dir(file_type: TestFileType): string
|
|
|
10317
10317
|
* Note that this is a test path, not a file system path.
|
|
10318
10318
|
* @returns the test path for the test currently being run
|
|
10319
10319
|
*/
|
|
10320
|
-
function test_get_path(): string
|
|
10320
|
+
function test_get_path(): string
|
|
10321
10321
|
/**
|
|
10322
10322
|
* Indicates that a test failed because of some incomplete
|
|
10323
10323
|
* functionality. This function can be called multiple times
|
|
@@ -10332,7 +10332,7 @@ function test_get_path(): string | null
|
|
|
10332
10332
|
* @param msg explanation
|
|
10333
10333
|
*/
|
|
10334
10334
|
function test_incomplete(msg: string | null): void
|
|
10335
|
-
function test_log_type_name(log_type: TestLogType): string
|
|
10335
|
+
function test_log_type_name(log_type: TestLogType): string
|
|
10336
10336
|
/**
|
|
10337
10337
|
* This function enqueus a callback `destroy_func` to be executed
|
|
10338
10338
|
* during the next test case teardown phase. This is most useful
|
|
@@ -10490,7 +10490,7 @@ function test_subprocess(): boolean
|
|
|
10490
10490
|
*
|
|
10491
10491
|
* @param summary One or two sentences summarising what the test checks, and how it checks it.
|
|
10492
10492
|
*/
|
|
10493
|
-
function test_summary(summary: string
|
|
10493
|
+
function test_summary(summary: string): void
|
|
10494
10494
|
/**
|
|
10495
10495
|
* Get the number of seconds since the last start of the timer with
|
|
10496
10496
|
* g_test_timer_start().
|
|
@@ -10507,7 +10507,7 @@ function test_timer_last(): number
|
|
|
10507
10507
|
* to be done. Call this function again to restart the timer.
|
|
10508
10508
|
*/
|
|
10509
10509
|
function test_timer_start(): void
|
|
10510
|
-
function test_trap_assertions(domain: string
|
|
10510
|
+
function test_trap_assertions(domain: string, file: string, line: number, func: string, assertion_flags: number, pattern: string): void
|
|
10511
10511
|
/**
|
|
10512
10512
|
* Fork the current test program to execute a test case that might
|
|
10513
10513
|
* not return or that might abort.
|
|
@@ -10737,7 +10737,7 @@ function thread_yield(): void
|
|
|
10737
10737
|
* @param iso_date an ISO 8601 encoded date string
|
|
10738
10738
|
* @returns %TRUE if the conversion was successful.
|
|
10739
10739
|
*/
|
|
10740
|
-
function time_val_from_iso8601(iso_date: string
|
|
10740
|
+
function time_val_from_iso8601(iso_date: string): [ /* returnType */ boolean, /* time_ */ TimeVal ]
|
|
10741
10741
|
/**
|
|
10742
10742
|
* Sets a function to be called at regular intervals, with the given
|
|
10743
10743
|
* priority. The function is called repeatedly until it returns
|
|
@@ -11226,7 +11226,7 @@ function unichar_iszerowidth(c: string): boolean
|
|
|
11226
11226
|
* @param c a Unicode character code
|
|
11227
11227
|
* @returns number of bytes written
|
|
11228
11228
|
*/
|
|
11229
|
-
function unichar_to_utf8(c: string): [ /* returnType */ number, /* outbuf */ string
|
|
11229
|
+
function unichar_to_utf8(c: string): [ /* returnType */ number, /* outbuf */ string ]
|
|
11230
11230
|
/**
|
|
11231
11231
|
* Converts a character to lower case.
|
|
11232
11232
|
* @param c a Unicode character.
|
|
@@ -11352,7 +11352,7 @@ function unix_fd_source_new(fd: number, condition: IOCondition): Source
|
|
|
11352
11352
|
* @param user_name the username to get the passwd file entry for
|
|
11353
11353
|
* @returns passwd entry, or %NULL on error; free the returned value with g_free()
|
|
11354
11354
|
*/
|
|
11355
|
-
function unix_get_passwd_entry(user_name: string
|
|
11355
|
+
function unix_get_passwd_entry(user_name: string): any | null
|
|
11356
11356
|
/**
|
|
11357
11357
|
* Similar to the UNIX pipe() call, but on modern systems like Linux
|
|
11358
11358
|
* uses the pipe2() system call, which atomically creates a pipe with
|
|
@@ -11471,7 +11471,7 @@ function unsetenv(variable: string): void
|
|
|
11471
11471
|
* @param fragment the fragment, or %NULL
|
|
11472
11472
|
* @returns a new #GUri
|
|
11473
11473
|
*/
|
|
11474
|
-
function uri_build(flags: UriFlags, scheme: string
|
|
11474
|
+
function uri_build(flags: UriFlags, scheme: string, userinfo: string | null, host: string | null, port: number, path: string, query: string | null, fragment: string | null): Uri
|
|
11475
11475
|
/**
|
|
11476
11476
|
* Creates a new #GUri from the given components according to `flags`
|
|
11477
11477
|
* (%G_URI_FLAGS_HAS_PASSWORD is added unconditionally). The `flags` must be
|
|
@@ -11493,7 +11493,7 @@ function uri_build(flags: UriFlags, scheme: string | null, userinfo: string | nu
|
|
|
11493
11493
|
* @param fragment the fragment, or %NULL
|
|
11494
11494
|
* @returns a new #GUri
|
|
11495
11495
|
*/
|
|
11496
|
-
function uri_build_with_user(flags: UriFlags, scheme: string
|
|
11496
|
+
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
|
|
11497
11497
|
function uri_error_quark(): Quark
|
|
11498
11498
|
/**
|
|
11499
11499
|
* Escapes arbitrary data for use in a URI.
|
|
@@ -11526,7 +11526,7 @@ function uri_escape_bytes(unescaped: Uint8Array, reserved_chars_allowed: string
|
|
|
11526
11526
|
* @param allow_utf8 %TRUE if the result can include UTF-8 characters.
|
|
11527
11527
|
* @returns an escaped version of @unescaped. The returned string should be freed when no longer needed.
|
|
11528
11528
|
*/
|
|
11529
|
-
function uri_escape_string(unescaped: string
|
|
11529
|
+
function uri_escape_string(unescaped: string, reserved_chars_allowed: string | null, allow_utf8: boolean): string | null
|
|
11530
11530
|
/**
|
|
11531
11531
|
* Parses `uri_string` according to `flags,` to determine whether it is a valid
|
|
11532
11532
|
* [absolute URI][relative-absolute-uris], i.e. it does not need to be resolved
|
|
@@ -11540,7 +11540,7 @@ function uri_escape_string(unescaped: string | null, reserved_chars_allowed: str
|
|
|
11540
11540
|
* @param flags flags for parsing `uri_string`
|
|
11541
11541
|
* @returns %TRUE if @uri_string is a valid absolute URI, %FALSE on error.
|
|
11542
11542
|
*/
|
|
11543
|
-
function uri_is_valid(uri_string: string
|
|
11543
|
+
function uri_is_valid(uri_string: string, flags: UriFlags): boolean
|
|
11544
11544
|
/**
|
|
11545
11545
|
* Joins the given components together according to `flags` to create
|
|
11546
11546
|
* an absolute URI string. `path` may not be %NULL (though it may be the empty
|
|
@@ -11566,7 +11566,7 @@ function uri_is_valid(uri_string: string | null, flags: UriFlags): boolean
|
|
|
11566
11566
|
* @param fragment the fragment, or %NULL
|
|
11567
11567
|
* @returns an absolute URI string
|
|
11568
11568
|
*/
|
|
11569
|
-
function uri_join(flags: UriFlags, scheme: string | null, userinfo: string | null, host: string | null, port: number, path: string
|
|
11569
|
+
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
|
|
11570
11570
|
/**
|
|
11571
11571
|
* Joins the given components together according to `flags` to create
|
|
11572
11572
|
* an absolute URI string. `path` may not be %NULL (though it may be the empty
|
|
@@ -11589,7 +11589,7 @@ function uri_join(flags: UriFlags, scheme: string | null, userinfo: string | nul
|
|
|
11589
11589
|
* @param fragment the fragment, or %NULL
|
|
11590
11590
|
* @returns an absolute URI string
|
|
11591
11591
|
*/
|
|
11592
|
-
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
|
|
11592
|
+
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
|
|
11593
11593
|
/**
|
|
11594
11594
|
* Splits an URI list conforming to the text/uri-list
|
|
11595
11595
|
* mime type defined in RFC 2483 into individual URIs,
|
|
@@ -11597,7 +11597,7 @@ function uri_join_with_user(flags: UriFlags, scheme: string | null, user: string
|
|
|
11597
11597
|
* @param uri_list an URI list
|
|
11598
11598
|
* @returns a newly allocated %NULL-terminated list of strings holding the individual URIs. The array should be freed with g_strfreev().
|
|
11599
11599
|
*/
|
|
11600
|
-
function uri_list_extract_uris(uri_list: string
|
|
11600
|
+
function uri_list_extract_uris(uri_list: string): string[]
|
|
11601
11601
|
/**
|
|
11602
11602
|
* Parses `uri_string` according to `flags`. If the result is not a
|
|
11603
11603
|
* valid [absolute URI][relative-absolute-uris], it will be discarded, and an
|
|
@@ -11606,7 +11606,7 @@ function uri_list_extract_uris(uri_list: string | null): string[]
|
|
|
11606
11606
|
* @param flags flags describing how to parse `uri_string`
|
|
11607
11607
|
* @returns a new #GUri, or NULL on error.
|
|
11608
11608
|
*/
|
|
11609
|
-
function uri_parse(uri_string: string
|
|
11609
|
+
function uri_parse(uri_string: string, flags: UriFlags): Uri
|
|
11610
11610
|
/**
|
|
11611
11611
|
* Many URI schemes include one or more attribute/value pairs as part of the URI
|
|
11612
11612
|
* value. This method can be used to parse them into a hash table. When an
|
|
@@ -11638,7 +11638,7 @@ function uri_parse(uri_string: string | null, flags: UriFlags): Uri
|
|
|
11638
11638
|
* @param flags flags to modify the way the parameters are handled.
|
|
11639
11639
|
* @returns A hash table of attribute/value pairs, with both names and values fully-decoded; or %NULL on error.
|
|
11640
11640
|
*/
|
|
11641
|
-
function uri_parse_params(params: string
|
|
11641
|
+
function uri_parse_params(params: string, length: number, separators: string, flags: UriParamsFlags): HashTable
|
|
11642
11642
|
/**
|
|
11643
11643
|
* Gets the scheme portion of a URI string.
|
|
11644
11644
|
* [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) decodes the scheme
|
|
@@ -11652,7 +11652,7 @@ function uri_parse_params(params: string | null, length: number, separators: str
|
|
|
11652
11652
|
* @param uri a valid URI.
|
|
11653
11653
|
* @returns The ‘scheme’ component of the URI, or %NULL on error. The returned string should be freed when no longer needed.
|
|
11654
11654
|
*/
|
|
11655
|
-
function uri_parse_scheme(uri: string
|
|
11655
|
+
function uri_parse_scheme(uri: string): string | null
|
|
11656
11656
|
/**
|
|
11657
11657
|
* Gets the scheme portion of a URI string.
|
|
11658
11658
|
* [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) decodes the scheme
|
|
@@ -11669,7 +11669,7 @@ function uri_parse_scheme(uri: string | null): string | null
|
|
|
11669
11669
|
* @param uri a valid URI.
|
|
11670
11670
|
* @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.
|
|
11671
11671
|
*/
|
|
11672
|
-
function uri_peek_scheme(uri: string
|
|
11672
|
+
function uri_peek_scheme(uri: string): string | null
|
|
11673
11673
|
/**
|
|
11674
11674
|
* Parses `uri_ref` according to `flags` and, if it is a
|
|
11675
11675
|
* [relative URI][relative-absolute-uris], resolves it relative to
|
|
@@ -11683,7 +11683,7 @@ function uri_peek_scheme(uri: string | null): string | null
|
|
|
11683
11683
|
* @param flags flags describing how to parse `uri_ref`
|
|
11684
11684
|
* @returns the resolved URI string, or NULL on error.
|
|
11685
11685
|
*/
|
|
11686
|
-
function uri_resolve_relative(base_uri_string: string | null, uri_ref: string
|
|
11686
|
+
function uri_resolve_relative(base_uri_string: string | null, uri_ref: string, flags: UriFlags): string | null
|
|
11687
11687
|
/**
|
|
11688
11688
|
* Parses `uri_ref` (which can be an
|
|
11689
11689
|
* [absolute or relative URI][relative-absolute-uris]) according to `flags,` and
|
|
@@ -11705,7 +11705,7 @@ function uri_resolve_relative(base_uri_string: string | null, uri_ref: string |
|
|
|
11705
11705
|
* @param flags flags for parsing `uri_ref`
|
|
11706
11706
|
* @returns %TRUE if @uri_ref parsed successfully, %FALSE on error.
|
|
11707
11707
|
*/
|
|
11708
|
-
function uri_split(uri_ref: string
|
|
11708
|
+
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 ]
|
|
11709
11709
|
/**
|
|
11710
11710
|
* Parses `uri_string` (which must be an [absolute URI][relative-absolute-uris])
|
|
11711
11711
|
* according to `flags,` and returns the pieces relevant to connecting to a host.
|
|
@@ -11717,7 +11717,7 @@ function uri_split(uri_ref: string | null, flags: UriFlags): [ /* returnType */
|
|
|
11717
11717
|
* @param flags flags for parsing `uri_string`
|
|
11718
11718
|
* @returns %TRUE if @uri_string parsed successfully, %FALSE on error.
|
|
11719
11719
|
*/
|
|
11720
|
-
function uri_split_network(uri_string: string
|
|
11720
|
+
function uri_split_network(uri_string: string, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* host */ string | null, /* port */ number ]
|
|
11721
11721
|
/**
|
|
11722
11722
|
* Parses `uri_ref` (which can be an
|
|
11723
11723
|
* [absolute or relative URI][relative-absolute-uris]) according to `flags,` and
|
|
@@ -11734,7 +11734,7 @@ function uri_split_network(uri_string: string | null, flags: UriFlags): [ /* ret
|
|
|
11734
11734
|
* @param flags flags for parsing `uri_ref`
|
|
11735
11735
|
* @returns %TRUE if @uri_ref parsed successfully, %FALSE on error.
|
|
11736
11736
|
*/
|
|
11737
|
-
function uri_split_with_user(uri_ref: string
|
|
11737
|
+
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 ]
|
|
11738
11738
|
/**
|
|
11739
11739
|
* Unescapes a segment of an escaped string as binary data.
|
|
11740
11740
|
*
|
|
@@ -11751,7 +11751,7 @@ function uri_split_with_user(uri_ref: string | null, flags: UriFlags): [ /* retu
|
|
|
11751
11751
|
* @param illegal_characters a string of illegal characters not to be allowed, or %NULL.
|
|
11752
11752
|
* @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.
|
|
11753
11753
|
*/
|
|
11754
|
-
function uri_unescape_bytes(escaped_string: string
|
|
11754
|
+
function uri_unescape_bytes(escaped_string: string, length: number, illegal_characters: string | null): Bytes
|
|
11755
11755
|
/**
|
|
11756
11756
|
* Unescapes a segment of an escaped string.
|
|
11757
11757
|
*
|
|
@@ -11781,7 +11781,7 @@ function uri_unescape_segment(escaped_string: string | null, escaped_string_end:
|
|
|
11781
11781
|
* @param illegal_characters a string of illegal characters not to be allowed, or %NULL.
|
|
11782
11782
|
* @returns an unescaped version of @escaped_string. The returned string should be freed when no longer needed.
|
|
11783
11783
|
*/
|
|
11784
|
-
function uri_unescape_string(escaped_string: string
|
|
11784
|
+
function uri_unescape_string(escaped_string: string, illegal_characters: string | null): string | null
|
|
11785
11785
|
/**
|
|
11786
11786
|
* Pauses the current thread for the given number of microseconds.
|
|
11787
11787
|
*
|
|
@@ -11833,7 +11833,7 @@ function utf16_to_utf8(str: number[]): [ /* returnType */ string | null, /* item
|
|
|
11833
11833
|
* @param len length of `str,` in bytes, or -1 if `str` is nul-terminated.
|
|
11834
11834
|
* @returns a newly allocated string, that is a case independent form of @str.
|
|
11835
11835
|
*/
|
|
11836
|
-
function utf8_casefold(str: string
|
|
11836
|
+
function utf8_casefold(str: string, len: number): string | null
|
|
11837
11837
|
/**
|
|
11838
11838
|
* Compares two strings for ordering using the linguistically
|
|
11839
11839
|
* correct rules for the [current locale][setlocale].
|
|
@@ -11849,7 +11849,7 @@ function utf8_casefold(str: string | null, len: number): string | null
|
|
|
11849
11849
|
* @param str2 a UTF-8 encoded string
|
|
11850
11850
|
* @returns < 0 if @str1 compares before @str2, 0 if they compare equal, > 0 if @str1 compares after @str2.
|
|
11851
11851
|
*/
|
|
11852
|
-
function utf8_collate(str1: string
|
|
11852
|
+
function utf8_collate(str1: string, str2: string): number
|
|
11853
11853
|
/**
|
|
11854
11854
|
* Converts a string into a collation key that can be compared
|
|
11855
11855
|
* with other collation keys produced by the same function using
|
|
@@ -11864,7 +11864,7 @@ function utf8_collate(str1: string | null, str2: string | null): number
|
|
|
11864
11864
|
* @param len length of `str,` in bytes, or -1 if `str` is nul-terminated.
|
|
11865
11865
|
* @returns a newly allocated string. This string should be freed with g_free() when you are done with it.
|
|
11866
11866
|
*/
|
|
11867
|
-
function utf8_collate_key(str: string
|
|
11867
|
+
function utf8_collate_key(str: string, len: number): string | null
|
|
11868
11868
|
/**
|
|
11869
11869
|
* Converts a string into a collation key that can be compared
|
|
11870
11870
|
* with other collation keys produced by the same function using strcmp().
|
|
@@ -11881,7 +11881,7 @@ function utf8_collate_key(str: string | null, len: number): string | null
|
|
|
11881
11881
|
* @param len length of `str,` in bytes, or -1 if `str` is nul-terminated.
|
|
11882
11882
|
* @returns a newly allocated string. This string should be freed with g_free() when you are done with it.
|
|
11883
11883
|
*/
|
|
11884
|
-
function utf8_collate_key_for_filename(str: string
|
|
11884
|
+
function utf8_collate_key_for_filename(str: string, len: number): string | null
|
|
11885
11885
|
/**
|
|
11886
11886
|
* Finds the start of the next UTF-8 character in the string after `p`.
|
|
11887
11887
|
*
|
|
@@ -11897,7 +11897,7 @@ function utf8_collate_key_for_filename(str: string | null, len: number): string
|
|
|
11897
11897
|
* @param end a pointer to the byte following the end of the string, or %NULL to indicate that the string is nul-terminated
|
|
11898
11898
|
* @returns a pointer to the found character or %NULL if @end is set and is reached
|
|
11899
11899
|
*/
|
|
11900
|
-
function utf8_find_next_char(p: string
|
|
11900
|
+
function utf8_find_next_char(p: string, end: string | null): string | null
|
|
11901
11901
|
/**
|
|
11902
11902
|
* Given a position `p` with a UTF-8 encoded string `str,` find the start
|
|
11903
11903
|
* of the previous UTF-8 character starting before `p`. Returns %NULL if no
|
|
@@ -11910,7 +11910,7 @@ function utf8_find_next_char(p: string | null, end: string | null): string | nul
|
|
|
11910
11910
|
* @param p pointer to some position within `str`
|
|
11911
11911
|
* @returns a pointer to the found character or %NULL.
|
|
11912
11912
|
*/
|
|
11913
|
-
function utf8_find_prev_char(str: string
|
|
11913
|
+
function utf8_find_prev_char(str: string, p: string): string | null
|
|
11914
11914
|
/**
|
|
11915
11915
|
* Converts a sequence of bytes encoded as UTF-8 to a Unicode character.
|
|
11916
11916
|
*
|
|
@@ -11921,7 +11921,7 @@ function utf8_find_prev_char(str: string | null, p: string | null): string | nul
|
|
|
11921
11921
|
* @param p a pointer to Unicode character encoded as UTF-8
|
|
11922
11922
|
* @returns the resulting character
|
|
11923
11923
|
*/
|
|
11924
|
-
function utf8_get_char(p: string
|
|
11924
|
+
function utf8_get_char(p: string): string
|
|
11925
11925
|
/**
|
|
11926
11926
|
* Convert a sequence of bytes encoded as UTF-8 to a Unicode character.
|
|
11927
11927
|
* This function checks for incomplete characters, for invalid characters
|
|
@@ -11935,7 +11935,7 @@ function utf8_get_char(p: string | null): string
|
|
|
11935
11935
|
* @param max_len the maximum number of bytes to read, or -1 if `p` is nul-terminated
|
|
11936
11936
|
* @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.
|
|
11937
11937
|
*/
|
|
11938
|
-
function utf8_get_char_validated(p: string
|
|
11938
|
+
function utf8_get_char_validated(p: string, max_len: number): string
|
|
11939
11939
|
/**
|
|
11940
11940
|
* If the provided string is valid UTF-8, return a copy of it. If not,
|
|
11941
11941
|
* return a copy in which bytes that could not be interpreted as valid Unicode
|
|
@@ -11950,7 +11950,7 @@ function utf8_get_char_validated(p: string | null, max_len: number): string
|
|
|
11950
11950
|
* @param len the maximum length of `str` to use, in bytes. If `len` < 0, then the string is nul-terminated.
|
|
11951
11951
|
* @returns a valid UTF-8 string whose content resembles @str
|
|
11952
11952
|
*/
|
|
11953
|
-
function utf8_make_valid(str: string
|
|
11953
|
+
function utf8_make_valid(str: string, len: number): string | null
|
|
11954
11954
|
/**
|
|
11955
11955
|
* Converts a string into canonical form, standardizing
|
|
11956
11956
|
* such issues as whether a character with an accent
|
|
@@ -11982,7 +11982,7 @@ function utf8_make_valid(str: string | null, len: number): string | null
|
|
|
11982
11982
|
* @param mode the type of normalization to perform.
|
|
11983
11983
|
* @returns a newly allocated string, that is the normalized form of @str, or %NULL if @str is not valid UTF-8.
|
|
11984
11984
|
*/
|
|
11985
|
-
function utf8_normalize(str: string
|
|
11985
|
+
function utf8_normalize(str: string, len: number, mode: NormalizeMode): string | null
|
|
11986
11986
|
/**
|
|
11987
11987
|
* Converts from an integer character offset to a pointer to a position
|
|
11988
11988
|
* within the string.
|
|
@@ -12001,7 +12001,7 @@ function utf8_normalize(str: string | null, len: number, mode: NormalizeMode): s
|
|
|
12001
12001
|
* @param offset a character offset within `str`
|
|
12002
12002
|
* @returns the resulting pointer
|
|
12003
12003
|
*/
|
|
12004
|
-
function utf8_offset_to_pointer(str: string
|
|
12004
|
+
function utf8_offset_to_pointer(str: string, offset: number): string | null
|
|
12005
12005
|
/**
|
|
12006
12006
|
* Converts from a pointer to position within a string to an integer
|
|
12007
12007
|
* character offset.
|
|
@@ -12012,7 +12012,7 @@ function utf8_offset_to_pointer(str: string | null, offset: number): string | nu
|
|
|
12012
12012
|
* @param pos a pointer to a position within `str`
|
|
12013
12013
|
* @returns the resulting character offset
|
|
12014
12014
|
*/
|
|
12015
|
-
function utf8_pointer_to_offset(str: string
|
|
12015
|
+
function utf8_pointer_to_offset(str: string, pos: string): number
|
|
12016
12016
|
/**
|
|
12017
12017
|
* Finds the previous UTF-8 character in the string before `p`.
|
|
12018
12018
|
*
|
|
@@ -12023,7 +12023,7 @@ function utf8_pointer_to_offset(str: string | null, pos: string | null): number
|
|
|
12023
12023
|
* @param p a pointer to a position within a UTF-8 encoded string
|
|
12024
12024
|
* @returns a pointer to the found character
|
|
12025
12025
|
*/
|
|
12026
|
-
function utf8_prev_char(p: string
|
|
12026
|
+
function utf8_prev_char(p: string): string | null
|
|
12027
12027
|
/**
|
|
12028
12028
|
* Finds the leftmost occurrence of the given Unicode character
|
|
12029
12029
|
* in a UTF-8 encoded string, while limiting the search to `len` bytes.
|
|
@@ -12033,7 +12033,7 @@ function utf8_prev_char(p: string | null): string | null
|
|
|
12033
12033
|
* @param c a Unicode character
|
|
12034
12034
|
* @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.
|
|
12035
12035
|
*/
|
|
12036
|
-
function utf8_strchr(p: string
|
|
12036
|
+
function utf8_strchr(p: string, len: number, c: string): string | null
|
|
12037
12037
|
/**
|
|
12038
12038
|
* Converts all Unicode characters in the string that have a case
|
|
12039
12039
|
* to lowercase. The exact manner that this is done depends
|
|
@@ -12043,7 +12043,7 @@ function utf8_strchr(p: string | null, len: number, c: string): string | null
|
|
|
12043
12043
|
* @param len length of `str,` in bytes, or -1 if `str` is nul-terminated.
|
|
12044
12044
|
* @returns a newly allocated string, with all characters converted to lowercase.
|
|
12045
12045
|
*/
|
|
12046
|
-
function utf8_strdown(str: string
|
|
12046
|
+
function utf8_strdown(str: string, len: number): string | null
|
|
12047
12047
|
/**
|
|
12048
12048
|
* Computes the length of the string in characters, not including
|
|
12049
12049
|
* the terminating nul character. If the `max'`th byte falls in the
|
|
@@ -12052,7 +12052,7 @@ function utf8_strdown(str: string | null, len: number): string | null
|
|
|
12052
12052
|
* @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
|
|
12053
12053
|
* @returns the length of the string in characters
|
|
12054
12054
|
*/
|
|
12055
|
-
function utf8_strlen(p: string
|
|
12055
|
+
function utf8_strlen(p: string, max: number): number
|
|
12056
12056
|
/**
|
|
12057
12057
|
* Like the standard C strncpy() function, but copies a given number
|
|
12058
12058
|
* of characters instead of a given number of bytes. The `src` string
|
|
@@ -12066,7 +12066,7 @@ function utf8_strlen(p: string | null, max: number): number
|
|
|
12066
12066
|
* @param n character count
|
|
12067
12067
|
* @returns @dest
|
|
12068
12068
|
*/
|
|
12069
|
-
function utf8_strncpy(dest: string | null, src: string
|
|
12069
|
+
function utf8_strncpy(dest: string | null, src: string, n: number): string | null
|
|
12070
12070
|
/**
|
|
12071
12071
|
* Find the rightmost occurrence of the given Unicode character
|
|
12072
12072
|
* in a UTF-8 encoded string, while limiting the search to `len` bytes.
|
|
@@ -12076,7 +12076,7 @@ function utf8_strncpy(dest: string | null, src: string | null, n: number): strin
|
|
|
12076
12076
|
* @param c a Unicode character
|
|
12077
12077
|
* @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.
|
|
12078
12078
|
*/
|
|
12079
|
-
function utf8_strrchr(p: string
|
|
12079
|
+
function utf8_strrchr(p: string, len: number, c: string): string | null
|
|
12080
12080
|
/**
|
|
12081
12081
|
* Reverses a UTF-8 string. `str` must be valid UTF-8 encoded text.
|
|
12082
12082
|
* (Use g_utf8_validate() on all text before trying to use UTF-8
|
|
@@ -12095,7 +12095,7 @@ function utf8_strrchr(p: string | null, len: number, c: string): string | null
|
|
|
12095
12095
|
* @param len the maximum length of `str` to use, in bytes. If `len` < 0, then the string is nul-terminated.
|
|
12096
12096
|
* @returns a newly-allocated string which is the reverse of @str
|
|
12097
12097
|
*/
|
|
12098
|
-
function utf8_strreverse(str: string
|
|
12098
|
+
function utf8_strreverse(str: string, len: number): string | null
|
|
12099
12099
|
/**
|
|
12100
12100
|
* Converts all Unicode characters in the string that have a case
|
|
12101
12101
|
* to uppercase. The exact manner that this is done depends
|
|
@@ -12106,7 +12106,7 @@ function utf8_strreverse(str: string | null, len: number): string | null
|
|
|
12106
12106
|
* @param len length of `str,` in bytes, or -1 if `str` is nul-terminated.
|
|
12107
12107
|
* @returns a newly allocated string, with all characters converted to uppercase.
|
|
12108
12108
|
*/
|
|
12109
|
-
function utf8_strup(str: string
|
|
12109
|
+
function utf8_strup(str: string, len: number): string | null
|
|
12110
12110
|
/**
|
|
12111
12111
|
* Copies a substring out of a UTF-8 encoded string.
|
|
12112
12112
|
* The substring will contain `end_pos` - `start_pos` characters.
|
|
@@ -12118,7 +12118,7 @@ function utf8_strup(str: string | null, len: number): string | null
|
|
|
12118
12118
|
* @param end_pos another character offset within `str,` or `-1` to indicate the end of the string
|
|
12119
12119
|
* @returns a newly allocated copy of the requested substring. Free with g_free() when no longer needed.
|
|
12120
12120
|
*/
|
|
12121
|
-
function utf8_substring(str: string
|
|
12121
|
+
function utf8_substring(str: string, start_pos: number, end_pos: number): string | null
|
|
12122
12122
|
/**
|
|
12123
12123
|
* Convert a string from UTF-8 to a 32-bit fixed width
|
|
12124
12124
|
* representation as UCS-4. A trailing 0 character will be added to the
|
|
@@ -12127,7 +12127,7 @@ function utf8_substring(str: string | null, start_pos: number, end_pos: number):
|
|
|
12127
12127
|
* @param len the maximum length of `str` to use, in bytes. If `len` < 0, then the string is nul-terminated.
|
|
12128
12128
|
* @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.
|
|
12129
12129
|
*/
|
|
12130
|
-
function utf8_to_ucs4(str: string
|
|
12130
|
+
function utf8_to_ucs4(str: string, len: number): [ /* returnType */ string, /* items_read */ number, /* items_written */ number ]
|
|
12131
12131
|
/**
|
|
12132
12132
|
* Convert a string from UTF-8 to a 32-bit fixed width
|
|
12133
12133
|
* representation as UCS-4, assuming valid UTF-8 input.
|
|
@@ -12138,7 +12138,7 @@ function utf8_to_ucs4(str: string | null, len: number): [ /* returnType */ strin
|
|
|
12138
12138
|
* @param len the maximum length of `str` to use, in bytes. If `len` < 0, then the string is nul-terminated.
|
|
12139
12139
|
* @returns a pointer to a newly allocated UCS-4 string. This value must be freed with g_free().
|
|
12140
12140
|
*/
|
|
12141
|
-
function utf8_to_ucs4_fast(str: string
|
|
12141
|
+
function utf8_to_ucs4_fast(str: string, len: number): [ /* returnType */ string, /* items_written */ number ]
|
|
12142
12142
|
/**
|
|
12143
12143
|
* Convert a string from UTF-8 to UTF-16. A 0 character will be
|
|
12144
12144
|
* added to the result after the converted text.
|
|
@@ -12146,7 +12146,7 @@ function utf8_to_ucs4_fast(str: string | null, len: number): [ /* returnType */
|
|
|
12146
12146
|
* @param len the maximum length (number of bytes) of `str` to use. If `len` < 0, then the string is nul-terminated.
|
|
12147
12147
|
* @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.
|
|
12148
12148
|
*/
|
|
12149
|
-
function utf8_to_utf16(str: string
|
|
12149
|
+
function utf8_to_utf16(str: string, len: number): [ /* returnType */ number, /* items_read */ number, /* items_written */ number ]
|
|
12150
12150
|
/**
|
|
12151
12151
|
* Cuts off the middle of the string, preserving half of `truncate_length`
|
|
12152
12152
|
* characters at the beginning and half at the end.
|
|
@@ -12157,7 +12157,7 @@ function utf8_to_utf16(str: string | null, len: number): [ /* returnType */ numb
|
|
|
12157
12157
|
* @param truncate_length the new size of `string,` in characters, including the ellipsis character
|
|
12158
12158
|
* @returns a newly-allocated copy of @string ellipsized in the middle
|
|
12159
12159
|
*/
|
|
12160
|
-
function utf8_truncate_middle(string: string
|
|
12160
|
+
function utf8_truncate_middle(string: string, truncate_length: number): string | null
|
|
12161
12161
|
/**
|
|
12162
12162
|
* Validates UTF-8 encoded text. `str` is the text to validate;
|
|
12163
12163
|
* if `str` is nul-terminated, then `max_len` can be -1, otherwise
|
|
@@ -12177,7 +12177,7 @@ function utf8_truncate_middle(string: string | null, truncate_length: number): s
|
|
|
12177
12177
|
* @param str a pointer to character data
|
|
12178
12178
|
* @returns %TRUE if the text was valid UTF-8
|
|
12179
12179
|
*/
|
|
12180
|
-
function utf8_validate(str: Uint8Array): [ /* returnType */ boolean, /* end */ string
|
|
12180
|
+
function utf8_validate(str: Uint8Array): [ /* returnType */ boolean, /* end */ string ]
|
|
12181
12181
|
/**
|
|
12182
12182
|
* Validates UTF-8 encoded text.
|
|
12183
12183
|
*
|
|
@@ -12186,7 +12186,7 @@ function utf8_validate(str: Uint8Array): [ /* returnType */ boolean, /* end */ s
|
|
|
12186
12186
|
* @param str a pointer to character data
|
|
12187
12187
|
* @returns %TRUE if the text was valid UTF-8
|
|
12188
12188
|
*/
|
|
12189
|
-
function utf8_validate_len(str: Uint8Array): [ /* returnType */ boolean, /* end */ string
|
|
12189
|
+
function utf8_validate_len(str: Uint8Array): [ /* returnType */ boolean, /* end */ string ]
|
|
12190
12190
|
/**
|
|
12191
12191
|
* Parses the string `str` and verify if it is a UUID.
|
|
12192
12192
|
*
|
|
@@ -12199,7 +12199,7 @@ function utf8_validate_len(str: Uint8Array): [ /* returnType */ boolean, /* end
|
|
|
12199
12199
|
* @param str a string representing a UUID
|
|
12200
12200
|
* @returns %TRUE if @str is a valid UUID, %FALSE otherwise.
|
|
12201
12201
|
*/
|
|
12202
|
-
function uuid_string_is_valid(str: string
|
|
12202
|
+
function uuid_string_is_valid(str: string): boolean
|
|
12203
12203
|
/**
|
|
12204
12204
|
* Generates a random UUID (RFC 4122 version 4) as a string. It has the same
|
|
12205
12205
|
* randomness guarantees as #GRand, so must not be used for cryptographic
|
|
@@ -12220,7 +12220,7 @@ function variant_get_gtype(): GObject.GType
|
|
|
12220
12220
|
* @param string a normal C nul-terminated string
|
|
12221
12221
|
* @returns %TRUE if @string is a D-Bus object path
|
|
12222
12222
|
*/
|
|
12223
|
-
function variant_is_object_path(string: string
|
|
12223
|
+
function variant_is_object_path(string: string): boolean
|
|
12224
12224
|
/**
|
|
12225
12225
|
* Determines if a given string is a valid D-Bus type signature. You
|
|
12226
12226
|
* should ensure that a string is a valid D-Bus type signature before
|
|
@@ -12231,7 +12231,7 @@ function variant_is_object_path(string: string | null): boolean
|
|
|
12231
12231
|
* @param string a normal C nul-terminated string
|
|
12232
12232
|
* @returns %TRUE if @string is a D-Bus type signature
|
|
12233
12233
|
*/
|
|
12234
|
-
function variant_is_signature(string: string
|
|
12234
|
+
function variant_is_signature(string: string): boolean
|
|
12235
12235
|
/**
|
|
12236
12236
|
* Parses a #GVariant from a text representation.
|
|
12237
12237
|
*
|
|
@@ -12274,7 +12274,7 @@ function variant_is_signature(string: string | null): boolean
|
|
|
12274
12274
|
* @param endptr a location to store the end pointer, or %NULL
|
|
12275
12275
|
* @returns a non-floating reference to a #GVariant, or %NULL
|
|
12276
12276
|
*/
|
|
12277
|
-
function variant_parse(type: VariantType | null, text: string
|
|
12277
|
+
function variant_parse(type: VariantType | null, text: string, limit: string | null, endptr: string | null): Variant
|
|
12278
12278
|
/**
|
|
12279
12279
|
* Pretty-prints a message showing the context of a #GVariant parse
|
|
12280
12280
|
* error within the string for which parsing was attempted.
|
|
@@ -12313,14 +12313,14 @@ function variant_parse(type: VariantType | null, text: string | null, limit: str
|
|
|
12313
12313
|
* @param source_str the string that was given to the parser
|
|
12314
12314
|
* @returns the printed message
|
|
12315
12315
|
*/
|
|
12316
|
-
function variant_parse_error_print_context(error: Error, source_str: string
|
|
12316
|
+
function variant_parse_error_print_context(error: Error, source_str: string): string | null
|
|
12317
12317
|
function variant_parse_error_quark(): Quark
|
|
12318
12318
|
/**
|
|
12319
12319
|
* Same as g_variant_error_quark().
|
|
12320
12320
|
*/
|
|
12321
12321
|
function variant_parser_get_error_quark(): Quark
|
|
12322
|
-
function variant_type_checked_(arg0: string
|
|
12323
|
-
function variant_type_string_get_depth_(type_string: string
|
|
12322
|
+
function variant_type_checked_(arg0: string): VariantType
|
|
12323
|
+
function variant_type_string_get_depth_(type_string: string): number
|
|
12324
12324
|
/**
|
|
12325
12325
|
* Checks if `type_string` is a valid GVariant type string. This call is
|
|
12326
12326
|
* equivalent to calling g_variant_type_string_scan() and confirming
|
|
@@ -12328,7 +12328,7 @@ function variant_type_string_get_depth_(type_string: string | null): number
|
|
|
12328
12328
|
* @param type_string a pointer to any string
|
|
12329
12329
|
* @returns %TRUE if @type_string is exactly one valid type string Since 2.24
|
|
12330
12330
|
*/
|
|
12331
|
-
function variant_type_string_is_valid(type_string: string
|
|
12331
|
+
function variant_type_string_is_valid(type_string: string): boolean
|
|
12332
12332
|
/**
|
|
12333
12333
|
* Scan for a single complete and valid GVariant type string in `string`.
|
|
12334
12334
|
* The memory pointed to by `limit` (or bytes beyond it) is never
|
|
@@ -12347,7 +12347,7 @@ function variant_type_string_is_valid(type_string: string | null): boolean
|
|
|
12347
12347
|
* @param limit the end of `string,` or %NULL
|
|
12348
12348
|
* @returns %TRUE if a valid type string was found
|
|
12349
12349
|
*/
|
|
12350
|
-
function variant_type_string_scan(string: string
|
|
12350
|
+
function variant_type_string_scan(string: string, limit: string | null): [ /* returnType */ boolean, /* endptr */ string ]
|
|
12351
12351
|
/**
|
|
12352
12352
|
* Prototype of a #GChildWatchSource callback, called when a child
|
|
12353
12353
|
* process has exited.
|
|
@@ -12695,7 +12695,7 @@ interface IOFunc {
|
|
|
12695
12695
|
* @param message the message to process
|
|
12696
12696
|
*/
|
|
12697
12697
|
interface LogFunc {
|
|
12698
|
-
(log_domain: string
|
|
12698
|
+
(log_domain: string, log_level: LogLevelFlags, message: string): void
|
|
12699
12699
|
}
|
|
12700
12700
|
/**
|
|
12701
12701
|
* Writer function for log entries. A log entry is a collection of one or more
|
|
@@ -12758,7 +12758,7 @@ interface NodeTraverseFunc {
|
|
|
12758
12758
|
* @returns %TRUE if the option was successfully parsed, %FALSE if an error occurred, in which case @error should be set with g_set_error()
|
|
12759
12759
|
*/
|
|
12760
12760
|
interface OptionArgFunc {
|
|
12761
|
-
(option_name: string
|
|
12761
|
+
(option_name: string, value: string, data: any | null): boolean
|
|
12762
12762
|
}
|
|
12763
12763
|
/**
|
|
12764
12764
|
* The type of function to be used as callback when a parse error occurs.
|
|
@@ -12800,7 +12800,7 @@ interface PollFunc {
|
|
|
12800
12800
|
* @param string the message to output
|
|
12801
12801
|
*/
|
|
12802
12802
|
interface PrintFunc {
|
|
12803
|
-
(string: string
|
|
12803
|
+
(string: string): void
|
|
12804
12804
|
}
|
|
12805
12805
|
/**
|
|
12806
12806
|
* Specifies the type of the function passed to g_regex_replace_eval().
|
|
@@ -12956,7 +12956,7 @@ interface TestFunc {
|
|
|
12956
12956
|
* @returns %TRUE if the program should abort, %FALSE otherwise
|
|
12957
12957
|
*/
|
|
12958
12958
|
interface TestLogFatalFunc {
|
|
12959
|
-
(log_domain: string
|
|
12959
|
+
(log_domain: string, log_level: LogLevelFlags, message: string): boolean
|
|
12960
12960
|
}
|
|
12961
12961
|
/**
|
|
12962
12962
|
* Specifies the type of the `func` functions passed to g_thread_new()
|
|
@@ -12977,7 +12977,7 @@ interface ThreadFunc {
|
|
|
12977
12977
|
* @returns a translation of the string for the current locale. The returned string is owned by GLib and must not be freed.
|
|
12978
12978
|
*/
|
|
12979
12979
|
interface TranslateFunc {
|
|
12980
|
-
(str: string
|
|
12980
|
+
(str: string, data: any | null): string
|
|
12981
12981
|
}
|
|
12982
12982
|
/**
|
|
12983
12983
|
* Specifies the type of function passed to g_tree_traverse(). It is
|
|
@@ -13293,7 +13293,7 @@ interface BookmarkFile {
|
|
|
13293
13293
|
* @param name the name of the application registering the bookmark or %NULL
|
|
13294
13294
|
* @param exec command line to be used to launch the bookmark or %NULL
|
|
13295
13295
|
*/
|
|
13296
|
-
add_application(uri: string
|
|
13296
|
+
add_application(uri: string, name: string | null, exec: string | null): void
|
|
13297
13297
|
/**
|
|
13298
13298
|
* Adds `group` to the list of groups to which the bookmark for `uri`
|
|
13299
13299
|
* belongs to.
|
|
@@ -13302,7 +13302,7 @@ interface BookmarkFile {
|
|
|
13302
13302
|
* @param uri a valid URI
|
|
13303
13303
|
* @param group the group name to be added
|
|
13304
13304
|
*/
|
|
13305
|
-
add_group(uri: string
|
|
13305
|
+
add_group(uri: string, group: string): void
|
|
13306
13306
|
/**
|
|
13307
13307
|
* Deeply copies a `bookmark` #GBookmarkFile object to a new one.
|
|
13308
13308
|
* @returns the copy of @bookmark. Use g_bookmark_free() when finished using it.
|
|
@@ -13320,7 +13320,7 @@ interface BookmarkFile {
|
|
|
13320
13320
|
* @param uri a valid URI
|
|
13321
13321
|
* @returns a timestamp
|
|
13322
13322
|
*/
|
|
13323
|
-
get_added(uri: string
|
|
13323
|
+
get_added(uri: string): number
|
|
13324
13324
|
/**
|
|
13325
13325
|
* Gets the time the bookmark for `uri` was added to `bookmark`
|
|
13326
13326
|
*
|
|
@@ -13329,7 +13329,7 @@ interface BookmarkFile {
|
|
|
13329
13329
|
* @param uri a valid URI
|
|
13330
13330
|
* @returns a #GDateTime
|
|
13331
13331
|
*/
|
|
13332
|
-
get_added_date_time(uri: string
|
|
13332
|
+
get_added_date_time(uri: string): DateTime
|
|
13333
13333
|
/**
|
|
13334
13334
|
* Gets the registration information of `app_name` for the bookmark for
|
|
13335
13335
|
* `uri`. See g_bookmark_file_set_application_info() for more information about
|
|
@@ -13348,7 +13348,7 @@ interface BookmarkFile {
|
|
|
13348
13348
|
* @param name an application's name
|
|
13349
13349
|
* @returns %TRUE on success.
|
|
13350
13350
|
*/
|
|
13351
|
-
get_app_info(uri: string
|
|
13351
|
+
get_app_info(uri: string, name: string): [ /* returnType */ boolean, /* exec */ string, /* count */ number, /* stamp */ number ]
|
|
13352
13352
|
/**
|
|
13353
13353
|
* Gets the registration information of `app_name` for the bookmark for
|
|
13354
13354
|
* `uri`. See g_bookmark_file_set_application_info() for more information about
|
|
@@ -13367,7 +13367,7 @@ interface BookmarkFile {
|
|
|
13367
13367
|
* @param name an application's name
|
|
13368
13368
|
* @returns %TRUE on success.
|
|
13369
13369
|
*/
|
|
13370
|
-
get_application_info(uri: string
|
|
13370
|
+
get_application_info(uri: string, name: string): [ /* returnType */ boolean, /* exec */ string, /* count */ number, /* stamp */ DateTime ]
|
|
13371
13371
|
/**
|
|
13372
13372
|
* Retrieves the names of the applications that have registered the
|
|
13373
13373
|
* bookmark for `uri`.
|
|
@@ -13377,7 +13377,7 @@ interface BookmarkFile {
|
|
|
13377
13377
|
* @param uri a valid URI
|
|
13378
13378
|
* @returns a newly allocated %NULL-terminated array of strings. Use g_strfreev() to free it.
|
|
13379
13379
|
*/
|
|
13380
|
-
get_applications(uri: string
|
|
13380
|
+
get_applications(uri: string): string[]
|
|
13381
13381
|
/**
|
|
13382
13382
|
* Retrieves the description of the bookmark for `uri`.
|
|
13383
13383
|
*
|
|
@@ -13386,7 +13386,7 @@ interface BookmarkFile {
|
|
|
13386
13386
|
* @param uri a valid URI
|
|
13387
13387
|
* @returns a newly allocated string or %NULL if the specified URI cannot be found.
|
|
13388
13388
|
*/
|
|
13389
|
-
get_description(uri: string
|
|
13389
|
+
get_description(uri: string): string | null
|
|
13390
13390
|
/**
|
|
13391
13391
|
* Retrieves the list of group names of the bookmark for `uri`.
|
|
13392
13392
|
*
|
|
@@ -13398,7 +13398,7 @@ interface BookmarkFile {
|
|
|
13398
13398
|
* @param uri a valid URI
|
|
13399
13399
|
* @returns a newly allocated %NULL-terminated array of group names. Use g_strfreev() to free it.
|
|
13400
13400
|
*/
|
|
13401
|
-
get_groups(uri: string
|
|
13401
|
+
get_groups(uri: string): string[]
|
|
13402
13402
|
/**
|
|
13403
13403
|
* Gets the icon of the bookmark for `uri`.
|
|
13404
13404
|
*
|
|
@@ -13407,7 +13407,7 @@ interface BookmarkFile {
|
|
|
13407
13407
|
* @param uri a valid URI
|
|
13408
13408
|
* @returns %TRUE if the icon for the bookmark for the URI was found. You should free the returned strings.
|
|
13409
13409
|
*/
|
|
13410
|
-
get_icon(uri: string
|
|
13410
|
+
get_icon(uri: string): [ /* returnType */ boolean, /* href */ string, /* mime_type */ string ]
|
|
13411
13411
|
/**
|
|
13412
13412
|
* Gets whether the private flag of the bookmark for `uri` is set.
|
|
13413
13413
|
*
|
|
@@ -13418,7 +13418,7 @@ interface BookmarkFile {
|
|
|
13418
13418
|
* @param uri a valid URI
|
|
13419
13419
|
* @returns %TRUE if the private flag is set, %FALSE otherwise.
|
|
13420
13420
|
*/
|
|
13421
|
-
get_is_private(uri: string
|
|
13421
|
+
get_is_private(uri: string): boolean
|
|
13422
13422
|
/**
|
|
13423
13423
|
* Retrieves the MIME type of the resource pointed by `uri`.
|
|
13424
13424
|
*
|
|
@@ -13429,7 +13429,7 @@ interface BookmarkFile {
|
|
|
13429
13429
|
* @param uri a valid URI
|
|
13430
13430
|
* @returns a newly allocated string or %NULL if the specified URI cannot be found.
|
|
13431
13431
|
*/
|
|
13432
|
-
get_mime_type(uri: string
|
|
13432
|
+
get_mime_type(uri: string): string | null
|
|
13433
13433
|
/**
|
|
13434
13434
|
* Gets the time when the bookmark for `uri` was last modified.
|
|
13435
13435
|
*
|
|
@@ -13438,7 +13438,7 @@ interface BookmarkFile {
|
|
|
13438
13438
|
* @param uri a valid URI
|
|
13439
13439
|
* @returns a timestamp
|
|
13440
13440
|
*/
|
|
13441
|
-
get_modified(uri: string
|
|
13441
|
+
get_modified(uri: string): number
|
|
13442
13442
|
/**
|
|
13443
13443
|
* Gets the time when the bookmark for `uri` was last modified.
|
|
13444
13444
|
*
|
|
@@ -13447,7 +13447,7 @@ interface BookmarkFile {
|
|
|
13447
13447
|
* @param uri a valid URI
|
|
13448
13448
|
* @returns a #GDateTime
|
|
13449
13449
|
*/
|
|
13450
|
-
get_modified_date_time(uri: string
|
|
13450
|
+
get_modified_date_time(uri: string): DateTime
|
|
13451
13451
|
/**
|
|
13452
13452
|
* Gets the number of bookmarks inside `bookmark`.
|
|
13453
13453
|
* @returns the number of bookmarks
|
|
@@ -13479,7 +13479,7 @@ interface BookmarkFile {
|
|
|
13479
13479
|
* @param uri a valid URI
|
|
13480
13480
|
* @returns a timestamp.
|
|
13481
13481
|
*/
|
|
13482
|
-
get_visited(uri: string
|
|
13482
|
+
get_visited(uri: string): number
|
|
13483
13483
|
/**
|
|
13484
13484
|
* Gets the time the bookmark for `uri` was last visited.
|
|
13485
13485
|
*
|
|
@@ -13488,7 +13488,7 @@ interface BookmarkFile {
|
|
|
13488
13488
|
* @param uri a valid URI
|
|
13489
13489
|
* @returns a #GDateTime
|
|
13490
13490
|
*/
|
|
13491
|
-
get_visited_date_time(uri: string
|
|
13491
|
+
get_visited_date_time(uri: string): DateTime
|
|
13492
13492
|
/**
|
|
13493
13493
|
* Checks whether the bookmark for `uri` inside `bookmark` has been
|
|
13494
13494
|
* registered by application `name`.
|
|
@@ -13499,7 +13499,7 @@ interface BookmarkFile {
|
|
|
13499
13499
|
* @param name the name of the application
|
|
13500
13500
|
* @returns %TRUE if the application @name was found
|
|
13501
13501
|
*/
|
|
13502
|
-
has_application(uri: string
|
|
13502
|
+
has_application(uri: string, name: string): boolean
|
|
13503
13503
|
/**
|
|
13504
13504
|
* Checks whether `group` appears in the list of groups to which
|
|
13505
13505
|
* the bookmark for `uri` belongs to.
|
|
@@ -13510,13 +13510,13 @@ interface BookmarkFile {
|
|
|
13510
13510
|
* @param group the group name to be searched
|
|
13511
13511
|
* @returns %TRUE if @group was found.
|
|
13512
13512
|
*/
|
|
13513
|
-
has_group(uri: string
|
|
13513
|
+
has_group(uri: string, group: string): boolean
|
|
13514
13514
|
/**
|
|
13515
13515
|
* Looks whether the desktop bookmark has an item with its URI set to `uri`.
|
|
13516
13516
|
* @param uri a valid URI
|
|
13517
13517
|
* @returns %TRUE if @uri is inside @bookmark, %FALSE otherwise
|
|
13518
13518
|
*/
|
|
13519
|
-
has_item(uri: string
|
|
13519
|
+
has_item(uri: string): boolean
|
|
13520
13520
|
/**
|
|
13521
13521
|
* Loads a bookmark file from memory into an empty #GBookmarkFile
|
|
13522
13522
|
* structure. If the object cannot be created then `error` is set to a
|
|
@@ -13554,7 +13554,7 @@ interface BookmarkFile {
|
|
|
13554
13554
|
* @param new_uri a valid URI, or %NULL
|
|
13555
13555
|
* @returns %TRUE if the URI was successfully changed
|
|
13556
13556
|
*/
|
|
13557
|
-
move_item(old_uri: string
|
|
13557
|
+
move_item(old_uri: string, new_uri: string | null): boolean
|
|
13558
13558
|
/**
|
|
13559
13559
|
* Removes application registered with `name` from the list of applications
|
|
13560
13560
|
* that have registered a bookmark for `uri` inside `bookmark`.
|
|
@@ -13568,7 +13568,7 @@ interface BookmarkFile {
|
|
|
13568
13568
|
* @param name the name of the application
|
|
13569
13569
|
* @returns %TRUE if the application was successfully removed.
|
|
13570
13570
|
*/
|
|
13571
|
-
remove_application(uri: string
|
|
13571
|
+
remove_application(uri: string, name: string): boolean
|
|
13572
13572
|
/**
|
|
13573
13573
|
* Removes `group` from the list of groups to which the bookmark
|
|
13574
13574
|
* for `uri` belongs to.
|
|
@@ -13581,13 +13581,13 @@ interface BookmarkFile {
|
|
|
13581
13581
|
* @param group the group name to be removed
|
|
13582
13582
|
* @returns %TRUE if @group was successfully removed.
|
|
13583
13583
|
*/
|
|
13584
|
-
remove_group(uri: string
|
|
13584
|
+
remove_group(uri: string, group: string): boolean
|
|
13585
13585
|
/**
|
|
13586
13586
|
* Removes the bookmark for `uri` from the bookmark file `bookmark`.
|
|
13587
13587
|
* @param uri a valid URI
|
|
13588
13588
|
* @returns %TRUE if the bookmark was removed successfully.
|
|
13589
13589
|
*/
|
|
13590
|
-
remove_item(uri: string
|
|
13590
|
+
remove_item(uri: string): boolean
|
|
13591
13591
|
/**
|
|
13592
13592
|
* Sets the time the bookmark for `uri` was added into `bookmark`.
|
|
13593
13593
|
*
|
|
@@ -13595,7 +13595,7 @@ interface BookmarkFile {
|
|
|
13595
13595
|
* @param uri a valid URI
|
|
13596
13596
|
* @param added a timestamp or -1 to use the current time
|
|
13597
13597
|
*/
|
|
13598
|
-
set_added(uri: string
|
|
13598
|
+
set_added(uri: string, added: number): void
|
|
13599
13599
|
/**
|
|
13600
13600
|
* Sets the time the bookmark for `uri` was added into `bookmark`.
|
|
13601
13601
|
*
|
|
@@ -13603,7 +13603,7 @@ interface BookmarkFile {
|
|
|
13603
13603
|
* @param uri a valid URI
|
|
13604
13604
|
* @param added a #GDateTime
|
|
13605
13605
|
*/
|
|
13606
|
-
set_added_date_time(uri: string
|
|
13606
|
+
set_added_date_time(uri: string, added: DateTime): void
|
|
13607
13607
|
/**
|
|
13608
13608
|
* Sets the meta-data of application `name` inside the list of
|
|
13609
13609
|
* applications that have registered a bookmark for `uri` inside
|
|
@@ -13640,7 +13640,7 @@ interface BookmarkFile {
|
|
|
13640
13640
|
* @param stamp the time of the last registration for this application
|
|
13641
13641
|
* @returns %TRUE if the application's meta-data was successfully changed.
|
|
13642
13642
|
*/
|
|
13643
|
-
set_app_info(uri: string
|
|
13643
|
+
set_app_info(uri: string, name: string, exec: string, count: number, stamp: number): boolean
|
|
13644
13644
|
/**
|
|
13645
13645
|
* Sets the meta-data of application `name` inside the list of
|
|
13646
13646
|
* applications that have registered a bookmark for `uri` inside
|
|
@@ -13676,7 +13676,7 @@ interface BookmarkFile {
|
|
|
13676
13676
|
* @param stamp the time of the last registration for this application, which may be %NULL if `count` is 0
|
|
13677
13677
|
* @returns %TRUE if the application's meta-data was successfully changed.
|
|
13678
13678
|
*/
|
|
13679
|
-
set_application_info(uri: string
|
|
13679
|
+
set_application_info(uri: string, name: string, exec: string, count: number, stamp: DateTime | null): boolean
|
|
13680
13680
|
/**
|
|
13681
13681
|
* Sets `description` as the description of the bookmark for `uri`.
|
|
13682
13682
|
*
|
|
@@ -13686,7 +13686,7 @@ interface BookmarkFile {
|
|
|
13686
13686
|
* @param uri a valid URI or %NULL
|
|
13687
13687
|
* @param description a string
|
|
13688
13688
|
*/
|
|
13689
|
-
set_description(uri: string | null, description: string
|
|
13689
|
+
set_description(uri: string | null, description: string): void
|
|
13690
13690
|
/**
|
|
13691
13691
|
* Sets a list of group names for the item with URI `uri`. Each previously
|
|
13692
13692
|
* set group name list is removed.
|
|
@@ -13695,7 +13695,7 @@ interface BookmarkFile {
|
|
|
13695
13695
|
* @param uri an item's URI
|
|
13696
13696
|
* @param groups an array of group names, or %NULL to remove all groups
|
|
13697
13697
|
*/
|
|
13698
|
-
set_groups(uri: string
|
|
13698
|
+
set_groups(uri: string, groups: string[] | null): void
|
|
13699
13699
|
/**
|
|
13700
13700
|
* Sets the icon for the bookmark for `uri`. If `href` is %NULL, unsets
|
|
13701
13701
|
* the currently set icon. `href` can either be a full URL for the icon
|
|
@@ -13706,7 +13706,7 @@ interface BookmarkFile {
|
|
|
13706
13706
|
* @param href the URI of the icon for the bookmark, or %NULL
|
|
13707
13707
|
* @param mime_type the MIME type of the icon for the bookmark
|
|
13708
13708
|
*/
|
|
13709
|
-
set_icon(uri: string
|
|
13709
|
+
set_icon(uri: string, href: string | null, mime_type: string): void
|
|
13710
13710
|
/**
|
|
13711
13711
|
* Sets the private flag of the bookmark for `uri`.
|
|
13712
13712
|
*
|
|
@@ -13714,7 +13714,7 @@ interface BookmarkFile {
|
|
|
13714
13714
|
* @param uri a valid URI
|
|
13715
13715
|
* @param is_private %TRUE if the bookmark should be marked as private
|
|
13716
13716
|
*/
|
|
13717
|
-
set_is_private(uri: string
|
|
13717
|
+
set_is_private(uri: string, is_private: boolean): void
|
|
13718
13718
|
/**
|
|
13719
13719
|
* Sets `mime_type` as the MIME type of the bookmark for `uri`.
|
|
13720
13720
|
*
|
|
@@ -13722,7 +13722,7 @@ interface BookmarkFile {
|
|
|
13722
13722
|
* @param uri a valid URI
|
|
13723
13723
|
* @param mime_type a MIME type
|
|
13724
13724
|
*/
|
|
13725
|
-
set_mime_type(uri: string
|
|
13725
|
+
set_mime_type(uri: string, mime_type: string): void
|
|
13726
13726
|
/**
|
|
13727
13727
|
* Sets the last time the bookmark for `uri` was last modified.
|
|
13728
13728
|
*
|
|
@@ -13735,7 +13735,7 @@ interface BookmarkFile {
|
|
|
13735
13735
|
* @param uri a valid URI
|
|
13736
13736
|
* @param modified a timestamp or -1 to use the current time
|
|
13737
13737
|
*/
|
|
13738
|
-
set_modified(uri: string
|
|
13738
|
+
set_modified(uri: string, modified: number): void
|
|
13739
13739
|
/**
|
|
13740
13740
|
* Sets the last time the bookmark for `uri` was last modified.
|
|
13741
13741
|
*
|
|
@@ -13748,7 +13748,7 @@ interface BookmarkFile {
|
|
|
13748
13748
|
* @param uri a valid URI
|
|
13749
13749
|
* @param modified a #GDateTime
|
|
13750
13750
|
*/
|
|
13751
|
-
set_modified_date_time(uri: string
|
|
13751
|
+
set_modified_date_time(uri: string, modified: DateTime): void
|
|
13752
13752
|
/**
|
|
13753
13753
|
* Sets `title` as the title of the bookmark for `uri` inside the
|
|
13754
13754
|
* bookmark file `bookmark`.
|
|
@@ -13759,7 +13759,7 @@ interface BookmarkFile {
|
|
|
13759
13759
|
* @param uri a valid URI or %NULL
|
|
13760
13760
|
* @param title a UTF-8 encoded string
|
|
13761
13761
|
*/
|
|
13762
|
-
set_title(uri: string | null, title: string
|
|
13762
|
+
set_title(uri: string | null, title: string): void
|
|
13763
13763
|
/**
|
|
13764
13764
|
* Sets the time the bookmark for `uri` was last visited.
|
|
13765
13765
|
*
|
|
@@ -13773,7 +13773,7 @@ interface BookmarkFile {
|
|
|
13773
13773
|
* @param uri a valid URI
|
|
13774
13774
|
* @param visited a timestamp or -1 to use the current time
|
|
13775
13775
|
*/
|
|
13776
|
-
set_visited(uri: string
|
|
13776
|
+
set_visited(uri: string, visited: number): void
|
|
13777
13777
|
/**
|
|
13778
13778
|
* Sets the time the bookmark for `uri` was last visited.
|
|
13779
13779
|
*
|
|
@@ -13787,7 +13787,7 @@ interface BookmarkFile {
|
|
|
13787
13787
|
* @param uri a valid URI
|
|
13788
13788
|
* @param visited a #GDateTime
|
|
13789
13789
|
*/
|
|
13790
|
-
set_visited_date_time(uri: string
|
|
13790
|
+
set_visited_date_time(uri: string, visited: DateTime): void
|
|
13791
13791
|
/**
|
|
13792
13792
|
* This function outputs `bookmark` as a string.
|
|
13793
13793
|
* @returns a newly allocated string holding the contents of the #GBookmarkFile
|
|
@@ -14198,7 +14198,7 @@ interface Checksum {
|
|
|
14198
14198
|
* The hexadecimal characters will be lower case.
|
|
14199
14199
|
* @returns the hexadecimal representation of the checksum. The returned string is owned by the checksum and should not be modified or freed.
|
|
14200
14200
|
*/
|
|
14201
|
-
get_string(): string
|
|
14201
|
+
get_string(): string
|
|
14202
14202
|
/**
|
|
14203
14203
|
* Resets the state of the `checksum` back to its initial state.
|
|
14204
14204
|
*/
|
|
@@ -14704,7 +14704,7 @@ interface Date {
|
|
|
14704
14704
|
* capacity).
|
|
14705
14705
|
* @param str string to parse
|
|
14706
14706
|
*/
|
|
14707
|
-
set_parse(str: string
|
|
14707
|
+
set_parse(str: string): void
|
|
14708
14708
|
/**
|
|
14709
14709
|
* Sets the value of a date from a #GTime value.
|
|
14710
14710
|
* The time to date conversion is done using the user's current timezone.
|
|
@@ -14909,7 +14909,7 @@ class Date {
|
|
|
14909
14909
|
* @param date valid #GDate
|
|
14910
14910
|
* @returns number of characters written to the buffer, or 0 the buffer was too small
|
|
14911
14911
|
*/
|
|
14912
|
-
static strftime(s: string | null, slen: number, format: string
|
|
14912
|
+
static strftime(s: string | null, slen: number, format: string, date: Date): number
|
|
14913
14913
|
/**
|
|
14914
14914
|
* Returns %TRUE if the day of the month is valid (a day is valid if it's
|
|
14915
14915
|
* between 1 and 31 inclusive).
|
|
@@ -15164,7 +15164,7 @@ interface DateTime {
|
|
|
15164
15164
|
* @param format a valid UTF-8 string, containing the format for the #GDateTime
|
|
15165
15165
|
* @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().
|
|
15166
15166
|
*/
|
|
15167
|
-
format(format: string
|
|
15167
|
+
format(format: string): string | null
|
|
15168
15168
|
/**
|
|
15169
15169
|
* Format `datetime` in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601),
|
|
15170
15170
|
* including the date, time and time zone, and return that as a UTF-8 encoded
|
|
@@ -15238,7 +15238,7 @@ interface DateTime {
|
|
|
15238
15238
|
* time is in effect.
|
|
15239
15239
|
* @returns the time zone abbreviation. The returned string is owned by the #GDateTime and it should not be modified or freed
|
|
15240
15240
|
*/
|
|
15241
|
-
get_timezone_abbreviation(): string
|
|
15241
|
+
get_timezone_abbreviation(): string
|
|
15242
15242
|
/**
|
|
15243
15243
|
* Determines the offset to UTC in effect at the time and in the time
|
|
15244
15244
|
* zone of `datetime`.
|
|
@@ -15536,7 +15536,7 @@ class DateTime {
|
|
|
15536
15536
|
* @param default_tz a #GTimeZone to use if the text doesn't contain a timezone, or %NULL.
|
|
15537
15537
|
* @returns a new #GDateTime, or %NULL
|
|
15538
15538
|
*/
|
|
15539
|
-
static new_from_iso8601(text: string
|
|
15539
|
+
static new_from_iso8601(text: string, default_tz: TimeZone | null): DateTime
|
|
15540
15540
|
/**
|
|
15541
15541
|
* Creates a #GDateTime corresponding to the given #GTimeVal `tv` in the
|
|
15542
15542
|
* local time zone.
|
|
@@ -15680,7 +15680,7 @@ interface DebugKey {
|
|
|
15680
15680
|
* the string
|
|
15681
15681
|
* @field
|
|
15682
15682
|
*/
|
|
15683
|
-
key: string
|
|
15683
|
+
key: string
|
|
15684
15684
|
/**
|
|
15685
15685
|
* the flag
|
|
15686
15686
|
* @field
|
|
@@ -15859,7 +15859,7 @@ class Error {
|
|
|
15859
15859
|
* @param message error message
|
|
15860
15860
|
* @returns a new #GError
|
|
15861
15861
|
*/
|
|
15862
|
-
static new_literal(domain: Quark, code: number, message: string
|
|
15862
|
+
static new_literal(domain: Quark, code: number, message: string): Error
|
|
15863
15863
|
|
|
15864
15864
|
// Owm static methods of GLib-2.0.GLib.Error
|
|
15865
15865
|
|
|
@@ -16185,7 +16185,7 @@ interface Hmac {
|
|
|
16185
16185
|
* The hexadecimal characters will be lower case.
|
|
16186
16186
|
* @returns the hexadecimal representation of the HMAC. The returned string is owned by the HMAC and should not be modified or freed.
|
|
16187
16187
|
*/
|
|
16188
|
-
get_string(): string
|
|
16188
|
+
get_string(): string
|
|
16189
16189
|
/**
|
|
16190
16190
|
* Atomically decrements the reference count of `hmac` by one.
|
|
16191
16191
|
*
|
|
@@ -16471,7 +16471,7 @@ interface IOChannel {
|
|
|
16471
16471
|
* makes the channel safe for binary data.
|
|
16472
16472
|
* @returns A string containing the encoding, this string is owned by GLib and must not be freed.
|
|
16473
16473
|
*/
|
|
16474
|
-
get_encoding(): string
|
|
16474
|
+
get_encoding(): string
|
|
16475
16475
|
/**
|
|
16476
16476
|
* Gets the current flags for a #GIOChannel, including read-only
|
|
16477
16477
|
* flags such as %G_IO_FLAG_IS_READABLE.
|
|
@@ -16491,7 +16491,7 @@ interface IOChannel {
|
|
|
16491
16491
|
* indicates autodetection.
|
|
16492
16492
|
* @returns The line termination string. This value is owned by GLib and must not be freed.
|
|
16493
16493
|
*/
|
|
16494
|
-
get_line_term(): [ /* returnType */ string
|
|
16494
|
+
get_line_term(): [ /* returnType */ string, /* length */ number ]
|
|
16495
16495
|
/**
|
|
16496
16496
|
* Initializes a #GIOChannel struct.
|
|
16497
16497
|
*
|
|
@@ -16676,7 +16676,7 @@ interface IOChannel {
|
|
|
16676
16676
|
* @param bytes_written the number of bytes actually written
|
|
16677
16677
|
* @returns %G_IO_ERROR_NONE if the operation was successful.
|
|
16678
16678
|
*/
|
|
16679
|
-
write(buf: string
|
|
16679
|
+
write(buf: string, count: number, bytes_written: number): IOError
|
|
16680
16680
|
/**
|
|
16681
16681
|
* Replacement for g_io_channel_write() with the new API.
|
|
16682
16682
|
*
|
|
@@ -16723,7 +16723,7 @@ class IOChannel {
|
|
|
16723
16723
|
* @param mode One of "r", "w", "a", "r+", "w+", "a+". These have the same meaning as in fopen()
|
|
16724
16724
|
* @returns A #GIOChannel on success, %NULL on failure.
|
|
16725
16725
|
*/
|
|
16726
|
-
static new_file(filename: string, mode: string
|
|
16726
|
+
static new_file(filename: string, mode: string): IOChannel
|
|
16727
16727
|
/**
|
|
16728
16728
|
* Creates a new #GIOChannel given a file descriptor. On UNIX systems
|
|
16729
16729
|
* this works for plain files, pipes, and sockets.
|
|
@@ -16766,7 +16766,7 @@ interface IOFuncs {
|
|
|
16766
16766
|
// Own fields of GLib-2.0.GLib.IOFuncs
|
|
16767
16767
|
|
|
16768
16768
|
io_read: (channel: IOChannel, buf: string | null, count: number, bytes_read: number) => IOStatus
|
|
16769
|
-
io_write: (channel: IOChannel, buf: string
|
|
16769
|
+
io_write: (channel: IOChannel, buf: string, count: number, bytes_written: number) => IOStatus
|
|
16770
16770
|
io_seek: (channel: IOChannel, offset: number, type: SeekType) => IOStatus
|
|
16771
16771
|
io_close: (channel: IOChannel) => IOStatus
|
|
16772
16772
|
io_create_watch: (channel: IOChannel, condition: IOCondition) => Source
|
|
@@ -16803,7 +16803,7 @@ interface KeyFile {
|
|
|
16803
16803
|
* @param key a key
|
|
16804
16804
|
* @returns the value associated with the key as a boolean, or %FALSE if the key was not found or could not be parsed.
|
|
16805
16805
|
*/
|
|
16806
|
-
get_boolean(group_name: string
|
|
16806
|
+
get_boolean(group_name: string, key: string): boolean
|
|
16807
16807
|
/**
|
|
16808
16808
|
* Returns the values associated with `key` under `group_name` as
|
|
16809
16809
|
* booleans.
|
|
@@ -16816,7 +16816,7 @@ interface KeyFile {
|
|
|
16816
16816
|
* @param key a key
|
|
16817
16817
|
* @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.
|
|
16818
16818
|
*/
|
|
16819
|
-
get_boolean_list(group_name: string
|
|
16819
|
+
get_boolean_list(group_name: string, key: string): boolean[]
|
|
16820
16820
|
/**
|
|
16821
16821
|
* Retrieves a comment above `key` from `group_name`.
|
|
16822
16822
|
* If `key` is %NULL then `comment` will be read from above
|
|
@@ -16843,7 +16843,7 @@ interface KeyFile {
|
|
|
16843
16843
|
* @param key a key
|
|
16844
16844
|
* @returns the value associated with the key as a double, or 0.0 if the key was not found or could not be parsed.
|
|
16845
16845
|
*/
|
|
16846
|
-
get_double(group_name: string
|
|
16846
|
+
get_double(group_name: string, key: string): number
|
|
16847
16847
|
/**
|
|
16848
16848
|
* Returns the values associated with `key` under `group_name` as
|
|
16849
16849
|
* doubles.
|
|
@@ -16856,7 +16856,7 @@ interface KeyFile {
|
|
|
16856
16856
|
* @param key a key
|
|
16857
16857
|
* @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.
|
|
16858
16858
|
*/
|
|
16859
|
-
get_double_list(group_name: string
|
|
16859
|
+
get_double_list(group_name: string, key: string): number[]
|
|
16860
16860
|
/**
|
|
16861
16861
|
* Returns all groups in the key file loaded with `key_file`.
|
|
16862
16862
|
* The array of returned groups will be %NULL-terminated, so
|
|
@@ -16872,7 +16872,7 @@ interface KeyFile {
|
|
|
16872
16872
|
* @param key a non-%NULL key
|
|
16873
16873
|
* @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.
|
|
16874
16874
|
*/
|
|
16875
|
-
get_int64(group_name: string
|
|
16875
|
+
get_int64(group_name: string, key: string): number
|
|
16876
16876
|
/**
|
|
16877
16877
|
* Returns the value associated with `key` under `group_name` as an
|
|
16878
16878
|
* integer.
|
|
@@ -16886,7 +16886,7 @@ interface KeyFile {
|
|
|
16886
16886
|
* @param key a key
|
|
16887
16887
|
* @returns the value associated with the key as an integer, or 0 if the key was not found or could not be parsed.
|
|
16888
16888
|
*/
|
|
16889
|
-
get_integer(group_name: string
|
|
16889
|
+
get_integer(group_name: string, key: string): number
|
|
16890
16890
|
/**
|
|
16891
16891
|
* Returns the values associated with `key` under `group_name` as
|
|
16892
16892
|
* integers.
|
|
@@ -16900,7 +16900,7 @@ interface KeyFile {
|
|
|
16900
16900
|
* @param key a key
|
|
16901
16901
|
* @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.
|
|
16902
16902
|
*/
|
|
16903
|
-
get_integer_list(group_name: string
|
|
16903
|
+
get_integer_list(group_name: string, key: string): number[]
|
|
16904
16904
|
/**
|
|
16905
16905
|
* Returns all keys for the group name `group_name`. The array of
|
|
16906
16906
|
* returned keys will be %NULL-terminated, so `length` may
|
|
@@ -16910,7 +16910,7 @@ interface KeyFile {
|
|
|
16910
16910
|
* @param group_name a group name
|
|
16911
16911
|
* @returns a newly-allocated %NULL-terminated array of strings. Use g_strfreev() to free it.
|
|
16912
16912
|
*/
|
|
16913
|
-
get_keys(group_name: string
|
|
16913
|
+
get_keys(group_name: string): [ /* returnType */ string[], /* length */ number ]
|
|
16914
16914
|
/**
|
|
16915
16915
|
* Returns the actual locale which the result of
|
|
16916
16916
|
* g_key_file_get_locale_string() or g_key_file_get_locale_string_list()
|
|
@@ -16926,7 +16926,7 @@ interface KeyFile {
|
|
|
16926
16926
|
* @param locale a locale identifier or %NULL
|
|
16927
16927
|
* @returns the locale from the file, or %NULL if the key was not found or the entry in the file was was untranslated
|
|
16928
16928
|
*/
|
|
16929
|
-
get_locale_for_key(group_name: string
|
|
16929
|
+
get_locale_for_key(group_name: string, key: string, locale: string | null): string | null
|
|
16930
16930
|
/**
|
|
16931
16931
|
* Returns the value associated with `key` under `group_name`
|
|
16932
16932
|
* translated in the given `locale` if available. If `locale` is
|
|
@@ -16945,7 +16945,7 @@ interface KeyFile {
|
|
|
16945
16945
|
* @param locale a locale identifier or %NULL
|
|
16946
16946
|
* @returns a newly allocated string or %NULL if the specified key cannot be found.
|
|
16947
16947
|
*/
|
|
16948
|
-
get_locale_string(group_name: string
|
|
16948
|
+
get_locale_string(group_name: string, key: string, locale: string | null): string | null
|
|
16949
16949
|
/**
|
|
16950
16950
|
* Returns the values associated with `key` under `group_name`
|
|
16951
16951
|
* translated in the given `locale` if available. If `locale` is
|
|
@@ -16966,7 +16966,7 @@ interface KeyFile {
|
|
|
16966
16966
|
* @param locale a locale identifier or %NULL
|
|
16967
16967
|
* @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().
|
|
16968
16968
|
*/
|
|
16969
|
-
get_locale_string_list(group_name: string
|
|
16969
|
+
get_locale_string_list(group_name: string, key: string, locale: string | null): string[]
|
|
16970
16970
|
/**
|
|
16971
16971
|
* Returns the name of the start group of the file.
|
|
16972
16972
|
* @returns The start group of the key file.
|
|
@@ -16985,7 +16985,7 @@ interface KeyFile {
|
|
|
16985
16985
|
* @param key a key
|
|
16986
16986
|
* @returns a newly allocated string or %NULL if the specified key cannot be found.
|
|
16987
16987
|
*/
|
|
16988
|
-
get_string(group_name: string
|
|
16988
|
+
get_string(group_name: string, key: string): string | null
|
|
16989
16989
|
/**
|
|
16990
16990
|
* Returns the values associated with `key` under `group_name`.
|
|
16991
16991
|
*
|
|
@@ -16997,7 +16997,7 @@ interface KeyFile {
|
|
|
16997
16997
|
* @param key a key
|
|
16998
16998
|
* @returns a %NULL-terminated string array or %NULL if the specified key cannot be found. The array should be freed with g_strfreev().
|
|
16999
16999
|
*/
|
|
17000
|
-
get_string_list(group_name: string
|
|
17000
|
+
get_string_list(group_name: string, key: string): string[]
|
|
17001
17001
|
/**
|
|
17002
17002
|
* Returns the value associated with `key` under `group_name` as an unsigned
|
|
17003
17003
|
* 64-bit integer. This is similar to g_key_file_get_integer() but can return
|
|
@@ -17006,7 +17006,7 @@ interface KeyFile {
|
|
|
17006
17006
|
* @param key a non-%NULL key
|
|
17007
17007
|
* @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.
|
|
17008
17008
|
*/
|
|
17009
|
-
get_uint64(group_name: string
|
|
17009
|
+
get_uint64(group_name: string, key: string): number
|
|
17010
17010
|
/**
|
|
17011
17011
|
* Returns the raw value associated with `key` under `group_name`.
|
|
17012
17012
|
* Use g_key_file_get_string() to retrieve an unescaped UTF-8 string.
|
|
@@ -17019,13 +17019,13 @@ interface KeyFile {
|
|
|
17019
17019
|
* @param key a key
|
|
17020
17020
|
* @returns a newly allocated string or %NULL if the specified key cannot be found.
|
|
17021
17021
|
*/
|
|
17022
|
-
get_value(group_name: string
|
|
17022
|
+
get_value(group_name: string, key: string): string | null
|
|
17023
17023
|
/**
|
|
17024
17024
|
* Looks whether the key file has the group `group_name`.
|
|
17025
17025
|
* @param group_name a group name
|
|
17026
17026
|
* @returns %TRUE if @group_name is a part of @key_file, %FALSE otherwise.
|
|
17027
17027
|
*/
|
|
17028
|
-
has_group(group_name: string
|
|
17028
|
+
has_group(group_name: string): boolean
|
|
17029
17029
|
/**
|
|
17030
17030
|
* Loads a key file from the data in `bytes` into an empty #GKeyFile structure.
|
|
17031
17031
|
* If the object cannot be created then %error is set to a #GKeyFileError.
|
|
@@ -17042,7 +17042,7 @@ interface KeyFile {
|
|
|
17042
17042
|
* @param flags flags from #GKeyFileFlags
|
|
17043
17043
|
* @returns %TRUE if a key file could be loaded, %FALSE otherwise
|
|
17044
17044
|
*/
|
|
17045
|
-
load_from_data(data: string
|
|
17045
|
+
load_from_data(data: string, length: number, flags: KeyFileFlags): boolean
|
|
17046
17046
|
/**
|
|
17047
17047
|
* This function looks for a key file named `file` in the paths
|
|
17048
17048
|
* returned from g_get_user_data_dir() and g_get_system_data_dirs(),
|
|
@@ -17100,14 +17100,14 @@ interface KeyFile {
|
|
|
17100
17100
|
* @param group_name a group name
|
|
17101
17101
|
* @returns %TRUE if the group was removed, %FALSE otherwise
|
|
17102
17102
|
*/
|
|
17103
|
-
remove_group(group_name: string
|
|
17103
|
+
remove_group(group_name: string): boolean
|
|
17104
17104
|
/**
|
|
17105
17105
|
* Removes `key` in `group_name` from the key file.
|
|
17106
17106
|
* @param group_name a group name
|
|
17107
17107
|
* @param key a key name to remove
|
|
17108
17108
|
* @returns %TRUE if the key was removed, %FALSE otherwise
|
|
17109
17109
|
*/
|
|
17110
|
-
remove_key(group_name: string
|
|
17110
|
+
remove_key(group_name: string, key: string): boolean
|
|
17111
17111
|
/**
|
|
17112
17112
|
* Writes the contents of `key_file` to `filename` using
|
|
17113
17113
|
* g_file_set_contents(). If you need stricter guarantees about durability of
|
|
@@ -17119,7 +17119,7 @@ interface KeyFile {
|
|
|
17119
17119
|
* @param filename the name of the file to write to
|
|
17120
17120
|
* @returns %TRUE if successful, else %FALSE with @error set
|
|
17121
17121
|
*/
|
|
17122
|
-
save_to_file(filename: string
|
|
17122
|
+
save_to_file(filename: string): boolean
|
|
17123
17123
|
/**
|
|
17124
17124
|
* Associates a new boolean value with `key` under `group_name`.
|
|
17125
17125
|
* If `key` cannot be found then it is created.
|
|
@@ -17127,7 +17127,7 @@ interface KeyFile {
|
|
|
17127
17127
|
* @param key a key
|
|
17128
17128
|
* @param value %TRUE or %FALSE
|
|
17129
17129
|
*/
|
|
17130
|
-
set_boolean(group_name: string
|
|
17130
|
+
set_boolean(group_name: string, key: string, value: boolean): void
|
|
17131
17131
|
/**
|
|
17132
17132
|
* Associates a list of boolean values with `key` under `group_name`.
|
|
17133
17133
|
* If `key` cannot be found then it is created.
|
|
@@ -17136,7 +17136,7 @@ interface KeyFile {
|
|
|
17136
17136
|
* @param key a key
|
|
17137
17137
|
* @param list an array of boolean values
|
|
17138
17138
|
*/
|
|
17139
|
-
set_boolean_list(group_name: string
|
|
17139
|
+
set_boolean_list(group_name: string, key: string, list: boolean[]): void
|
|
17140
17140
|
/**
|
|
17141
17141
|
* Places a comment above `key` from `group_name`.
|
|
17142
17142
|
*
|
|
@@ -17151,7 +17151,7 @@ interface KeyFile {
|
|
|
17151
17151
|
* @param comment a comment
|
|
17152
17152
|
* @returns %TRUE if the comment was written, %FALSE otherwise
|
|
17153
17153
|
*/
|
|
17154
|
-
set_comment(group_name: string | null, key: string | null, comment: string
|
|
17154
|
+
set_comment(group_name: string | null, key: string | null, comment: string): boolean
|
|
17155
17155
|
/**
|
|
17156
17156
|
* Associates a new double value with `key` under `group_name`.
|
|
17157
17157
|
* If `key` cannot be found then it is created.
|
|
@@ -17159,7 +17159,7 @@ interface KeyFile {
|
|
|
17159
17159
|
* @param key a key
|
|
17160
17160
|
* @param value a double value
|
|
17161
17161
|
*/
|
|
17162
|
-
set_double(group_name: string
|
|
17162
|
+
set_double(group_name: string, key: string, value: number): void
|
|
17163
17163
|
/**
|
|
17164
17164
|
* Associates a list of double values with `key` under
|
|
17165
17165
|
* `group_name`. If `key` cannot be found then it is created.
|
|
@@ -17167,7 +17167,7 @@ interface KeyFile {
|
|
|
17167
17167
|
* @param key a key
|
|
17168
17168
|
* @param list an array of double values
|
|
17169
17169
|
*/
|
|
17170
|
-
set_double_list(group_name: string
|
|
17170
|
+
set_double_list(group_name: string, key: string, list: number[]): void
|
|
17171
17171
|
/**
|
|
17172
17172
|
* Associates a new integer value with `key` under `group_name`.
|
|
17173
17173
|
* If `key` cannot be found then it is created.
|
|
@@ -17175,7 +17175,7 @@ interface KeyFile {
|
|
|
17175
17175
|
* @param key a key
|
|
17176
17176
|
* @param value an integer value
|
|
17177
17177
|
*/
|
|
17178
|
-
set_int64(group_name: string
|
|
17178
|
+
set_int64(group_name: string, key: string, value: number): void
|
|
17179
17179
|
/**
|
|
17180
17180
|
* Associates a new integer value with `key` under `group_name`.
|
|
17181
17181
|
* If `key` cannot be found then it is created.
|
|
@@ -17183,7 +17183,7 @@ interface KeyFile {
|
|
|
17183
17183
|
* @param key a key
|
|
17184
17184
|
* @param value an integer value
|
|
17185
17185
|
*/
|
|
17186
|
-
set_integer(group_name: string
|
|
17186
|
+
set_integer(group_name: string, key: string, value: number): void
|
|
17187
17187
|
/**
|
|
17188
17188
|
* Associates a list of integer values with `key` under `group_name`.
|
|
17189
17189
|
* If `key` cannot be found then it is created.
|
|
@@ -17191,7 +17191,7 @@ interface KeyFile {
|
|
|
17191
17191
|
* @param key a key
|
|
17192
17192
|
* @param list an array of integer values
|
|
17193
17193
|
*/
|
|
17194
|
-
set_integer_list(group_name: string
|
|
17194
|
+
set_integer_list(group_name: string, key: string, list: number[]): void
|
|
17195
17195
|
/**
|
|
17196
17196
|
* Sets the character which is used to separate
|
|
17197
17197
|
* values in lists. Typically ';' or ',' are used
|
|
@@ -17207,7 +17207,7 @@ interface KeyFile {
|
|
|
17207
17207
|
* @param locale a locale identifier
|
|
17208
17208
|
* @param string a string
|
|
17209
17209
|
*/
|
|
17210
|
-
set_locale_string(group_name: string
|
|
17210
|
+
set_locale_string(group_name: string, key: string, locale: string, string: string): void
|
|
17211
17211
|
/**
|
|
17212
17212
|
* Associates a list of string values for `key` and `locale` under
|
|
17213
17213
|
* `group_name`. If the translation for `key` cannot be found then
|
|
@@ -17217,7 +17217,7 @@ interface KeyFile {
|
|
|
17217
17217
|
* @param locale a locale identifier
|
|
17218
17218
|
* @param list a %NULL-terminated array of locale string values
|
|
17219
17219
|
*/
|
|
17220
|
-
set_locale_string_list(group_name: string
|
|
17220
|
+
set_locale_string_list(group_name: string, key: string, locale: string, list: string[]): void
|
|
17221
17221
|
/**
|
|
17222
17222
|
* Associates a new string value with `key` under `group_name`.
|
|
17223
17223
|
* If `key` cannot be found then it is created.
|
|
@@ -17228,7 +17228,7 @@ interface KeyFile {
|
|
|
17228
17228
|
* @param key a key
|
|
17229
17229
|
* @param string a string
|
|
17230
17230
|
*/
|
|
17231
|
-
set_string(group_name: string
|
|
17231
|
+
set_string(group_name: string, key: string, string: string): void
|
|
17232
17232
|
/**
|
|
17233
17233
|
* Associates a list of string values for `key` under `group_name`.
|
|
17234
17234
|
* If `key` cannot be found then it is created.
|
|
@@ -17237,7 +17237,7 @@ interface KeyFile {
|
|
|
17237
17237
|
* @param key a key
|
|
17238
17238
|
* @param list an array of string values
|
|
17239
17239
|
*/
|
|
17240
|
-
set_string_list(group_name: string
|
|
17240
|
+
set_string_list(group_name: string, key: string, list: string[]): void
|
|
17241
17241
|
/**
|
|
17242
17242
|
* Associates a new integer value with `key` under `group_name`.
|
|
17243
17243
|
* If `key` cannot be found then it is created.
|
|
@@ -17245,7 +17245,7 @@ interface KeyFile {
|
|
|
17245
17245
|
* @param key a key
|
|
17246
17246
|
* @param value an integer value
|
|
17247
17247
|
*/
|
|
17248
|
-
set_uint64(group_name: string
|
|
17248
|
+
set_uint64(group_name: string, key: string, value: number): void
|
|
17249
17249
|
/**
|
|
17250
17250
|
* Associates a new value with `key` under `group_name`.
|
|
17251
17251
|
*
|
|
@@ -17257,7 +17257,7 @@ interface KeyFile {
|
|
|
17257
17257
|
* @param key a key
|
|
17258
17258
|
* @param value a string
|
|
17259
17259
|
*/
|
|
17260
|
-
set_value(group_name: string
|
|
17260
|
+
set_value(group_name: string, key: string, value: string): void
|
|
17261
17261
|
/**
|
|
17262
17262
|
* This function outputs `key_file` as a string.
|
|
17263
17263
|
*
|
|
@@ -17487,7 +17487,7 @@ interface LogField {
|
|
|
17487
17487
|
* field name (UTF-8 string)
|
|
17488
17488
|
* @field
|
|
17489
17489
|
*/
|
|
17490
|
-
key: string
|
|
17490
|
+
key: string
|
|
17491
17491
|
/**
|
|
17492
17492
|
* field value (arbitrary bytes)
|
|
17493
17493
|
* @field
|
|
@@ -18091,7 +18091,7 @@ interface MarkupParseContext {
|
|
|
18091
18091
|
* elements, see g_markup_parse_context_get_element_stack().
|
|
18092
18092
|
* @returns the name of the currently open element, or %NULL
|
|
18093
18093
|
*/
|
|
18094
|
-
get_element(): string
|
|
18094
|
+
get_element(): string
|
|
18095
18095
|
/**
|
|
18096
18096
|
* Retrieves the current line number and the number of the character on
|
|
18097
18097
|
* that line. Intended for use in error messages; there are no strict
|
|
@@ -18123,7 +18123,7 @@ interface MarkupParseContext {
|
|
|
18123
18123
|
* @param text_len length of `text` in bytes
|
|
18124
18124
|
* @returns %FALSE if an error occurred, %TRUE on success
|
|
18125
18125
|
*/
|
|
18126
|
-
parse(text: string
|
|
18126
|
+
parse(text: string, text_len: number): boolean
|
|
18127
18127
|
/**
|
|
18128
18128
|
* Completes the process of a temporary sub-parser redirection.
|
|
18129
18129
|
*
|
|
@@ -18328,10 +18328,10 @@ interface MarkupParser {
|
|
|
18328
18328
|
|
|
18329
18329
|
// Own fields of GLib-2.0.GLib.MarkupParser
|
|
18330
18330
|
|
|
18331
|
-
start_element: (context: MarkupParseContext, element_name: string
|
|
18332
|
-
end_element: (context: MarkupParseContext, element_name: string
|
|
18333
|
-
text: (context: MarkupParseContext, text: string
|
|
18334
|
-
passthrough: (context: MarkupParseContext, passthrough_text: string
|
|
18331
|
+
start_element: (context: MarkupParseContext, element_name: string, attribute_names: string, attribute_values: string) => void
|
|
18332
|
+
end_element: (context: MarkupParseContext, element_name: string) => void
|
|
18333
|
+
text: (context: MarkupParseContext, text: string, text_len: number) => void
|
|
18334
|
+
passthrough: (context: MarkupParseContext, passthrough_text: string, text_len: number) => void
|
|
18335
18335
|
error: (context: MarkupParseContext, error: Error) => void
|
|
18336
18336
|
}
|
|
18337
18337
|
|
|
@@ -18377,7 +18377,7 @@ interface MatchInfo {
|
|
|
18377
18377
|
* @param string_to_expand the string to expand
|
|
18378
18378
|
* @returns the expanded string, or %NULL if an error occurred
|
|
18379
18379
|
*/
|
|
18380
|
-
expand_references(string_to_expand: string
|
|
18380
|
+
expand_references(string_to_expand: string): string | null
|
|
18381
18381
|
/**
|
|
18382
18382
|
* Retrieves the text matching the `match_num'`th capturing
|
|
18383
18383
|
* parentheses. 0 is the full text of the match, 1 is the first paren
|
|
@@ -18431,7 +18431,7 @@ interface MatchInfo {
|
|
|
18431
18431
|
* @param name name of the subexpression
|
|
18432
18432
|
* @returns The matched substring, or %NULL if an error occurred. You have to free the string yourself
|
|
18433
18433
|
*/
|
|
18434
|
-
fetch_named(name: string
|
|
18434
|
+
fetch_named(name: string): string | null
|
|
18435
18435
|
/**
|
|
18436
18436
|
* Retrieves the position in bytes of the capturing parentheses named `name`.
|
|
18437
18437
|
*
|
|
@@ -18441,7 +18441,7 @@ interface MatchInfo {
|
|
|
18441
18441
|
* @param name name of the subexpression
|
|
18442
18442
|
* @returns %TRUE if the position was fetched, %FALSE otherwise. If the position cannot be fetched, @start_pos and @end_pos are left unchanged.
|
|
18443
18443
|
*/
|
|
18444
|
-
fetch_named_pos(name: string
|
|
18444
|
+
fetch_named_pos(name: string): [ /* returnType */ boolean, /* start_pos */ number, /* end_pos */ number ]
|
|
18445
18445
|
/**
|
|
18446
18446
|
* Retrieves the position in bytes of the `match_num'`th capturing
|
|
18447
18447
|
* parentheses. 0 is the full text of the match, 1 is the first
|
|
@@ -18490,7 +18490,7 @@ interface MatchInfo {
|
|
|
18490
18490
|
* you may not free it before calling this function.
|
|
18491
18491
|
* @returns the string searched with @match_info
|
|
18492
18492
|
*/
|
|
18493
|
-
get_string(): string
|
|
18493
|
+
get_string(): string
|
|
18494
18494
|
/**
|
|
18495
18495
|
* Usually if the string passed to g_regex_match*() matches as far as
|
|
18496
18496
|
* it goes, but is too short to match the entire pattern, %FALSE is
|
|
@@ -18816,7 +18816,7 @@ interface OptionContext {
|
|
|
18816
18816
|
* Returns the description. See g_option_context_set_description().
|
|
18817
18817
|
* @returns the description
|
|
18818
18818
|
*/
|
|
18819
|
-
get_description(): string
|
|
18819
|
+
get_description(): string
|
|
18820
18820
|
/**
|
|
18821
18821
|
* Returns a formatted, translated help text for the given context.
|
|
18822
18822
|
* To obtain the text produced by `--help`, call
|
|
@@ -18858,7 +18858,7 @@ interface OptionContext {
|
|
|
18858
18858
|
* Returns the summary. See g_option_context_set_summary().
|
|
18859
18859
|
* @returns the summary
|
|
18860
18860
|
*/
|
|
18861
|
-
get_summary(): string
|
|
18861
|
+
get_summary(): string
|
|
18862
18862
|
/**
|
|
18863
18863
|
* Parses the command line arguments, recognizing options
|
|
18864
18864
|
* which have been added to `context`. A side-effect of
|
|
@@ -19000,7 +19000,7 @@ interface OptionContext {
|
|
|
19000
19000
|
* user-visible strings.
|
|
19001
19001
|
* @param domain the domain to use
|
|
19002
19002
|
*/
|
|
19003
|
-
set_translation_domain(domain: string
|
|
19003
|
+
set_translation_domain(domain: string): void
|
|
19004
19004
|
}
|
|
19005
19005
|
|
|
19006
19006
|
/**
|
|
@@ -19184,7 +19184,7 @@ interface OptionEntry {
|
|
|
19184
19184
|
* `--groupname-long_name`.
|
|
19185
19185
|
* @field
|
|
19186
19186
|
*/
|
|
19187
|
-
long_name: string
|
|
19187
|
+
long_name: string
|
|
19188
19188
|
/**
|
|
19189
19189
|
* If an option has a short name, it can be specified
|
|
19190
19190
|
* `-short_name` in a commandline. `short_name` must be a printable
|
|
@@ -19230,7 +19230,7 @@ interface OptionEntry {
|
|
|
19230
19230
|
* of the group, see g_option_group_set_translation_domain().
|
|
19231
19231
|
* @field
|
|
19232
19232
|
*/
|
|
19233
|
-
description: string
|
|
19233
|
+
description: string
|
|
19234
19234
|
/**
|
|
19235
19235
|
* The placeholder to use for the extra argument parsed
|
|
19236
19236
|
* by the option in `--help` output. The `arg_description` is translated
|
|
@@ -19238,7 +19238,7 @@ interface OptionEntry {
|
|
|
19238
19238
|
* g_option_group_set_translation_domain().
|
|
19239
19239
|
* @field
|
|
19240
19240
|
*/
|
|
19241
|
-
arg_description: string
|
|
19241
|
+
arg_description: string
|
|
19242
19242
|
}
|
|
19243
19243
|
|
|
19244
19244
|
/**
|
|
@@ -19288,7 +19288,7 @@ interface OptionGroup {
|
|
|
19288
19288
|
* user-visible strings.
|
|
19289
19289
|
* @param domain the domain to use
|
|
19290
19290
|
*/
|
|
19291
|
-
set_translation_domain(domain: string
|
|
19291
|
+
set_translation_domain(domain: string): void
|
|
19292
19292
|
/**
|
|
19293
19293
|
* Decrements the reference count of `group` by one.
|
|
19294
19294
|
* If the reference count drops to 0, the `group` will be freed.
|
|
@@ -19330,7 +19330,7 @@ class OptionGroup {
|
|
|
19330
19330
|
* @param destroy a function that will be called to free `user_data,` or %NULL
|
|
19331
19331
|
* @returns a newly created option group. It should be added to a #GOptionContext or freed with g_option_group_unref().
|
|
19332
19332
|
*/
|
|
19333
|
-
constructor(name: string
|
|
19333
|
+
constructor(name: string, description: string, help_description: string, user_data: any | null, destroy: DestroyNotify | null)
|
|
19334
19334
|
/**
|
|
19335
19335
|
* Creates a new #GOptionGroup.
|
|
19336
19336
|
*
|
|
@@ -19346,7 +19346,7 @@ class OptionGroup {
|
|
|
19346
19346
|
* @param destroy a function that will be called to free `user_data,` or %NULL
|
|
19347
19347
|
* @returns a newly created option group. It should be added to a #GOptionContext or freed with g_option_group_unref().
|
|
19348
19348
|
*/
|
|
19349
|
-
static new(name: string
|
|
19349
|
+
static new(name: string, description: string, help_description: string, user_data: any | null, destroy: DestroyNotify | null): OptionGroup
|
|
19350
19350
|
}
|
|
19351
19351
|
|
|
19352
19352
|
interface PathBuf {
|
|
@@ -19625,7 +19625,7 @@ interface PatternSpec {
|
|
|
19625
19625
|
* @param string_reversed the reverse of `string` or %NULL
|
|
19626
19626
|
* @returns %TRUE if @string matches @pspec
|
|
19627
19627
|
*/
|
|
19628
|
-
match(string_length: number, string: string
|
|
19628
|
+
match(string_length: number, string: string, string_reversed: string | null): boolean
|
|
19629
19629
|
/**
|
|
19630
19630
|
* Matches a string against a compiled pattern. If the string is to be
|
|
19631
19631
|
* matched against more than one pattern, consider using
|
|
@@ -19633,7 +19633,7 @@ interface PatternSpec {
|
|
|
19633
19633
|
* @param string the UTF-8 encoded string to match
|
|
19634
19634
|
* @returns %TRUE if @string matches @pspec
|
|
19635
19635
|
*/
|
|
19636
|
-
match_string(string: string
|
|
19636
|
+
match_string(string: string): boolean
|
|
19637
19637
|
}
|
|
19638
19638
|
|
|
19639
19639
|
/**
|
|
@@ -19655,14 +19655,14 @@ class PatternSpec {
|
|
|
19655
19655
|
* @param pattern a zero-terminated UTF-8 encoded string
|
|
19656
19656
|
* @returns a newly-allocated #GPatternSpec
|
|
19657
19657
|
*/
|
|
19658
|
-
constructor(pattern: string
|
|
19658
|
+
constructor(pattern: string)
|
|
19659
19659
|
/**
|
|
19660
19660
|
* Compiles a pattern to a #GPatternSpec.
|
|
19661
19661
|
* @constructor
|
|
19662
19662
|
* @param pattern a zero-terminated UTF-8 encoded string
|
|
19663
19663
|
* @returns a newly-allocated #GPatternSpec
|
|
19664
19664
|
*/
|
|
19665
|
-
static new(pattern: string
|
|
19665
|
+
static new(pattern: string): PatternSpec
|
|
19666
19666
|
}
|
|
19667
19667
|
|
|
19668
19668
|
interface PollFD {
|
|
@@ -20326,13 +20326,13 @@ interface Regex {
|
|
|
20326
20326
|
* the string passed to g_regex_new().
|
|
20327
20327
|
* @returns the pattern of @regex
|
|
20328
20328
|
*/
|
|
20329
|
-
get_pattern(): string
|
|
20329
|
+
get_pattern(): string
|
|
20330
20330
|
/**
|
|
20331
20331
|
* Retrieves the number of the subexpression named `name`.
|
|
20332
20332
|
* @param name name of the subexpression
|
|
20333
20333
|
* @returns The number of the subexpression or -1 if @name does not exists
|
|
20334
20334
|
*/
|
|
20335
|
-
get_string_number(name: string
|
|
20335
|
+
get_string_number(name: string): number
|
|
20336
20336
|
/**
|
|
20337
20337
|
* Scans for a match in `string` for the pattern in `regex`.
|
|
20338
20338
|
* The `match_options` are combined with the match options specified
|
|
@@ -20380,7 +20380,7 @@ interface Regex {
|
|
|
20380
20380
|
* @param match_options match options
|
|
20381
20381
|
* @returns %TRUE is the string matched, %FALSE otherwise
|
|
20382
20382
|
*/
|
|
20383
|
-
match(string: string
|
|
20383
|
+
match(string: string, match_options: RegexMatchFlags): [ /* returnType */ boolean, /* match_info */ MatchInfo ]
|
|
20384
20384
|
/**
|
|
20385
20385
|
* Using the standard algorithm for regular expression matching only
|
|
20386
20386
|
* the longest match in the string is retrieved. This function uses
|
|
@@ -20400,7 +20400,7 @@ interface Regex {
|
|
|
20400
20400
|
* @param match_options match options
|
|
20401
20401
|
* @returns %TRUE is the string matched, %FALSE otherwise
|
|
20402
20402
|
*/
|
|
20403
|
-
match_all(string: string
|
|
20403
|
+
match_all(string: string, match_options: RegexMatchFlags): [ /* returnType */ boolean, /* match_info */ MatchInfo ]
|
|
20404
20404
|
/**
|
|
20405
20405
|
* Using the standard algorithm for regular expression matching only
|
|
20406
20406
|
* the longest match in the `string` is retrieved, it is not possible
|
|
@@ -20544,7 +20544,7 @@ interface Regex {
|
|
|
20544
20544
|
* @param match_options options for the match
|
|
20545
20545
|
* @returns a newly allocated string containing the replacements
|
|
20546
20546
|
*/
|
|
20547
|
-
replace(string: string[], start_position: number, replacement: string
|
|
20547
|
+
replace(string: string[], start_position: number, replacement: string, match_options: RegexMatchFlags): string | null
|
|
20548
20548
|
/**
|
|
20549
20549
|
* Replaces all occurrences of the pattern in `regex` with the
|
|
20550
20550
|
* replacement text. `replacement` is replaced literally, to
|
|
@@ -20560,7 +20560,7 @@ interface Regex {
|
|
|
20560
20560
|
* @param match_options options for the match
|
|
20561
20561
|
* @returns a newly allocated string containing the replacements
|
|
20562
20562
|
*/
|
|
20563
|
-
replace_literal(string: string[], start_position: number, replacement: string
|
|
20563
|
+
replace_literal(string: string[], start_position: number, replacement: string, match_options: RegexMatchFlags): string | null
|
|
20564
20564
|
/**
|
|
20565
20565
|
* Breaks the string on the pattern, and returns an array of the tokens.
|
|
20566
20566
|
* If the pattern contains capturing parentheses, then the text for each
|
|
@@ -20583,7 +20583,7 @@ interface Regex {
|
|
|
20583
20583
|
* @param match_options match time option flags
|
|
20584
20584
|
* @returns a %NULL-terminated gchar ** array. Free it using g_strfreev()
|
|
20585
20585
|
*/
|
|
20586
|
-
split(string: string
|
|
20586
|
+
split(string: string, match_options: RegexMatchFlags): string[]
|
|
20587
20587
|
/**
|
|
20588
20588
|
* Breaks the string on the pattern, and returns an array of the tokens.
|
|
20589
20589
|
* If the pattern contains capturing parentheses, then the text for each
|
|
@@ -20693,7 +20693,7 @@ class Regex {
|
|
|
20693
20693
|
* @param match_options match options for the regular expression, or 0
|
|
20694
20694
|
* @returns a #GRegex structure or %NULL if an error occurred. Call g_regex_unref() when you are done with it
|
|
20695
20695
|
*/
|
|
20696
|
-
constructor(pattern: string
|
|
20696
|
+
constructor(pattern: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags)
|
|
20697
20697
|
/**
|
|
20698
20698
|
* Compiles the regular expression to an internal form, and does
|
|
20699
20699
|
* the initial setup of the #GRegex structure.
|
|
@@ -20703,7 +20703,7 @@ class Regex {
|
|
|
20703
20703
|
* @param match_options match options for the regular expression, or 0
|
|
20704
20704
|
* @returns a #GRegex structure or %NULL if an error occurred. Call g_regex_unref() when you are done with it
|
|
20705
20705
|
*/
|
|
20706
|
-
static new(pattern: string
|
|
20706
|
+
static new(pattern: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): Regex
|
|
20707
20707
|
/**
|
|
20708
20708
|
* Checks whether `replacement` is a valid replacement string
|
|
20709
20709
|
* (see g_regex_replace()), i.e. that all escape sequences in
|
|
@@ -20717,7 +20717,7 @@ class Regex {
|
|
|
20717
20717
|
* @param replacement the replacement string
|
|
20718
20718
|
* @returns whether @replacement is a valid replacement string
|
|
20719
20719
|
*/
|
|
20720
|
-
static check_replacement(replacement: string
|
|
20720
|
+
static check_replacement(replacement: string): [ /* returnType */ boolean, /* has_references */ boolean ]
|
|
20721
20721
|
static error_quark(): Quark
|
|
20722
20722
|
/**
|
|
20723
20723
|
* Escapes the nul characters in `string` to "\x00". It can be used
|
|
@@ -20729,7 +20729,7 @@ class Regex {
|
|
|
20729
20729
|
* @param length the length of `string`
|
|
20730
20730
|
* @returns a newly-allocated escaped string
|
|
20731
20731
|
*/
|
|
20732
|
-
static escape_nul(string: string
|
|
20732
|
+
static escape_nul(string: string, length: number): string | null
|
|
20733
20733
|
/**
|
|
20734
20734
|
* Escapes the special characters used for regular expressions
|
|
20735
20735
|
* in `string,` for instance "a.b*c" becomes "a\.b\*c". This
|
|
@@ -20742,7 +20742,7 @@ class Regex {
|
|
|
20742
20742
|
* @param length the length of `string,` in bytes, or -1 if `string` is nul-terminated
|
|
20743
20743
|
* @returns a newly-allocated escaped string
|
|
20744
20744
|
*/
|
|
20745
|
-
static escape_string(string: string
|
|
20745
|
+
static escape_string(string: string, length: number): string | null
|
|
20746
20746
|
/**
|
|
20747
20747
|
* Scans for a match in `string` for `pattern`.
|
|
20748
20748
|
*
|
|
@@ -20760,7 +20760,7 @@ class Regex {
|
|
|
20760
20760
|
* @param match_options match options, or 0
|
|
20761
20761
|
* @returns %TRUE if the string matched, %FALSE otherwise
|
|
20762
20762
|
*/
|
|
20763
|
-
static match_simple(pattern: string
|
|
20763
|
+
static match_simple(pattern: string, string: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): boolean
|
|
20764
20764
|
/**
|
|
20765
20765
|
* Breaks the string on the pattern, and returns an array of
|
|
20766
20766
|
* the tokens. If the pattern contains capturing parentheses,
|
|
@@ -20795,7 +20795,7 @@ class Regex {
|
|
|
20795
20795
|
* @param match_options match options, or 0
|
|
20796
20796
|
* @returns a %NULL-terminated array of strings. Free it using g_strfreev()
|
|
20797
20797
|
*/
|
|
20798
|
-
static split_simple(pattern: string
|
|
20798
|
+
static split_simple(pattern: string, string: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): string[]
|
|
20799
20799
|
}
|
|
20800
20800
|
|
|
20801
20801
|
interface SList {
|
|
@@ -20851,7 +20851,7 @@ interface Scanner {
|
|
|
20851
20851
|
* name of input stream, featured by the default message handler
|
|
20852
20852
|
* @field
|
|
20853
20853
|
*/
|
|
20854
|
-
input_name: string
|
|
20854
|
+
input_name: string
|
|
20855
20855
|
/**
|
|
20856
20856
|
* quarked data
|
|
20857
20857
|
* @field
|
|
@@ -20958,7 +20958,7 @@ interface Scanner {
|
|
|
20958
20958
|
* @param text the text buffer to scan
|
|
20959
20959
|
* @param text_len the length of the text buffer
|
|
20960
20960
|
*/
|
|
20961
|
-
input_text(text: string
|
|
20961
|
+
input_text(text: string, text_len: number): void
|
|
20962
20962
|
/**
|
|
20963
20963
|
* Looks up a symbol in the current scope and return its value.
|
|
20964
20964
|
* If the symbol is not bound in the current scope, %NULL is
|
|
@@ -20966,7 +20966,7 @@ interface Scanner {
|
|
|
20966
20966
|
* @param symbol the symbol to look up
|
|
20967
20967
|
* @returns the value of @symbol in the current scope, or %NULL if @symbol is not bound in the current scope
|
|
20968
20968
|
*/
|
|
20969
|
-
lookup_symbol(symbol: string
|
|
20969
|
+
lookup_symbol(symbol: string): any | null
|
|
20970
20970
|
/**
|
|
20971
20971
|
* Parses the next token, without removing it from the input stream.
|
|
20972
20972
|
* The token data is placed in the `next_token,` `next_value,` `next_line,`
|
|
@@ -20988,7 +20988,7 @@ interface Scanner {
|
|
|
20988
20988
|
* @param symbol the symbol to add
|
|
20989
20989
|
* @param value the value of the symbol
|
|
20990
20990
|
*/
|
|
20991
|
-
scope_add_symbol(scope_id: number, symbol: string
|
|
20991
|
+
scope_add_symbol(scope_id: number, symbol: string, value: any | null): void
|
|
20992
20992
|
/**
|
|
20993
20993
|
* Looks up a symbol in a scope and return its value. If the
|
|
20994
20994
|
* symbol is not bound in the scope, %NULL is returned.
|
|
@@ -20996,13 +20996,13 @@ interface Scanner {
|
|
|
20996
20996
|
* @param symbol the symbol to look up
|
|
20997
20997
|
* @returns the value of @symbol in the given scope, or %NULL if @symbol is not bound in the given scope.
|
|
20998
20998
|
*/
|
|
20999
|
-
scope_lookup_symbol(scope_id: number, symbol: string
|
|
20999
|
+
scope_lookup_symbol(scope_id: number, symbol: string): any | null
|
|
21000
21000
|
/**
|
|
21001
21001
|
* Removes a symbol from a scope.
|
|
21002
21002
|
* @param scope_id the scope id
|
|
21003
21003
|
* @param symbol the symbol to remove
|
|
21004
21004
|
*/
|
|
21005
|
-
scope_remove_symbol(scope_id: number, symbol: string
|
|
21005
|
+
scope_remove_symbol(scope_id: number, symbol: string): void
|
|
21006
21006
|
/**
|
|
21007
21007
|
* Sets the current scope.
|
|
21008
21008
|
* @param scope_id the new scope id
|
|
@@ -21031,7 +21031,7 @@ interface Scanner {
|
|
|
21031
21031
|
* @param message a message string to output at the end of the warning/error, or %NULL.
|
|
21032
21032
|
* @param is_error if %TRUE it is output as an error. If %FALSE it is output as a warning.
|
|
21033
21033
|
*/
|
|
21034
|
-
unexp_token(expected_token: TokenType, identifier_spec: string
|
|
21034
|
+
unexp_token(expected_token: TokenType, identifier_spec: string, symbol_spec: string, symbol_name: string, message: string, is_error: number): void
|
|
21035
21035
|
}
|
|
21036
21036
|
|
|
21037
21037
|
/**
|
|
@@ -21840,7 +21840,7 @@ interface Source {
|
|
|
21840
21840
|
* Also see g_source_set_static_name().
|
|
21841
21841
|
* @param name debug name for the source
|
|
21842
21842
|
*/
|
|
21843
|
-
set_name(name: string
|
|
21843
|
+
set_name(name: string): void
|
|
21844
21844
|
/**
|
|
21845
21845
|
* Sets the priority of a source. While the main loop is being run, a
|
|
21846
21846
|
* source will be dispatched if it is ready to be dispatched and no
|
|
@@ -21885,7 +21885,7 @@ interface Source {
|
|
|
21885
21885
|
* string literals.
|
|
21886
21886
|
* @param name debug name for the source
|
|
21887
21887
|
*/
|
|
21888
|
-
set_static_name(name: string
|
|
21888
|
+
set_static_name(name: string): void
|
|
21889
21889
|
/**
|
|
21890
21890
|
* Decreases the reference count of a source by one. If the
|
|
21891
21891
|
* resulting reference count is zero the source and associated
|
|
@@ -21998,7 +21998,7 @@ class Source {
|
|
|
21998
21998
|
* @param tag a #GSource ID
|
|
21999
21999
|
* @param name debug name for the source
|
|
22000
22000
|
*/
|
|
22001
|
-
static set_name_by_id(tag: number, name: string
|
|
22001
|
+
static set_name_by_id(tag: number, name: string): void
|
|
22002
22002
|
}
|
|
22003
22003
|
|
|
22004
22004
|
interface SourceCallbackFuncs {
|
|
@@ -22119,7 +22119,7 @@ interface String {
|
|
|
22119
22119
|
* @param val the string to append onto the end of `string`
|
|
22120
22120
|
* @returns @string
|
|
22121
22121
|
*/
|
|
22122
|
-
append(val: string
|
|
22122
|
+
append(val: string): String
|
|
22123
22123
|
/**
|
|
22124
22124
|
* Adds a byte onto the end of a #GString, expanding
|
|
22125
22125
|
* it if necessary.
|
|
@@ -22141,7 +22141,7 @@ interface String {
|
|
|
22141
22141
|
* @param len number of bytes of `val` to use, or -1 for all of `val`
|
|
22142
22142
|
* @returns @string
|
|
22143
22143
|
*/
|
|
22144
|
-
append_len(val: string
|
|
22144
|
+
append_len(val: string, len: number): String
|
|
22145
22145
|
/**
|
|
22146
22146
|
* Converts a Unicode character into UTF-8, and appends it
|
|
22147
22147
|
* to the string.
|
|
@@ -22157,7 +22157,7 @@ interface String {
|
|
|
22157
22157
|
* @param allow_utf8 set %TRUE if the escaped string may include UTF8 characters
|
|
22158
22158
|
* @returns @string
|
|
22159
22159
|
*/
|
|
22160
|
-
append_uri_escaped(unescaped: string
|
|
22160
|
+
append_uri_escaped(unescaped: string, reserved_chars_allowed: string, allow_utf8: boolean): String
|
|
22161
22161
|
/**
|
|
22162
22162
|
* Converts all uppercase ASCII letters to lowercase ASCII letters.
|
|
22163
22163
|
* @returns passed-in @string pointer, with all the uppercase characters converted to lowercase in place, with semantics that exactly match g_ascii_tolower().
|
|
@@ -22176,7 +22176,7 @@ interface String {
|
|
|
22176
22176
|
* @param rval the string to copy into `string`
|
|
22177
22177
|
* @returns @string
|
|
22178
22178
|
*/
|
|
22179
|
-
assign(rval: string
|
|
22179
|
+
assign(rval: string): String
|
|
22180
22180
|
/**
|
|
22181
22181
|
* Converts a #GString to lowercase.
|
|
22182
22182
|
* @returns the #GString
|
|
@@ -22241,7 +22241,7 @@ interface String {
|
|
|
22241
22241
|
* @param val the string to insert
|
|
22242
22242
|
* @returns @string
|
|
22243
22243
|
*/
|
|
22244
|
-
insert(pos: number, val: string
|
|
22244
|
+
insert(pos: number, val: string): String
|
|
22245
22245
|
/**
|
|
22246
22246
|
* Inserts a byte into a #GString, expanding it if necessary.
|
|
22247
22247
|
* @param pos the position to insert the byte
|
|
@@ -22265,7 +22265,7 @@ interface String {
|
|
|
22265
22265
|
* @param len number of bytes of `val` to insert, or -1 for all of `val`
|
|
22266
22266
|
* @returns @string
|
|
22267
22267
|
*/
|
|
22268
|
-
insert_len(pos: number, val: string
|
|
22268
|
+
insert_len(pos: number, val: string, len: number): String
|
|
22269
22269
|
/**
|
|
22270
22270
|
* Converts a Unicode character into UTF-8, and insert it
|
|
22271
22271
|
* into the string at the given position.
|
|
@@ -22280,7 +22280,7 @@ interface String {
|
|
|
22280
22280
|
* @param val the string that will overwrite the `string` starting at `pos`
|
|
22281
22281
|
* @returns @string
|
|
22282
22282
|
*/
|
|
22283
|
-
overwrite(pos: number, val: string
|
|
22283
|
+
overwrite(pos: number, val: string): String
|
|
22284
22284
|
/**
|
|
22285
22285
|
* Overwrites part of a string, lengthening it if necessary.
|
|
22286
22286
|
* This function will work with embedded nuls.
|
|
@@ -22289,14 +22289,14 @@ interface String {
|
|
|
22289
22289
|
* @param len the number of bytes to write from `val`
|
|
22290
22290
|
* @returns @string
|
|
22291
22291
|
*/
|
|
22292
|
-
overwrite_len(pos: number, val: string
|
|
22292
|
+
overwrite_len(pos: number, val: string, len: number): String
|
|
22293
22293
|
/**
|
|
22294
22294
|
* Adds a string on to the start of a #GString,
|
|
22295
22295
|
* expanding it if necessary.
|
|
22296
22296
|
* @param val the string to prepend on the start of `string`
|
|
22297
22297
|
* @returns @string
|
|
22298
22298
|
*/
|
|
22299
|
-
prepend(val: string
|
|
22299
|
+
prepend(val: string): String
|
|
22300
22300
|
/**
|
|
22301
22301
|
* Adds a byte onto the start of a #GString,
|
|
22302
22302
|
* expanding it if necessary.
|
|
@@ -22318,7 +22318,7 @@ interface String {
|
|
|
22318
22318
|
* @param len number of bytes in `val` to prepend, or -1 for all of `val`
|
|
22319
22319
|
* @returns @string
|
|
22320
22320
|
*/
|
|
22321
|
-
prepend_len(val: string
|
|
22321
|
+
prepend_len(val: string, len: number): String
|
|
22322
22322
|
/**
|
|
22323
22323
|
* Converts a Unicode character into UTF-8, and prepends it
|
|
22324
22324
|
* to the string.
|
|
@@ -22341,7 +22341,7 @@ interface String {
|
|
|
22341
22341
|
* @param limit the maximum instances of `find` to replace with `replace,` or `0` for no limit
|
|
22342
22342
|
* @returns the number of find and replace operations performed.
|
|
22343
22343
|
*/
|
|
22344
|
-
replace(find: string
|
|
22344
|
+
replace(find: string, replace: string, limit: number): number
|
|
22345
22345
|
/**
|
|
22346
22346
|
* Sets the length of a #GString. If the length is less than
|
|
22347
22347
|
* the current length, the string will be truncated. If the
|
|
@@ -22404,7 +22404,7 @@ class String {
|
|
|
22404
22404
|
* @param len length of `init` to use
|
|
22405
22405
|
* @returns a new #GString
|
|
22406
22406
|
*/
|
|
22407
|
-
static new_len(init: string
|
|
22407
|
+
static new_len(init: string, len: number): String
|
|
22408
22408
|
/**
|
|
22409
22409
|
* Creates a new #GString, initialized with the given string.
|
|
22410
22410
|
*
|
|
@@ -22459,7 +22459,7 @@ interface StringChunk {
|
|
|
22459
22459
|
* @param string the string to add
|
|
22460
22460
|
* @returns a pointer to the copy of @string within the #GStringChunk
|
|
22461
22461
|
*/
|
|
22462
|
-
insert(string: string
|
|
22462
|
+
insert(string: string): string | null
|
|
22463
22463
|
/**
|
|
22464
22464
|
* Adds a copy of `string` to the #GStringChunk, unless the same
|
|
22465
22465
|
* string has already been added to the #GStringChunk with
|
|
@@ -22477,7 +22477,7 @@ interface StringChunk {
|
|
|
22477
22477
|
* @param string the string to add
|
|
22478
22478
|
* @returns a pointer to the new or existing copy of @string within the #GStringChunk
|
|
22479
22479
|
*/
|
|
22480
|
-
insert_const(string: string
|
|
22480
|
+
insert_const(string: string): string | null
|
|
22481
22481
|
/**
|
|
22482
22482
|
* Adds a copy of the first `len` bytes of `string` to the #GStringChunk.
|
|
22483
22483
|
* The copy is nul-terminated.
|
|
@@ -22492,7 +22492,7 @@ interface StringChunk {
|
|
|
22492
22492
|
* @param len number of bytes of `string` to insert, or -1 to insert a nul-terminated string
|
|
22493
22493
|
* @returns a pointer to the copy of @string within the #GStringChunk
|
|
22494
22494
|
*/
|
|
22495
|
-
insert_len(string: string
|
|
22495
|
+
insert_len(string: string, len: number): string | null
|
|
22496
22496
|
}
|
|
22497
22497
|
|
|
22498
22498
|
/**
|
|
@@ -22517,7 +22517,7 @@ interface StrvBuilder {
|
|
|
22517
22517
|
* Since 2.68
|
|
22518
22518
|
* @param value a string.
|
|
22519
22519
|
*/
|
|
22520
|
-
add(value: string
|
|
22520
|
+
add(value: string): void
|
|
22521
22521
|
/**
|
|
22522
22522
|
* Appends all the strings in the given vector to the builder.
|
|
22523
22523
|
*
|
|
@@ -23148,7 +23148,7 @@ class TimeVal {
|
|
|
23148
23148
|
* @param iso_date an ISO 8601 encoded date string
|
|
23149
23149
|
* @returns %TRUE if the conversion was successful.
|
|
23150
23150
|
*/
|
|
23151
|
-
static from_iso8601(iso_date: string
|
|
23151
|
+
static from_iso8601(iso_date: string): [ /* returnType */ boolean, /* time_ */ TimeVal ]
|
|
23152
23152
|
}
|
|
23153
23153
|
|
|
23154
23154
|
interface TimeZone {
|
|
@@ -23211,7 +23211,7 @@ interface TimeZone {
|
|
|
23211
23211
|
* @param interval an interval within the timezone
|
|
23212
23212
|
* @returns the time zone abbreviation, which belongs to @tz
|
|
23213
23213
|
*/
|
|
23214
|
-
get_abbreviation(interval: number): string
|
|
23214
|
+
get_abbreviation(interval: number): string
|
|
23215
23215
|
/**
|
|
23216
23216
|
* Get the identifier of this #GTimeZone, as passed to g_time_zone_new().
|
|
23217
23217
|
* If the identifier passed at construction time was not recognised, `UTC` will
|
|
@@ -23223,7 +23223,7 @@ interface TimeZone {
|
|
|
23223
23223
|
* this function.
|
|
23224
23224
|
* @returns identifier for this timezone
|
|
23225
23225
|
*/
|
|
23226
|
-
get_identifier(): string
|
|
23226
|
+
get_identifier(): string
|
|
23227
23227
|
/**
|
|
23228
23228
|
* Determines the offset to UTC in effect during a particular `interval`
|
|
23229
23229
|
* of time in the time zone `tz`.
|
|
@@ -23819,7 +23819,7 @@ interface Uri {
|
|
|
23819
23819
|
* flags with which `uri` was created.
|
|
23820
23820
|
* @returns @uri's path.
|
|
23821
23821
|
*/
|
|
23822
|
-
get_path(): string
|
|
23822
|
+
get_path(): string
|
|
23823
23823
|
/**
|
|
23824
23824
|
* Gets `uri'`s port.
|
|
23825
23825
|
* @returns @uri's port, or `-1` if no port was specified.
|
|
@@ -23839,7 +23839,7 @@ interface Uri {
|
|
|
23839
23839
|
* regardless of the string or strings that `uri` was created from.
|
|
23840
23840
|
* @returns @uri's scheme.
|
|
23841
23841
|
*/
|
|
23842
|
-
get_scheme(): string
|
|
23842
|
+
get_scheme(): string
|
|
23843
23843
|
/**
|
|
23844
23844
|
* Gets the ‘username’ component of `uri'`s userinfo, which may contain
|
|
23845
23845
|
* `%`-encoding, depending on the flags with which `uri` was created.
|
|
@@ -23863,7 +23863,7 @@ interface Uri {
|
|
|
23863
23863
|
* @param flags flags describing how to parse `uri_ref`
|
|
23864
23864
|
* @returns a new #GUri, or NULL on error.
|
|
23865
23865
|
*/
|
|
23866
|
-
parse_relative(uri_ref: string
|
|
23866
|
+
parse_relative(uri_ref: string, flags: UriFlags): Uri
|
|
23867
23867
|
/**
|
|
23868
23868
|
* Returns a string representing `uri`.
|
|
23869
23869
|
*
|
|
@@ -24023,7 +24023,7 @@ class Uri {
|
|
|
24023
24023
|
* @param fragment the fragment, or %NULL
|
|
24024
24024
|
* @returns a new #GUri
|
|
24025
24025
|
*/
|
|
24026
|
-
static build(flags: UriFlags, scheme: string
|
|
24026
|
+
static build(flags: UriFlags, scheme: string, userinfo: string | null, host: string | null, port: number, path: string, query: string | null, fragment: string | null): Uri
|
|
24027
24027
|
/**
|
|
24028
24028
|
* Creates a new #GUri from the given components according to `flags`
|
|
24029
24029
|
* (%G_URI_FLAGS_HAS_PASSWORD is added unconditionally). The `flags` must be
|
|
@@ -24045,7 +24045,7 @@ class Uri {
|
|
|
24045
24045
|
* @param fragment the fragment, or %NULL
|
|
24046
24046
|
* @returns a new #GUri
|
|
24047
24047
|
*/
|
|
24048
|
-
static build_with_user(flags: UriFlags, scheme: string
|
|
24048
|
+
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
|
|
24049
24049
|
static error_quark(): Quark
|
|
24050
24050
|
/**
|
|
24051
24051
|
* Escapes arbitrary data for use in a URI.
|
|
@@ -24078,7 +24078,7 @@ class Uri {
|
|
|
24078
24078
|
* @param allow_utf8 %TRUE if the result can include UTF-8 characters.
|
|
24079
24079
|
* @returns an escaped version of @unescaped. The returned string should be freed when no longer needed.
|
|
24080
24080
|
*/
|
|
24081
|
-
static escape_string(unescaped: string
|
|
24081
|
+
static escape_string(unescaped: string, reserved_chars_allowed: string | null, allow_utf8: boolean): string | null
|
|
24082
24082
|
/**
|
|
24083
24083
|
* Parses `uri_string` according to `flags,` to determine whether it is a valid
|
|
24084
24084
|
* [absolute URI][relative-absolute-uris], i.e. it does not need to be resolved
|
|
@@ -24092,7 +24092,7 @@ class Uri {
|
|
|
24092
24092
|
* @param flags flags for parsing `uri_string`
|
|
24093
24093
|
* @returns %TRUE if @uri_string is a valid absolute URI, %FALSE on error.
|
|
24094
24094
|
*/
|
|
24095
|
-
static is_valid(uri_string: string
|
|
24095
|
+
static is_valid(uri_string: string, flags: UriFlags): boolean
|
|
24096
24096
|
/**
|
|
24097
24097
|
* Joins the given components together according to `flags` to create
|
|
24098
24098
|
* an absolute URI string. `path` may not be %NULL (though it may be the empty
|
|
@@ -24118,7 +24118,7 @@ class Uri {
|
|
|
24118
24118
|
* @param fragment the fragment, or %NULL
|
|
24119
24119
|
* @returns an absolute URI string
|
|
24120
24120
|
*/
|
|
24121
|
-
static join(flags: UriFlags, scheme: string | null, userinfo: string | null, host: string | null, port: number, path: string
|
|
24121
|
+
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
|
|
24122
24122
|
/**
|
|
24123
24123
|
* Joins the given components together according to `flags` to create
|
|
24124
24124
|
* an absolute URI string. `path` may not be %NULL (though it may be the empty
|
|
@@ -24141,7 +24141,7 @@ class Uri {
|
|
|
24141
24141
|
* @param fragment the fragment, or %NULL
|
|
24142
24142
|
* @returns an absolute URI string
|
|
24143
24143
|
*/
|
|
24144
|
-
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
|
|
24144
|
+
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
|
|
24145
24145
|
/**
|
|
24146
24146
|
* Splits an URI list conforming to the text/uri-list
|
|
24147
24147
|
* mime type defined in RFC 2483 into individual URIs,
|
|
@@ -24149,7 +24149,7 @@ class Uri {
|
|
|
24149
24149
|
* @param uri_list an URI list
|
|
24150
24150
|
* @returns a newly allocated %NULL-terminated list of strings holding the individual URIs. The array should be freed with g_strfreev().
|
|
24151
24151
|
*/
|
|
24152
|
-
static list_extract_uris(uri_list: string
|
|
24152
|
+
static list_extract_uris(uri_list: string): string[]
|
|
24153
24153
|
/**
|
|
24154
24154
|
* Parses `uri_string` according to `flags`. If the result is not a
|
|
24155
24155
|
* valid [absolute URI][relative-absolute-uris], it will be discarded, and an
|
|
@@ -24158,7 +24158,7 @@ class Uri {
|
|
|
24158
24158
|
* @param flags flags describing how to parse `uri_string`
|
|
24159
24159
|
* @returns a new #GUri, or NULL on error.
|
|
24160
24160
|
*/
|
|
24161
|
-
static parse(uri_string: string
|
|
24161
|
+
static parse(uri_string: string, flags: UriFlags): Uri
|
|
24162
24162
|
/**
|
|
24163
24163
|
* Many URI schemes include one or more attribute/value pairs as part of the URI
|
|
24164
24164
|
* value. This method can be used to parse them into a hash table. When an
|
|
@@ -24190,7 +24190,7 @@ class Uri {
|
|
|
24190
24190
|
* @param flags flags to modify the way the parameters are handled.
|
|
24191
24191
|
* @returns A hash table of attribute/value pairs, with both names and values fully-decoded; or %NULL on error.
|
|
24192
24192
|
*/
|
|
24193
|
-
static parse_params(params: string
|
|
24193
|
+
static parse_params(params: string, length: number, separators: string, flags: UriParamsFlags): HashTable
|
|
24194
24194
|
/**
|
|
24195
24195
|
* Gets the scheme portion of a URI string.
|
|
24196
24196
|
* [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) decodes the scheme
|
|
@@ -24204,7 +24204,7 @@ class Uri {
|
|
|
24204
24204
|
* @param uri a valid URI.
|
|
24205
24205
|
* @returns The ‘scheme’ component of the URI, or %NULL on error. The returned string should be freed when no longer needed.
|
|
24206
24206
|
*/
|
|
24207
|
-
static parse_scheme(uri: string
|
|
24207
|
+
static parse_scheme(uri: string): string | null
|
|
24208
24208
|
/**
|
|
24209
24209
|
* Gets the scheme portion of a URI string.
|
|
24210
24210
|
* [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) decodes the scheme
|
|
@@ -24221,7 +24221,7 @@ class Uri {
|
|
|
24221
24221
|
* @param uri a valid URI.
|
|
24222
24222
|
* @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.
|
|
24223
24223
|
*/
|
|
24224
|
-
static peek_scheme(uri: string
|
|
24224
|
+
static peek_scheme(uri: string): string | null
|
|
24225
24225
|
/**
|
|
24226
24226
|
* Parses `uri_ref` according to `flags` and, if it is a
|
|
24227
24227
|
* [relative URI][relative-absolute-uris], resolves it relative to
|
|
@@ -24235,7 +24235,7 @@ class Uri {
|
|
|
24235
24235
|
* @param flags flags describing how to parse `uri_ref`
|
|
24236
24236
|
* @returns the resolved URI string, or NULL on error.
|
|
24237
24237
|
*/
|
|
24238
|
-
static resolve_relative(base_uri_string: string | null, uri_ref: string
|
|
24238
|
+
static resolve_relative(base_uri_string: string | null, uri_ref: string, flags: UriFlags): string | null
|
|
24239
24239
|
/**
|
|
24240
24240
|
* Parses `uri_ref` (which can be an
|
|
24241
24241
|
* [absolute or relative URI][relative-absolute-uris]) according to `flags,` and
|
|
@@ -24257,7 +24257,7 @@ class Uri {
|
|
|
24257
24257
|
* @param flags flags for parsing `uri_ref`
|
|
24258
24258
|
* @returns %TRUE if @uri_ref parsed successfully, %FALSE on error.
|
|
24259
24259
|
*/
|
|
24260
|
-
static split(uri_ref: string
|
|
24260
|
+
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 ]
|
|
24261
24261
|
/**
|
|
24262
24262
|
* Parses `uri_string` (which must be an [absolute URI][relative-absolute-uris])
|
|
24263
24263
|
* according to `flags,` and returns the pieces relevant to connecting to a host.
|
|
@@ -24269,7 +24269,7 @@ class Uri {
|
|
|
24269
24269
|
* @param flags flags for parsing `uri_string`
|
|
24270
24270
|
* @returns %TRUE if @uri_string parsed successfully, %FALSE on error.
|
|
24271
24271
|
*/
|
|
24272
|
-
static split_network(uri_string: string
|
|
24272
|
+
static split_network(uri_string: string, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* host */ string | null, /* port */ number ]
|
|
24273
24273
|
/**
|
|
24274
24274
|
* Parses `uri_ref` (which can be an
|
|
24275
24275
|
* [absolute or relative URI][relative-absolute-uris]) according to `flags,` and
|
|
@@ -24286,7 +24286,7 @@ class Uri {
|
|
|
24286
24286
|
* @param flags flags for parsing `uri_ref`
|
|
24287
24287
|
* @returns %TRUE if @uri_ref parsed successfully, %FALSE on error.
|
|
24288
24288
|
*/
|
|
24289
|
-
static split_with_user(uri_ref: string
|
|
24289
|
+
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 ]
|
|
24290
24290
|
/**
|
|
24291
24291
|
* Unescapes a segment of an escaped string as binary data.
|
|
24292
24292
|
*
|
|
@@ -24303,7 +24303,7 @@ class Uri {
|
|
|
24303
24303
|
* @param illegal_characters a string of illegal characters not to be allowed, or %NULL.
|
|
24304
24304
|
* @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.
|
|
24305
24305
|
*/
|
|
24306
|
-
static unescape_bytes(escaped_string: string
|
|
24306
|
+
static unescape_bytes(escaped_string: string, length: number, illegal_characters: string | null): Bytes
|
|
24307
24307
|
/**
|
|
24308
24308
|
* Unescapes a segment of an escaped string.
|
|
24309
24309
|
*
|
|
@@ -24333,7 +24333,7 @@ class Uri {
|
|
|
24333
24333
|
* @param illegal_characters a string of illegal characters not to be allowed, or %NULL.
|
|
24334
24334
|
* @returns an unescaped version of @escaped_string. The returned string should be freed when no longer needed.
|
|
24335
24335
|
*/
|
|
24336
|
-
static unescape_string(escaped_string: string
|
|
24336
|
+
static unescape_string(escaped_string: string, illegal_characters: string | null): string | null
|
|
24337
24337
|
}
|
|
24338
24338
|
|
|
24339
24339
|
interface UriParamsIter {
|
|
@@ -24381,7 +24381,7 @@ interface UriParamsIter {
|
|
|
24381
24381
|
* @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.
|
|
24382
24382
|
* @param flags flags to modify the way the parameters are handled.
|
|
24383
24383
|
*/
|
|
24384
|
-
init(params: string
|
|
24384
|
+
init(params: string, length: number, separators: string, flags: UriParamsFlags): void
|
|
24385
24385
|
/**
|
|
24386
24386
|
* Advances `iter` and retrieves the next attribute/value. %FALSE is returned if
|
|
24387
24387
|
* an error has occurred (in which case `error` is set), or if the end of the
|
|
@@ -24460,7 +24460,7 @@ interface Variant {
|
|
|
24460
24460
|
* @param copy_only %TRUE to ensure the format string makes deep copies
|
|
24461
24461
|
* @returns %TRUE if @format_string is safe to use
|
|
24462
24462
|
*/
|
|
24463
|
-
check_format_string(format_string: string
|
|
24463
|
+
check_format_string(format_string: string, copy_only: boolean): boolean
|
|
24464
24464
|
/**
|
|
24465
24465
|
* Classifies `value` according to its top-level type.
|
|
24466
24466
|
* @returns the #GVariantClass of @value
|
|
@@ -24805,7 +24805,7 @@ interface Variant {
|
|
|
24805
24805
|
* The return value remains valid as long as `value` exists.
|
|
24806
24806
|
* @returns the constant string, UTF-8 encoded
|
|
24807
24807
|
*/
|
|
24808
|
-
get_string(): [ /* returnType */ string
|
|
24808
|
+
get_string(): [ /* returnType */ string, /* length */ number ]
|
|
24809
24809
|
/**
|
|
24810
24810
|
* Gets the contents of an array of strings #GVariant. This call
|
|
24811
24811
|
* makes a shallow copy; the return result should be released with
|
|
@@ -24834,7 +24834,7 @@ interface Variant {
|
|
|
24834
24834
|
* string belongs to #GVariant and must not be freed.
|
|
24835
24835
|
* @returns the type string for the type of @value
|
|
24836
24836
|
*/
|
|
24837
|
-
get_type_string(): string
|
|
24837
|
+
get_type_string(): string
|
|
24838
24838
|
/**
|
|
24839
24839
|
* Returns the 16-bit unsigned integer value of `value`.
|
|
24840
24840
|
*
|
|
@@ -24945,7 +24945,7 @@ interface Variant {
|
|
|
24945
24945
|
* @param expected_type a #GVariantType, or %NULL
|
|
24946
24946
|
* @returns the value of the dictionary key, or %NULL
|
|
24947
24947
|
*/
|
|
24948
|
-
lookup_value(key: string
|
|
24948
|
+
lookup_value(key: string, expected_type: VariantType | null): Variant
|
|
24949
24949
|
/**
|
|
24950
24950
|
* Determines the number of children in a container #GVariant instance.
|
|
24951
24951
|
* This includes variants, maybes, arrays, tuples and dictionary
|
|
@@ -25533,7 +25533,7 @@ class Variant {
|
|
|
25533
25533
|
* @param object_path a normal C nul-terminated string
|
|
25534
25534
|
* @returns a floating reference to a new object path #GVariant instance
|
|
25535
25535
|
*/
|
|
25536
|
-
static new_object_path(object_path: string
|
|
25536
|
+
static new_object_path(object_path: string): Variant
|
|
25537
25537
|
/**
|
|
25538
25538
|
* Constructs an array of object paths #GVariant from the given array of
|
|
25539
25539
|
* strings.
|
|
@@ -25555,7 +25555,7 @@ class Variant {
|
|
|
25555
25555
|
* @param signature a normal C nul-terminated string
|
|
25556
25556
|
* @returns a floating reference to a new signature #GVariant instance
|
|
25557
25557
|
*/
|
|
25558
|
-
static new_signature(signature: string
|
|
25558
|
+
static new_signature(signature: string): Variant
|
|
25559
25559
|
/**
|
|
25560
25560
|
* Creates a string #GVariant with the contents of `string`.
|
|
25561
25561
|
*
|
|
@@ -25566,7 +25566,7 @@ class Variant {
|
|
|
25566
25566
|
* @param string a normal UTF-8 nul-terminated string
|
|
25567
25567
|
* @returns a floating reference to a new string #GVariant instance
|
|
25568
25568
|
*/
|
|
25569
|
-
static new_string(string: string
|
|
25569
|
+
static new_string(string: string): Variant
|
|
25570
25570
|
/**
|
|
25571
25571
|
* Constructs an array of strings #GVariant from the given array of
|
|
25572
25572
|
* strings.
|
|
@@ -25635,7 +25635,7 @@ class Variant {
|
|
|
25635
25635
|
* @param string a normal C nul-terminated string
|
|
25636
25636
|
* @returns %TRUE if @string is a D-Bus object path
|
|
25637
25637
|
*/
|
|
25638
|
-
static is_object_path(string: string
|
|
25638
|
+
static is_object_path(string: string): boolean
|
|
25639
25639
|
/**
|
|
25640
25640
|
* Determines if a given string is a valid D-Bus type signature. You
|
|
25641
25641
|
* should ensure that a string is a valid D-Bus type signature before
|
|
@@ -25646,7 +25646,7 @@ class Variant {
|
|
|
25646
25646
|
* @param string a normal C nul-terminated string
|
|
25647
25647
|
* @returns %TRUE if @string is a D-Bus type signature
|
|
25648
25648
|
*/
|
|
25649
|
-
static is_signature(string: string
|
|
25649
|
+
static is_signature(string: string): boolean
|
|
25650
25650
|
/**
|
|
25651
25651
|
* Parses a #GVariant from a text representation.
|
|
25652
25652
|
*
|
|
@@ -25689,7 +25689,7 @@ class Variant {
|
|
|
25689
25689
|
* @param endptr a location to store the end pointer, or %NULL
|
|
25690
25690
|
* @returns a non-floating reference to a #GVariant, or %NULL
|
|
25691
25691
|
*/
|
|
25692
|
-
static parse(type: VariantType | null, text: string
|
|
25692
|
+
static parse(type: VariantType | null, text: string, limit: string | null, endptr: string | null): Variant
|
|
25693
25693
|
/**
|
|
25694
25694
|
* Pretty-prints a message showing the context of a #GVariant parse
|
|
25695
25695
|
* error within the string for which parsing was attempted.
|
|
@@ -25728,7 +25728,7 @@ class Variant {
|
|
|
25728
25728
|
* @param source_str the string that was given to the parser
|
|
25729
25729
|
* @returns the printed message
|
|
25730
25730
|
*/
|
|
25731
|
-
static parse_error_print_context(error: Error, source_str: string
|
|
25731
|
+
static parse_error_print_context(error: Error, source_str: string): string | null
|
|
25732
25732
|
static parse_error_quark(): Quark
|
|
25733
25733
|
/**
|
|
25734
25734
|
* Same as g_variant_error_quark().
|
|
@@ -25926,7 +25926,7 @@ interface VariantDict {
|
|
|
25926
25926
|
* @param key the key to look up in the dictionary
|
|
25927
25927
|
* @returns %TRUE if @key is in @dict
|
|
25928
25928
|
*/
|
|
25929
|
-
contains(key: string
|
|
25929
|
+
contains(key: string): boolean
|
|
25930
25930
|
/**
|
|
25931
25931
|
* Returns the current value of `dict` as a #GVariant of type
|
|
25932
25932
|
* %G_VARIANT_TYPE_VARDICT, clearing it in the process.
|
|
@@ -25945,7 +25945,7 @@ interface VariantDict {
|
|
|
25945
25945
|
* @param key the key to insert a value for
|
|
25946
25946
|
* @param value the value to insert
|
|
25947
25947
|
*/
|
|
25948
|
-
insert_value(key: string
|
|
25948
|
+
insert_value(key: string, value: Variant): void
|
|
25949
25949
|
/**
|
|
25950
25950
|
* Looks up a value in a #GVariantDict.
|
|
25951
25951
|
*
|
|
@@ -25962,7 +25962,7 @@ interface VariantDict {
|
|
|
25962
25962
|
* @param expected_type a #GVariantType, or %NULL
|
|
25963
25963
|
* @returns the value of the dictionary key, or %NULL
|
|
25964
25964
|
*/
|
|
25965
|
-
lookup_value(key: string
|
|
25965
|
+
lookup_value(key: string, expected_type: VariantType | null): Variant | null
|
|
25966
25966
|
/**
|
|
25967
25967
|
* Increases the reference count on `dict`.
|
|
25968
25968
|
*
|
|
@@ -25976,7 +25976,7 @@ interface VariantDict {
|
|
|
25976
25976
|
* @param key the key to remove
|
|
25977
25977
|
* @returns %TRUE if the key was found and removed
|
|
25978
25978
|
*/
|
|
25979
|
-
remove(key: string
|
|
25979
|
+
remove(key: string): boolean
|
|
25980
25980
|
/**
|
|
25981
25981
|
* Decreases the reference count on `dict`.
|
|
25982
25982
|
*
|
|
@@ -26586,7 +26586,7 @@ class VariantType {
|
|
|
26586
26586
|
* @param type_string a valid GVariant type string
|
|
26587
26587
|
* @returns a new #GVariantType
|
|
26588
26588
|
*/
|
|
26589
|
-
constructor(type_string: string
|
|
26589
|
+
constructor(type_string: string)
|
|
26590
26590
|
/**
|
|
26591
26591
|
* Creates a new #GVariantType corresponding to the type string given
|
|
26592
26592
|
* by `type_string`. It is appropriate to call g_variant_type_free() on
|
|
@@ -26598,7 +26598,7 @@ class VariantType {
|
|
|
26598
26598
|
* @param type_string a valid GVariant type string
|
|
26599
26599
|
* @returns a new #GVariantType
|
|
26600
26600
|
*/
|
|
26601
|
-
static new(type_string: string
|
|
26601
|
+
static new(type_string: string): VariantType
|
|
26602
26602
|
/**
|
|
26603
26603
|
* Constructs the type corresponding to an array of elements of the
|
|
26604
26604
|
* type `type`.
|
|
@@ -26642,8 +26642,8 @@ class VariantType {
|
|
|
26642
26642
|
* @returns a new tuple #GVariantType Since 2.24
|
|
26643
26643
|
*/
|
|
26644
26644
|
static new_tuple(items: VariantType[]): VariantType
|
|
26645
|
-
static checked_(arg0: string
|
|
26646
|
-
static string_get_depth_(type_string: string
|
|
26645
|
+
static checked_(arg0: string): VariantType
|
|
26646
|
+
static string_get_depth_(type_string: string): number
|
|
26647
26647
|
/**
|
|
26648
26648
|
* Checks if `type_string` is a valid GVariant type string. This call is
|
|
26649
26649
|
* equivalent to calling g_variant_type_string_scan() and confirming
|
|
@@ -26651,7 +26651,7 @@ class VariantType {
|
|
|
26651
26651
|
* @param type_string a pointer to any string
|
|
26652
26652
|
* @returns %TRUE if @type_string is exactly one valid type string Since 2.24
|
|
26653
26653
|
*/
|
|
26654
|
-
static string_is_valid(type_string: string
|
|
26654
|
+
static string_is_valid(type_string: string): boolean
|
|
26655
26655
|
/**
|
|
26656
26656
|
* Scan for a single complete and valid GVariant type string in `string`.
|
|
26657
26657
|
* The memory pointed to by `limit` (or bytes beyond it) is never
|
|
@@ -26670,7 +26670,7 @@ class VariantType {
|
|
|
26670
26670
|
* @param limit the end of `string,` or %NULL
|
|
26671
26671
|
* @returns %TRUE if a valid type string was found
|
|
26672
26672
|
*/
|
|
26673
|
-
static string_scan(string: string
|
|
26673
|
+
static string_scan(string: string, limit: string | null): [ /* returnType */ boolean, /* endptr */ string ]
|
|
26674
26674
|
}
|
|
26675
26675
|
|
|
26676
26676
|
interface DoubleIEEE754 {
|