@@ -90,12 +90,12 @@ int re_matchp(re_t pattern, const char* text, int* matchlength)
9090 do
9191 {
9292 idx += 1 ;
93-
93+
9494 if (matchpattern (pattern , text , matchlength ))
9595 {
9696 if (text [0 ] == '\0' )
9797 return -1 ;
98-
98+
9999 return idx ;
100100 }
101101 }
@@ -151,8 +151,8 @@ re_t re_compile(const char* pattern)
151151 case 's' : { re_compiled [j ].type = WHITESPACE ; } break ;
152152 case 'S' : { re_compiled [j ].type = NOT_WHITESPACE ; } break ;
153153
154- /* Escaped character, e.g. '.' or '$' */
155- default :
154+ /* Escaped character, e.g. '.' or '$' */
155+ default :
156156 {
157157 re_compiled [j ].type = CHAR ;
158158 re_compiled [j ].ch = pattern [i ];
@@ -162,7 +162,7 @@ re_t re_compile(const char* pattern)
162162 /* '\\' as last char in pattern -> invalid regular expression. */
163163/*
164164 else
165- {
165+ {
166166 re_compiled[j].type = CHAR;
167167 re_compiled[j].ch = pattern[i];
168168 }
@@ -184,7 +184,7 @@ re_t re_compile(const char* pattern)
184184 {
185185 return 0 ;
186186 }
187- }
187+ }
188188 else
189189 {
190190 re_compiled [j ].type = CHAR_CLASS ;
@@ -356,7 +356,7 @@ static int matchcharclass(char c, const char* str)
356356 if (matchmetachar (c , str ))
357357 {
358358 return 1 ;
359- }
359+ }
360360 else if ((c == str [0 ]) && !ismetachar (c ))
361361 {
362362 return 1 ;
@@ -411,7 +411,7 @@ static int matchstar(regex_t p, regex_t* pattern, const char* text, int* matchle
411411 return 1 ;
412412 (* matchlength )-- ;
413413 }
414-
414+
415415 * matchlength = prelen ;
416416 return 0 ;
417417}
@@ -430,7 +430,7 @@ static int matchplus(regex_t p, regex_t* pattern, const char* text, int* matchle
430430 return 1 ;
431431 (* matchlength )-- ;
432432 }
433-
433+
434434 return 0 ;
435435}
436436
0 commit comments