Commits

Dmitry Grebeniuk  committed 6ce0cbe

+Strings.length_bytes

  • Participants
  • Parent commits 7b8f987

Comments (0)

Files changed (1)

File src/cd_Strings.ml

 
             value of_bytes : Cd_Bytes.Bytes.t -> t;
             value of_char : char -> t;
+            value length_bytes : t -> int;
 
             value map_reduce : (char -> 'a) -> Monoid.t 'a -> string -> 'a;
             value monoid_concat : Monoid.t string;
 
             value append = perv_append;
 
+            value length_bytes = length;
+
           end
         ;
 
 
             value append : t -> t -> t;
 
+            value length_bytes : t -> int;
+
           end
          =
           struct
 
             value append = perv_append;
 
+            value length_bytes = S.length;
+
           end  (* Utf8.String *)
         ;