Skip to content

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

@kgryte

Description

@kgryte

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

Metadata

Metadata

Assignees

Labels

FeatureTask to add a new feature.difficulty: 2May require some initial design or R&D, but should be straightforward to resolve and/or implement.estimate: 2-4hrsTask which should take between 2 to 4 hours.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions