20.07.2014 Views

DOC1 Programmer's Guide

DOC1 Programmer's Guide

DOC1 Programmer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

DUX API function library<br />

Parameters hdux handle to the user exit service.<br />

pstr<br />

Pointer to string.<br />

id<br />

DUX code page identifier.<br />

Details<br />

<strong>DOC1</strong> interprets strings using a code page. The range of supported code pages are defined as<br />

constants in the user exit header file. The default code page is assumed from the production<br />

platform but you can change this using DuxSetCodePage. This function changes the code page<br />

of a specific existing string only. The default remains unchanged.<br />

DuxStrFree<br />

Synopsis<br />

Prototype<br />

Frees a string.<br />

PDUXSTRING DuxStrFree (HDUX hdux, PDUXSTRING pstr)<br />

Parameters hdux handle to the user exit service.<br />

pstr<br />

Pointer to string.<br />

Details<br />

Use this function to free memory associated with a string object previously allocated using<br />

one of the DuxStrAlloc… functions.<br />

Returns Pointer to null.<br />

DuxStrGetChar16Length<br />

Synopsis<br />

Prototype<br />

Returns the length of a string of 16 bit characters.<br />

DUXINT32 DuxStrGetChar16Length (HDUX hdux, PDUXSTRING pstr)<br />

Parameters hdux handle to the user exit service.<br />

pstr<br />

Pointer to string.<br />

Details<br />

This function to determines the length of a 16-bit string.<br />

Returns Length of string.<br />

215

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

Saved successfully!

Ooh no, something went wrong!