stdlib icon indicating copy to clipboard operation
stdlib copied to clipboard

RFC: Add support for getting previous extended grapheme cluster break

Open ShraddheyaS opened this issue 4 years ago • 2 comments

Checklist

Please ensure the following tasks are completed before submitting a feature request.

  • [X] Read and understood the Code of Conduct.
  • [X] Searched for existing issues and pull requests.
  • [X] The issue name begins with RFC:.

Description

Description of the feature request.

This RFC proposes to add support for getting previous extended grapheme cluster break in a string before a specified position. Package: @stdlib/string/prev-grapheme-cluster-break Alias: prevGraphemeClusterBreak Function prototype: prevGraphemeClusterBreak( str, beforeIndex )

Related Issues

Does this feature request have any related issues?

No.

Questions

Any questions for reviewers?

No.

Other

Any other information relevant to this feature request? This may include screenshots, references, sample output, and/or implementation notes.

No.

ShraddheyaS avatar Sep 08 '20 12:09 ShraddheyaS

can I use it now ?

mobljs avatar Aug 28 '21 11:08 mobljs

@mobljs We do have functionality for getting the next extended grapheme cluster break; however, we have yet to add similar functionality for getting the previous grapheme cluster break.

You need the latter, rather than the former? Or stated otherwise, what is your use case?

kgryte avatar Aug 28 '21 18:08 kgryte

This was added in https://github.com/stdlib-js/stdlib/commit/f52f807a13a7bda15a7f9ec072e68f314491062e. Closing...

kgryte avatar Sep 07 '22 23:09 kgryte