package lascar

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

Install

Dune Dependency

Authors

Maintainers

Sources

lascar-0.6-alpha.tbz
sha256=e33fd94f167bd7bc69f30d7a550226126692a00dac9b29c28ff0ff0aca7d7a21
sha512=98fe84ea351a288d371490f002c52c2e3637841f7fafadb1c3a1acb82befc436bbc6321b1c37fb1e2121b595e7fcb33da45510f3b623006a1d1b56d905313058

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.