aboutsummaryrefslogtreecommitdiff
path: root/lib/util.ml
diff options
context:
space:
mode:
authorherbelin2003-11-26 21:04:22 +0000
committerherbelin2003-11-26 21:04:22 +0000
commit08a34ea65168c36720eb555df02aa69b84e29466 (patch)
tree0062f2f657118228507a8483f36934b8f07789eb /lib/util.ml
parent9c18de511b7d54fdecc44cadb56c760da3498a39 (diff)
Export string_index_from
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4997 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib/util.ml')
-rw-r--r--lib/util.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util.ml b/lib/util.ml
index 117eeef1fe..3203d0f78b 100644
--- a/lib/util.ml
+++ b/lib/util.ml
@@ -77,14 +77,14 @@ let rec raw_str_index i gdzie l c co cl =
if (i'+cl <= l) && (is_sub gdzie l i' co cl 0) then i' else
raw_str_index (i'+1) gdzie l c co cl
-let str_index_from gdzie i co =
+let string_index_from gdzie i co =
if co="" then i else
raw_str_index i gdzie (String.length gdzie)
(String.unsafe_get co 0) co (String.length co)
let string_string_contains ~where ~what =
try
- let _ = str_index_from where 0 what in true
+ let _ = string_index_from where 0 what in true
with
Not_found -> false