Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

pcre_utf32_to_host_byte_order (3)

Name

pcre_utf32_to_host_byte_order - compatible regular expressions

Synopsis

#include <pcre.h>

int pcre32_utf32_to_host_byte_order(PCRE_UCHAR32 *output,
PCRE_SPTR32 input, int length, int *host_byte_order,
int keep_boms);

Description

Library Functions Manual                      PCRE_UTF32_TO_HOST_BYTE_ORDER(3)



NAME
       PCRE - Perl-compatible regular expressions

SYNOPSIS

       #include <pcre.h>

       int pcre32_utf32_to_host_byte_order(PCRE_UCHAR32 *output,
            PCRE_SPTR32 input, int length, int *host_byte_order,
            int keep_boms);

DESCRIPTION

       This  function,  which  exists  only  in the 32-bit library, converts a
       UTF-32 string to the correct order for the current host, taking account
       of any byte order marks (BOMs) within the string. Its arguments are:

         output           pointer to output buffer, may be the same as input
         input            pointer to input buffer
         length           number of 32-bit units in the input, or negative for
                            a zero-terminated string
         host_byte_order  a NULL value or a non-zero value pointed to means
                            start in host byte order
         keep_boms        if non-zero, BOMs are copied to the output string

       The  result  of  the function is the number of 32-bit units placed into
       the output buffer, including the zero  terminator  if  the  string  was
       zero-terminated.

       If  host_byte_order  is  not NULL, it is set to indicate the byte order
       that is current at the end of the string.

       There is a complete description of the PCRE native API in  the  pcreapi
       page and a description of the POSIX API in the pcreposix page.



ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE  |
       +---------------+------------------+
       |Availability   | library/pcre     |
       +---------------+------------------+
       |Stability      | Uncommitted      |
       +---------------+------------------+

NOTES
       Source  code  for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This     software     was    built    from    source    available    at
       https://github.com/oracle/solaris-userland.   The  original   community
       source        was        downloaded        from         https://source-
       forge.net/projects/pcre/files/pcre/8.45/pcre-8.45.tar.gz.

       Further information about this software can be found on the open source
       community website at http://pcre.org/.



PCRE 8.30                        24 June 2012
                                              PCRE_UTF32_TO_HOST_BYTE_ORDER(3)