package merlin-lib
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=cc3c7c01f19a454c96f6bc8a39538023e01042519f001a895fd61488e2b49fb5
sha512=4268a932a8494023699abd98e0d52deb6f201f656863849db230dc8692050e0fe00cc25a50d70e902410f17a27268fd8335c32636f616ef012cf86fc9a43e019
doc/merlin-lib.utils/Merlin_utils/Misc/Utf8_lexeme/index.html
Module Misc.Utf8_lexemeSource
Normalize the given UTF-8 encoded string. Invalid UTF-8 sequences results in a error and are replaced by U+FFFD. Identifier characters are put in NFC normalized form. Other Unicode characters are left unchanged.
Like normalize, but if the string starts with a lowercase identifier character, it is replaced by the corresponding uppercase character. Subsequent characters are not changed.
Like normalize, but if the string starts with an uppercase identifier character, it is replaced by the corresponding lowercase character. Subsequent characters are not changed.
Returns true if the given normalized string starts with an uppercase identifier character, false otherwise. May return wrong results if the string is not normalized.
Check whether the given normalized string is a valid OCaml identifier:
- all characters are identifier characters
- it does not start with a digit or a single quote
Returns true if the given normalized string only contains lowercase identifier character, false otherwise. May return wrong results if the string is not normalized.
Like is_valid_identifier, but returns a more detailed error code. Dots can be allowed to extend support to path-like identifiers.