1 .TH PCRE_UTF16_TO_HOST_BYTE_ORDER 3
3 PCRE - Perl-compatible regular expressions
10 .B int pcre16_utf16_to_host_byte_order(PCRE_UCHAR16 *\fIoutput\fP,
12 .B PCRE_SPTR16 \fIinput\fP, int \fIlength\fP, int *\fIhost_byte_order\fP,
14 .B int \fIkeep_boms\fP);
20 This function, which exists only in the 16-bit library, converts a UTF-16
21 string to the correct order for the current host, taking account of any byte
22 order marks (BOMs) within the string. Its arguments are:
24 \fIoutput\fP pointer to output buffer, may be the same as \fIinput\fP
25 \fIinput\fP pointer to input buffer
26 \fIlength\fP number of 16-bit units in the input, or negative for
27 a zero-terminated string
28 \fIhost_byte_order\fP a NULL value or a non-zero value pointed to means
29 start in host byte order
30 \fIkeep_boms\fP if non-zero, BOMs are copied to the output string
32 The result of the function is the number of 16-bit units placed into the output
33 buffer, including the zero terminator if the string was zero-terminated.
35 If \fIhost_byte_order\fP is not NULL, it is set to indicate the byte order that
36 is current at the end of the string.
38 There is a complete description of the PCRE native API in the
42 page and a description of the POSIX API in the