Added
Link Here
|
1 |
--- Camomile/public/uCol.ml.orig 2019-08-08 07:10:33 UTC |
2 |
+++ Camomile/public/uCol.ml |
3 |
@@ -52,14 +52,14 @@ sig |
4 |
If [prec] is omitted, the maximum possible strength is used. |
5 |
If [variable] is omitted, the default of the locale |
6 |
(usually [`Shifted]) is used. |
7 |
- The meaning of the returned value is similar to Pervasives.compare *) |
8 |
+ The meaning of the returned value is similar to Stdlib.compare *) |
9 |
val compare : |
10 |
?locale:string -> ?prec:precision -> ?variable:variable_option -> |
11 |
text -> text -> int |
12 |
|
13 |
(** Binary comparison of sort_key gives the same result as [compare]. |
14 |
i.e. |
15 |
- [compare t1 t2 = Pervasives.compare (sort_key t1) (sort_key t2)] |
16 |
+ [compare t1 t2 = Stdlib.compare (sort_key t1) (sort_key t2)] |
17 |
If the same texts are repeatedly compared, |
18 |
pre-computation of sort_key gives better performance. *) |
19 |
val sort_key : |
20 |
@@ -731,7 +731,7 @@ module Make (Config : ConfigInt.Type) (Text : UnicodeS |
21 |
| _ -> |
22 |
let key1 = key_of_inc prec col_info x1 in |
23 |
let key2 = key_of_inc prec col_info x2 in |
24 |
- Pervasives.compare key1 key2 |
25 |
+ Stdlib.compare key1 key2 |
26 |
|
27 |
let compare ?locale ?prec ?variable t1 t2 = |
28 |
let col_info = |
29 |
@@ -782,7 +782,7 @@ module Make (Config : ConfigInt.Type) (Text : UnicodeS |
30 |
| _ -> |
31 |
let key = key_of_inc prec col_info x in |
32 |
(* Printf.printf "key_of_inc %s\n" (String.escaped key);*) |
33 |
- Pervasives.compare k key |
34 |
+ Stdlib.compare k key |
35 |
|
36 |
let compare_with_key ?locale ?prec ?variable k t = |
37 |
let col_info = |