Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC]: add string/base/slice-grapheme-clusters #35

Open
kgryte opened this issue Feb 14, 2025 · 0 comments
Open

[RFC]: add string/base/slice-grapheme-clusters #35

kgryte opened this issue Feb 14, 2025 · 0 comments
Assignees
Labels
difficulty: 2 May require some initial design or R&D, but should be straightforward to resolve and/or implement. estimate: 2-4hrs Task which should take between 2 to 4 hours. Feature Task to add a new feature. ❌ No AI Not allowed to use AI.

Comments

@kgryte
Copy link
Member

kgryte commented Feb 14, 2025

This task should implement a functional API for slicing a string based on grapheme clusters.

The behavior should not match the built-in String.prototype.slice, as the function should properly handle grapheme clusters (e.g., emoji). All arguments should be required:

sliceGraphemeClusters( str, start, end )

Related: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/string/base/for-each-grapheme-cluster

Time estimate without AI: 4hrs
Time estimate with AI: 2-3hrs

@kgryte kgryte added difficulty: 2 May require some initial design or R&D, but should be straightforward to resolve and/or implement. estimate: 2-4hrs Task which should take between 2 to 4 hours. Feature Task to add a new feature. labels Feb 14, 2025
@naterush naterush added the ❌ No AI Not allowed to use AI. label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: 2 May require some initial design or R&D, but should be straightforward to resolve and/or implement. estimate: 2-4hrs Task which should take between 2 to 4 hours. Feature Task to add a new feature. ❌ No AI Not allowed to use AI.
Projects
None yet
Development

No branches or pull requests

3 participants