diff options
| author | Pierre-Marie Pédrot | 2016-06-14 00:08:14 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2016-06-14 00:09:30 +0200 |
| commit | 236627cdf081e51fce3bc54fdee4e40d4f6ca85e (patch) | |
| tree | 161c930e2efacd1198fed18f208e9f4fdba1b8fc /lib/unicode.mli | |
| parent | 45de05d0ea9740f14c58dfd67436ddbea03c6a49 (diff) | |
Moving UTF-8 related functions to Unicode module.
Diffstat (limited to 'lib/unicode.mli')
| -rw-r--r-- | lib/unicode.mli | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/unicode.mli b/lib/unicode.mli index aaf455dec5..1f8bd44eee 100644 --- a/lib/unicode.mli +++ b/lib/unicode.mli @@ -40,3 +40,9 @@ val ascii_of_ident : string -> string (** Validate an UTF-8 string *) val is_utf8 : string -> bool + +(** Return the length of a valid UTF-8 string. *) +val utf8_length : string -> int + +(** Variant of {!String.sub} for UTF-8 strings. *) +val utf8_sub : string -> int -> int -> string |
