strsubs.c functions in js

7 views
Skip to first unread message

nathan

unread,
Aug 24, 2010, 2:43:44 PM8/24/10
to ocamljs discuss
Hi,

I've converted an ocaml program over to js (great work), one of the
dependencies is on functions like re_search_forward from the str ocaml
library; which is dependent on strsubs.c.

So, the q is, have you got a port of the strsubs.c functions for js?

Best,

Nathan

Jake Donham

unread,
Aug 24, 2010, 4:13:10 PM8/24/10
to ocamljs...@googlegroups.com
On Tue, Aug 24, 2010 at 11:43 AM, nathan <nat...@webr3.org> wrote:
> So, the q is, have you got a port of the strsubs.c functions for js?

I have been implementing libraries as I need them, and I haven't
needed Str, so the answer is no.

It doesn't seem like it would be difficult to translate the C code,
but it might be better to rewrite it to use Javascript regular
expressions.

I encourage you to submit a patch via Github if you do this work. Best regards,

Jake

Reply all
Reply to author
Forward
0 new messages