/[pcre]/code/trunk/pcre16_utf16_utils.c
ViewVC logotype

Diff of /code/trunk/pcre16_utf16_utils.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 836 by ph10, Wed Dec 28 17:16:11 2011 UTC revision 860 by zherczeg, Mon Jan 9 20:12:58 2012 UTC
# Line 57  strings to host byte order. */ Line 57  strings to host byte order. */
57    
58  /* This function takes an UTF-16 string and converts  /* This function takes an UTF-16 string and converts
59  it to host byte order. The length can be explicitly set,  it to host byte order. The length can be explicitly set,
60  or autmatically detected for zero terminated strings.  or automatically detected for zero terminated strings.
61  BOMs can be kept or discarded during the conversion.  BOMs can be kept or discarded during the conversion.
62  Conversion can be done in place (output == input).  Conversion can be done in place (output == input).
63    
# Line 65  Arguments: Line 65  Arguments:
65    output     the output buffer, its size must be greater    output     the output buffer, its size must be greater
66               or equal than the input string               or equal than the input string
67    input      any UTF-16 string    input      any UTF-16 string
68    length     the number of characters in the input string    length     the number of 16-bit units in the input string
69               can be less than zero for zero terminated strings               can be less than zero for zero terminated strings
70    host_byte_order    host_byte_order
71               A non-zero value means the input is in host byte               A non-zero value means the input is in host byte
# Line 77  Arguments: Line 77  Arguments:
77    keep_boms  for a non-zero value, the BOM (0xfeff) characters    keep_boms  for a non-zero value, the BOM (0xfeff) characters
78               are copied as well               are copied as well
79    
80  Returns:     the number of characters placed into the output buffer,  Returns:     the number of 16-bit units placed into the output buffer,
81               including the zero-terminator               including the zero-terminator
82  */  */
83    
84  int  int
85  pcre16_utf16_to_host_byte_order(PCRE_SCHAR16 *output, PCRE_SPTR16 input,  pcre16_utf16_to_host_byte_order(PCRE_UCHAR16 *output, PCRE_SPTR16 input,
86    int length, int *host_byte_order, int keep_boms)    int length, int *host_byte_order, int keep_boms)
87  {  {
88  #ifdef SUPPORT_UTF  #ifdef SUPPORT_UTF

Legend:
Removed from v.836  
changed lines
  Added in v.860

  ViewVC Help
Powered by ViewVC 1.1.5