Pure OCaml Yaml 1.2 reader and writer using Bytesrw
at main 920 B view raw
1(*--------------------------------------------------------------------------- 2 Copyright (c) 2025 Anil Madhavapeddy <anil@recoil.org>. All rights reserved. 3 SPDX-License-Identifier: ISC 4 ---------------------------------------------------------------------------*) 5 6(** Block scalar chomping indicators *) 7 8type t = 9 | Strip (** Remove final line break and trailing empty lines *) 10 | Clip (** Keep final line break, remove trailing empty lines (default) *) 11 | Keep (** Keep final line break and trailing empty lines *) 12 13val to_string : t -> string 14(** Convert chomping mode to string *) 15 16val pp : Format.formatter -> t -> unit 17(** Pretty-print a chomping mode *) 18 19val of_char : char -> t option 20(** Parse chomping indicator from character *) 21 22val to_char : t -> char option 23(** Convert chomping mode to indicator character (None for Clip) *) 24 25val equal : t -> t -> bool 26(** Test equality of two chomping modes *)