diff options
| author | Pierre-Marie Pédrot | 2016-06-14 01:44:53 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2016-06-14 01:44:53 +0200 |
| commit | 19330a458b907b5e66a967adbfe572d92194913c (patch) | |
| tree | 2d3ffa4715224082dec3c9d6f8247881ca2b1f2c /lib/unicode.mli | |
| parent | 95bdd608fa7862dc28cc7f4f95578ed1a20353eb (diff) | |
| parent | d018d4148ef6cce96006bd76f83ccf46f6225e11 (diff) | |
Merge branch "LtacProf for trunk" (PR #165).
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 |
