package stk_xml

  1. Overview
  2. Docs

Module Doc.TISource

Module to build a text index, allowing text-based search in a XML view document.

Sourcetype tree =
  1. | L of {
    1. text : string;
    2. pos : int;
    3. len : int;
    4. node : node;
    }
  2. | N of {
    1. pos : int;
    2. len : int;
    3. nodes : node list;
    4. children : tree list;
    }
Sourcetype t = {
  1. fulltext : string;
  2. tree : tree list;
}
Sourceval utf8_length : string -> int
Sourceval build_text_index : node list -> t