public
Description: Batteries Included
Homepage: http://forge.ocamlcore.org/projects/batteries/
Clone URL: git://github.com/thelema/batteries.git
Unicode ropes example program, fix to rope.mli to use ExtUchar.t instead 
of Camomile's copy of the same type
thelema (author)
Fri Oct 10 18:03:18 -0700 2008
commit  624ecdf0472ea0f81d880b4128a7366ada319206
tree    b6e1cbf36b28daa44b1387a4d4f24537b25982bf
parent  acd9af69a5b69b72affe39d3009bfc295303c1de
...
71
72
73
 
74
75
76
...
186
187
188
 
 
 
189
190
191
...
71
72
73
74
75
76
77
...
187
188
189
190
191
192
193
194
195
0
@@ -71,6 +71,7 @@ calling [balance] after each modification would defeat the purpose of amortizati
0
  
0
 open ExtUTF8
0
 open CamomileLibrary
0
+open ExtUChar
0
  
0
 type t
0
   (** The type of the ropes. *)
0
@@ -186,6 +187,9 @@ val fold : ('a -> UChar.t -> 'a ) -> 'a -> t -> 'a
0
   (** [Rope.fold f a r] computes [ f (... (f (f a r0) r1)...) rN-1 ]
0
       where [rn = Rope.get n r ] and [N = length r]. *)
0
 
0
+val of_latin1 : string -> t
0
+ (** Constructs a unicode rope from a latin-1 string. *)
0
+
0
 (** {6 Boilerplate code}*)
0
 (** {7 S-Expressions}*)
0
 

Comments

    No one has commented yet.