[UP] Modules |
WDialog API for Objective Caml: Wd_encoding
Module Wd_encodingmodule Wd_encoding:This module contains the output encodings. The encodings are functions from string to string . They are usually entered into the
application by default (see the method output_encoding of the
Wd_types.application_type ), and accessible by <ui:encoding> and
other elements of the UI language.
The functions defined here assume that an ASCII-compatible character
set is used. val encode_as_html :
Encodes strings as HTML:
From val encode_as_pre :
Does the following encoding:
From val encode_as_para :
Multiple linefeeds are replaced by <p>.
From val encode_as_js_string :
Encodes strings such that they can be placed between quotes in
Javascript.
From val encode_as_js_longstring :
Similar to
encode_as_js_string , but an additional rules prevents
that long lines result. (Javascript interpreters often cannot cope
with long lines.) The string is split up into pieces p1,...,pN
and these are connected by
p1" + \n "p2" + \n ... + \n "pN
From
It is required to pass the character encoding of the strings as
argument Note that you can combine the various encodings to get new effects. Reasonable combinations are:
|