berry-lang / berry

A ultra-lightweight embedded scripting language optimized for microcontrollers.
https://berry-lang.github.io
MIT License
782 stars 95 forks source link

Add string.startswith and string.endswith #406

Closed s-hadinger closed 3 months ago

s-hadinger commented 3 months ago

See @405. Add:

These new methods are lightweight, allow for case sensitive or case insensitive matches, and don't need to allocate any temporary object.

skiars commented 3 months ago

406