package ocaml-protoc

  1. Overview
  2. Docs
Protobuf compiler for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

2.4.0.tar.gz
md5=8a294e86c6202b8ec8016e71d19264cb
sha512=67020bef50b59c6590c1b25d85a75d6e19d6cd37d42b87c94aef798bff51a45f38fe7024b4c67d71c22c13d3f2776bec83acd77794a518f1c4a7eddfc30b6d0b

doc/ocaml-protoc.compiler-lib/Ocaml_protoc_compiler_lib/Pb_util/index.html

Module Ocaml_protoc_compiler_lib.Pb_utilSource

Standard library missing functions

Sourceval rev_split_by_char : char -> string -> string list

rev_split_by_char c s will split the string s using the delimieter c and return the component in reverse order (ie from right to left).

For instance when splitting a filename with the '.' character, the file extension will be the head of the returned list.

Sourceval string_of_string_list : string list -> string

string_of_string_list l returns a debug string of l

Sourceval string_fold_lefti : ('a -> int -> char -> 'a) -> 'a -> string -> 'a

string_fold_lefti f e0 s will fold over each string character

Sourceval indentation_prefix : int -> string

indentation_prefix level returns a string of 2 * level spaces

Sourcemodule Option : sig ... end
Sourceval read_file : string -> string
Sourcemodule List : sig ... end
OCaml

Innovation. Community. Security.