I myself have been using the PCRE library:

https://github.com/githwxi/ATS-Postiats/tree/master/contrib/atscntrb/atscntrb-hx-libpcre

There is also the SDSTRING library available.

You are welcome to implement a library of string manipulation functions. 
And I am happy to
add it to https://github.com/githwxi/ATS-Postiats-contrib for now.

As for building an ecosystem for ATS3, I am thinking about a way for 
contributed packages to
be hosted on-line. Not much progress is made at this stage, though.

--Hongwei




On Thursday, February 25, 2021 at 8:44:24 AM UTC-5 d4v3y_5c0n3s wrote:

>     I was searching through the prelude looking for a way to find a 
> formatted string within another string in ATS, but there doesn't seem to be 
> a built-in way to do this.  Before I make something myself, I just wanted 
> to see what opinions there are on the best way to perform this operation in 
> ATS.
>     Do you think I should use the C standard library through ATS' ability 
> to call inline C code?  Should I just loop through a strnptr and manually 
> check the chars?  Personally, I want to try using linear streams here to 
> take advantage of their low-memory overhead (and because I've fallen 
> straight into the "once you have a hammer everything looks like a nail" 
> trap with linear streams.)  But, I want to hear what others think, so 
> please let me know which solution you think is best.
>     As a side note, should we add more string manipulation capabilities to 
> the prelude?  I don't know what Hongwei's stance on this is, but if he 
> thinks it would be a good idea I'd be willing to contribute these functions 
> to the prelude.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ats-lang-users/e340f663-2266-45df-8579-a4191a257c50n%40googlegroups.com.

Reply via email to