Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Xtmpl.Misc
SourceMisc functions.
map_string lexer string
creates an empty buffer with same initial length as the string, and a lexbuf from string
. It passes them to the lexer
, then returns the contents of the buffer. The lexer is supposed to fill the buffer. If the Sedlexing.Malformed
exception is raised, then the Failure
exception is raised with a message.
Replace the following characters: <
by <
, >
by >
, &
by &
. Also replace simple and double quotes by '
and "
if quotes = true
(which is false by default).
string_of_pp pp x
uses pretty-printing function pp
on x
to print in a buffer and return a string.