package lascar

  1. Overview
  2. Docs
A library for manipulating Labeled Transition Systems in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

lascar-0.6.0.tbz
sha256=343190b9c765655e787758db86a82818404dda18b4d2806283b4bde3ced91d26
sha512=2b6534ac438d574228d127b3b4e2cfec17b8b95e95124297c8da351caf34de2bb4ec8a31028a1470ba7f42aa932257293d021140a5a1c2642d1a60a8123d00a0

doc/lascar.utils/Utils/StringExt/index.html

Module Utils.StringExtSource

Extension to the Stdlib.String module

Sourceval is_uppercased : string -> bool

Tests whether the string starts with an uppercase letter

Sourceval explode : string -> string list

Decomposes a string into characters. Example: explode "abc" = ["a";"b";"c"]

Sourceval escape_car : char -> string -> string

escape_car c s replaces each occurence of character c in s by its escaped version. Example: escape 'z' "azb" = "a\zb". This function is useful for generating HTML-compatible strings

Sourceval remove_car : char -> string -> string

remove_car c s removes all occurences of character c in s

Sourceval concat_sep : string -> string list -> string

concat_sep sep [s1;..;sN] returns the concatenation of strings s1,..,sN using sep as a separator when needed. Examples: concat "," ["hello";"world"] = "hello,world"; concat_sep ":" ["";"xy"] = "xy".

OCaml

Innovation. Community. Security.