Skip to content

Commit

Permalink
[feature] cactutf: check
Browse files Browse the repository at this point in the history
  • Loading branch information
OpaOnWindowsNow committed May 16, 2012
1 parent b9f9569 commit 22ad17f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion libbase/cactutf.mli
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(*
Copyright © 2011 MLstate
Copyright © 2011, 2012 MLstate
This file is part of OPA.
Expand Down Expand Up @@ -159,6 +159,10 @@ val uppercase : string -> string
*)
val lowercase : string -> string

(**
check utf8 validity
*)
val check : string -> bool

(**
{6 Deprecated}
Expand Down
3 changes: 2 additions & 1 deletion opabsl/mlbsl/bslCactutf.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(*
Copyright © 2011 MLstate
Copyright © 2011, 2012 MLstate
This file is part of OPA.
Expand Down Expand Up @@ -49,5 +49,6 @@ let lenbytes x =
##register two_bytes \ `Cactutf.two_bytes` : int, int -> int
##register three_bytes \ `Cactutf.three_bytes` : int, int, int -> int
##register four_bytes \ `Cactutf.four_bytes` : int, int, int, int -> int
##register check \ `Cactutf.check` : string -> bool

(*register charutf8 : string -> int -> int*)
4 changes: 3 additions & 1 deletion stdlib/core/cactutf.opa
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright © 2011 MLstate
Copyright © 2011, 2012 MLstate
This file is part of OPA.
Expand Down Expand Up @@ -83,4 +83,6 @@ Cactutf = {{
/* cons */
cons = %% BslCactutf.cons %% : int -> string

check = %% BslCactutf.check %% : string -> bool

}}

0 comments on commit 22ad17f

Please sign in to comment.