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

Diff of /code/trunk/pcre_newline.c

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

revision 149 by ph10, Mon Apr 16 15:28:08 2007 UTC revision 150 by ph10, Tue Apr 17 08:22:40 2007 UTC
# Line 38  POSSIBILITY OF SUCH DAMAGE. Line 38  POSSIBILITY OF SUCH DAMAGE.
38  */  */
39    
40    
41  /* This module contains internal functions for testing newlines when more than  /* This module contains internal functions for testing newlines when more than
42  one kind of newline is to be recognized. When a newline is found, its length is  one kind of newline is to be recognized. When a newline is found, its length is
43  returned. In principle, we could implement several newline "types", each  returned. In principle, we could implement several newline "types", each
44  referring to a different set of newline characters. At present, PCRE supports  referring to a different set of newline characters. At present, PCRE supports
45  only NLTYPE_FIXED, which gets handled without these functions, NLTYPE_ANYCRLF,  only NLTYPE_FIXED, which gets handled without these functions, NLTYPE_ANYCRLF,
46  and NLTYPE_ANY. The full list of Unicode newline characters is taken from  and NLTYPE_ANY. The full list of Unicode newline characters is taken from
47  http://unicode.org/unicode/reports/tr18/. */  http://unicode.org/unicode/reports/tr18/. */
# Line 69  Returns: TRUE or FALSE Line 69  Returns: TRUE or FALSE
69  */  */
70    
71  BOOL  BOOL
72  _pcre_is_newline(const uschar *ptr, int type, const uschar *endptr,  _pcre_is_newline(const uschar *ptr, int type, const uschar *endptr,
73    int *lenptr, BOOL utf8)    int *lenptr, BOOL utf8)
74  {  {
75  int c;  int c;
# Line 119  Returns: TRUE or FALSE Line 119  Returns: TRUE or FALSE
119  */  */
120    
121  BOOL  BOOL
122  _pcre_was_newline(const uschar *ptr, int type, const uschar *startptr,  _pcre_was_newline(const uschar *ptr, int type, const uschar *startptr,
123    int *lenptr, BOOL utf8)    int *lenptr, BOOL utf8)
124  {  {
125  int c;  int c;

Legend:
Removed from v.149  
changed lines
  Added in v.150

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12