package irc-client

  1. Overview
  2. Docs
IRC client library - core functionality

Install

dune-project
 Dependency

Authors

Maintainers

Sources

irc-client.0.6.1.tar.gz
sha256=4933418355cde3107bc39912ac4addf603adb6ea3c5c3119c41596848de9b6d0
md5=8de431994ea6c0a066ddd9e822d22f96

doc/irc-client/Irc_helpers/index.html

Module Irc_helpersSource

Helper functions for buffering data as it is read from a socket.

Sourceval split : str:string -> c:char -> string list

Split a string str at each occurrence of the character c.

Sourceval split1_exn : str:string -> c:char -> string * string

Split a string str at the first occurrence of the character c.

  • raises Not_found

    if the separator isn't found.

Sourceval handle_input : buffer:Buffer.t -> input:string -> string list

Given a buffer and a string input, append the input to the buffer, return all whole lines present in the buffer, and reinitialise the buffer to contain only the substring which follows all the whole lines.