package bigstring

  1. Overview
  2. Docs
A set of utils for dealing with `bigarrays` of `char`

Install

Dune Dependency

Authors

Maintainers

Sources

0.3.tar.gz
md5=dff09605881c7f6efd4a8a1a71790889
sha512=d0c530603e9bb37a704d736137953e4f2a1b1e16517587010f2fb323a5c3e4d887f558775349231ea15a98d3c085ed9daaf0a7603f165cdd0097ff2548ce790a

README.adoc.html

README.adoc

= Bigstring =
:source-highlighter: pygments

image::https://travis-ci.org/c-cube/ocaml-bigstring.svg?branch=master[alt="Build Status", link="https://travis-ci.org/c-cube/ocaml-bigstring"]

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

== Usage

[source,OCaml]
----
#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

- http://c-cube.github.io/ocaml-bigstring/dev[dev]
- http://c-cube.github.io/ocaml-bigstring/0.1[0.1]

== License

This code is free, under the BSD license.
OCaml

Innovation. Community. Security.