22.03.2015 Views

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5.6 <strong>DLI</strong> <strong>Implementation</strong> <strong>and</strong> <strong>Reference</strong> <strong>Guide</strong><br />

obtain a list of these encodings, use the dlpdftextshowencodingnames function<br />

call:<br />

void dlpdftextshowencodingnames(char Concepts <strong>and</strong> Facilities: <strong>Guide</strong> to *) the DL Pager Composition System<br />

This function call will write out a file containing a list of valid encoding names <strong>and</strong><br />

aliases to the pathname supplied as the input parameter. It will raise an exception if<br />

unable to write this file.<br />

dlpdftext Shortcut Functions<br />

For NULL-terminated Unicode text (the NULL terminator will vary from encoding to<br />

encoding), the following shortcut functions are provided, each using the encoding<br />

listed in parentheses:<br />

• DLPDFTEXT *dlpdftextfromutf8(void *) (utf-8)<br />

• DLPDFTEXT *dlpdftextfromutf16be(void *) (utf-16be)<br />

• DLPDFTEXT *dlpdftextfromutf16he(void *) (utf-16be or utf-16le, by<br />

platform)<br />

• DLPDFTEXT *dlpdftextfromutf16le(void *) (utf-16le)<br />

• DLPDFTEXT *dlpdftextfromutf32be(void *) (utf-32be)<br />

• DLPDFTEXT *dlpdftextfromutf32he(void *) (utf-32be or utf-32le, by<br />

platform)<br />

• DLPDFTEXT *dlpdftextfromutf32le(void *) (utf-32le)<br />

These shortcut functions require the input text to be NULL-terminated, but do not<br />

require a Unicode byte-order marker. An exception will be raised for invalid input, or<br />

if the input text could not be properly converted to the platform-endian Unicode<br />

representation.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!