Skip to content

[RFC]: add string/base/slice-code-points #34

Closed
stdlib-js/stdlib
#5414
@kgryte

Description

@kgryte

This task should implement a functional API for slicing a string based on Unicode code points.

The behavior should not match the built-in String.prototype.slice, as the function should properly handle surrogate pairs. All arguments should be required:

sliceCodePoints( str, start, end )

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

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