~ubuntu-branches/ubuntu/precise/ocaml-batteries/precise

« back to all changes in this revision

Viewing changes to src/batUTF8.mli

  • Committer: Bazaar Package Importer
  • Author(s): Mehdi Dogguy, Stéphane Glondu, Mehdi Dogguy
  • Date: 2010-07-14 23:31:15 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100714233115-q2dpew0qut8ifzc4
Tags: 1.2.2-1
[ Stéphane Glondu ]
* Add 0002-Fix-build-with-OCaml-3.12.0.patch (Closes: #586493)

[ Mehdi Dogguy ]
* New upstream release
  - Add 0001-Add-Set-an-installation-prefix-path.patch
  - Add 0003-Do-not-enforce-sanity-check-rules.patch
  - Remove omake from build-depends
* Adapt debian/rules to new upstream's build system.
* Convert source package to 3.0 (quilt) format.
  - Remove quilt from build-depends
* Bump dh-ocaml version to 0.9.5 in Build-Depends.
* Update libbatteries-ocaml-doc.doc-base
* Bump standards version to 3.9.0, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 *)
20
20
 
21
21
open BatUChar
22
 
open CamomileLibrary
 
22
open BatCamomile
23
23
 
24
24
(** UTF-8 encoded Unicode strings. 
25
25
 
38
38
    @documents UTF8
39
39
*)
40
40
 
41
 
(** UTF-8 encoded Unicode strings.*)
42
 
type t 
43
 
(* maybe use new private types in 3.11 once that's released *)
44
 
 
 
41
(** UTF-8 encoded Unicode strings.  If you coerce it to a string,
 
42
    modify it at your own risk.  Call {!validate} to verify that the
 
43
    contents are still valid UTF-8.  *)
 
44
type t = private string
 
45
    
45
46
exception Malformed_code
46
47
 
47
48
val validate : string -> unit
74
75
val to_string : t -> string
75
76
  (**Return an UTF-8 encoded string representing this Unicode string.*)
76
77
 
 
78
val adopt : string -> t
 
79
  (** Adopt a string without copying. Modifying the original string
 
80
      will modify this value, possibly breaking safety guarantees. *)
 
81
 
77
82
val enum : t -> UChar.t BatEnum.t
78
83
  (**As {!String.enum}*)
79
84