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

Document the unit of "start" and "length" for mentions and text styles #1505

Merged
merged 1 commit into from
Apr 13, 2024

Conversation

brenns10
Copy link
Contributor

The unit of UTF-16 code units is not necessarily obvious for users of languages that index strings by Unicode code points. Provide a pointer to an FAQ entry as well:

https://github.com/AsamK/signal-cli/wiki/FAQ#string-indexing-units


I admit to not compile-testing this since I don't have a development environment setup, and this was mainly documentation.

The unit of UTF-16 code units is not necessarily obvious for users of
languages that index strings by Unicode code points. Provide a pointer
to an FAQ entry as well:

https://github.com/AsamK/signal-cli/wiki/FAQ#string-indexing-units

Closes AsamK#1504

Signed-off-by: Stephen Brennan <[email protected]>
@AsamK AsamK merged commit e5ebb73 into AsamK:master Apr 13, 2024
4 checks passed
@AsamK
Copy link
Owner

AsamK commented Apr 13, 2024

Thanks a lot!

@brenns10 brenns10 deleted the document_start_length branch April 15, 2024 20:27
@brenns10
Copy link
Contributor Author

And thank you, signal-cli is a great project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants