package merlin-lib
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=b8fb32bc0fc092af2fd6bdc831cb966057f2e3fd7b99a172b705e96ba8082583
sha512=01ca96f8167d062ba24036e43f650ff958fb157d44867bd52eb7999b7d19bf9fc97cdcd46c04b6979f0e1149d5041047723eed5913b03c4404d7acb116183bee
doc/merlin-lib.ocaml_utils/Ocaml_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.