package bigstring-unix

  1. Overview
  2. Docs
Unix bindings for bigstrings

Install

Dune Dependency

Authors

Maintainers

Sources

0.2.tar.gz
sha256=cee68d33b2644b8b98f98d4fd30d7e3915ed4ba639d35f42a7d75f64aa68f306
md5=5582e995b7d4c9e4a2949214756db7dd

Description

This includes memory-mapping functions.

Tags

bigstring bigarray

Published: 02 Jun 2018

README

README.adoc

= Bigstring =
:source-highlighter: pygments

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.

Dependencies (6)

  1. base-unix
  2. base-bytes
  3. base-bigarray
  4. bigstring
  5. jbuilder >= "1.0+beta19.1"
  6. ocaml >= "4.03.0" & < "4.08.0"

Dev Dependencies

None

Used by (1)

  1. bigstring >= "0.3"

Conflicts

None

OCaml

Innovation. Community. Security.