Emacs text, which is a sequence of characters, along with text properties associated with each character.
(Info-goto-node "(elisp)Text")
include Ecaml.Value.SubtypeWe expose private value for free identity conversions when the value is nested in
some covariant type, e.g. (symbols : Symbol.t list :> Value.t list) rather than
List.map symbols ~f:Symbol.to_value.
include sig ... endval sexp_of_t : t ‑> Base.Sexp.teq t1 t2 = Value.eq (to_value t1) (to_value t2), i.e. eq checks whether the
Emacs values underlying t1 and t2 are physically equal. This is different than
phys_equal t1 t2, because we don't always wrap eq Emacs values in phys_equal
OCaml values. I.e. phys_equal t1 t2 implies eq t1 t2, but not the converse.
include Ecaml__.Valueable0.S with type t := tval of_value_exn : Ecaml__.Value0.t ‑> tval to_value : t ‑> Ecaml__.Value0.tmodule Compare_as_string : sig ... endval char_code : t ‑> int ‑> Ecaml.Char_code.t(describe-function 'aref)(Info-goto-node "(elisp)String Basics")
val set_char_code : t ‑> int ‑> Ecaml.Char_code.t ‑> unit(describe-function 'aset)(Info-goto-node "(elisp)String Basics")
val of_utf8_bytes : string ‑> tval to_utf8_bytes : t ‑> stringval num_bytes : t ‑> intnum_bytes t returns the number of bytes in the representation of t, which, if
is_multibyte t, can be greater than length t.
(describe-function 'string-bytes)
val propertize : t ‑> Property.t list ‑> t(describe-function 'propertize)(Info-goto-node "(elisp)Changing Properties")
val property_value : t ‑> at:int ‑> 'a Property_name.t ‑> 'a optionproperty_value t ~at property_name returns the value of property_name for the
character after at. at is a zero-based index into t; property_value raises
unless 0 <= at <= length t (allowing length is different than OCaml).
(describe-function 'get-text-property)(Info-goto-node "(elisp)Examining Properties")
val set_property : ?start:int ‑> ?end_:int ‑> t ‑> 'a Property_name.t ‑> 'a ‑> unit(describe-function 'put-text-property)(Info-goto-node "(elisp)Changing Properties").
val set_properties : ?start:int ‑> ?end_:int ‑> t ‑> Property.t list ‑> unit(describe-function 'set-text-properties)(Info-goto-node "(elisp)Changing Properties")
val add_properties : ?start:int ‑> ?end_:int ‑> t ‑> Property.t list ‑> unit(describe-function 'add-text-properties)(Info-goto-node "(elisp)Changing Properties")
val remove_properties : ?start:int ‑> ?end_:int ‑> t ‑> Property_name.Packed.t list ‑> unit(describe-function 'remove-list-of-text-properties)(Info-goto-node "(elisp)Changing Properties")
val is_multibyte : t ‑> bool(describe-function 'multibyte-string-p)(Info-goto-node "(elisp)Text Representations")