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

Diff of /code/trunk/pcre_string_utils.c

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

revision 1430 by ph10, Tue Dec 31 17:44:40 2013 UTC revision 1431 by ph10, Thu Jan 2 17:41:28 2014 UTC
# Line 6  Line 6 
6  and semantics are as close as possible to those of the Perl 5 language.  and semantics are as close as possible to those of the Perl 5 language.
7    
8                         Written by Philip Hazel                         Written by Philip Hazel
9             Copyright (c) 1997-2013 University of Cambridge             Copyright (c) 1997-2014 University of Cambridge
10    
11  -----------------------------------------------------------------------------  -----------------------------------------------------------------------------
12  Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
# Line 91  pcre_uchar c2; Line 91  pcre_uchar c2;
91    
92  while (*str1 != '\0' || *str2 != '\0')  while (*str1 != '\0' || *str2 != '\0')
93    {    {
94    c1 = *str1++;    c1 = UCHAR21INC(str1);
95    c2 = *str2++;    c2 = UCHAR21INC(str2);
96    if (c1 != c2)    if (c1 != c2)
97      return ((c1 > c2) << 1) - 1;      return ((c1 > c2) << 1) - 1;
98    }    }
# Line 131  pcre_uchar c2; Line 131  pcre_uchar c2;
131    
132  while (*str1 != '\0' || *ustr2 != '\0')  while (*str1 != '\0' || *ustr2 != '\0')
133    {    {
134    c1 = *str1++;    c1 = UCHAR21INC(str1);
135    c2 = (pcre_uchar)*ustr2++;    c2 = (pcre_uchar)*ustr2++;
136    if (c1 != c2)    if (c1 != c2)
137      return ((c1 > c2) << 1) - 1;      return ((c1 > c2) << 1) - 1;

Legend:
Removed from v.1430  
changed lines
  Added in v.1431

  ViewVC Help
Powered by ViewVC 1.1.5