Re: GJS : How can I use Regex ( parse HTML ) ?




On Mon, 24 Jun 2019 at 18:56, makepost <makepost firemail cc> wrote:

Regex and MarkupParser from GLib won't work because they don't have
constructors compatible with GObject introspection, so only their helper
methods such as escape or match_simple are visible to Gjs.

Do you mean because they have non-standard ref and unref funcs? They should still be usable from gjs. They don't seem to have unref-func and ref-func annotations, but perhaps bindings can automatically infer that from the method names being unref and ref? If not, it's a bit shocking that nobody's added the annotations in all this time, but the worst that could happen is a memory leak.
 
--
TH



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]