rivo / uniseg

Unicode Text Segmentation, Word Wrapping, and String Width Calculation in Go
MIT License
585 stars 61 forks source link

cleanup: move functions only used in tests to test files #18

Closed charlievieth closed 2 years ago

charlievieth commented 2 years ago

This commit moves the firstGraphemeCluster() and firstGraphemeClusterInString() functions to test files (since that is where they are used).

rivo commented 2 years ago

I didn't specify further but this comment:

For the time being, this function is private because its signature might still change.

is meant to say "This function will be public in the future". So it's not just a function used for testing.