Skip to content

madroach/ocaml-bigstring

 
 

Repository files navigation

Bigstring

Build Status

A set of utils for dealing with bigarrays of char as if they were proper OCaml strings.

Usage

#require "bigstring";;
#install_printer Bigstring.print;;
module B = Bigstring;;

# let s1 = B.of_string "  abcd ";;
val s1 : B.t = "  abcd "

# let s2 = B.trim s1;;
val s2 : B.t = "abcd"

# B.index ~c:'b' s2 ;;
- : int = 1

# let str = "__";;
val str : string = "__"

# B.blit_of_string str 0 s2 1 2;;
- : unit = ()

# s2;;
- : B.t = "a__d"

Documentation

License

This code is free, under the BSD license.

About

Overlay over bigarrays of chars

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • OCaml 85.8%
  • C 13.8%
  • Makefile 0.4%