@@ -90,12 +90,12 @@ int re_matchp(re_t pattern, const char* text, int* matchlength)
90
90
do
91
91
{
92
92
idx += 1 ;
93
-
93
+
94
94
if (matchpattern (pattern , text , matchlength ))
95
95
{
96
96
if (text [0 ] == '\0' )
97
97
return -1 ;
98
-
98
+
99
99
return idx ;
100
100
}
101
101
}
@@ -151,8 +151,8 @@ re_t re_compile(const char* pattern)
151
151
case 's' : { re_compiled [j ].type = WHITESPACE ; } break ;
152
152
case 'S' : { re_compiled [j ].type = NOT_WHITESPACE ; } break ;
153
153
154
- /* Escaped character, e.g. '.' or '$' */
155
- default :
154
+ /* Escaped character, e.g. '.' or '$' */
155
+ default :
156
156
{
157
157
re_compiled [j ].type = CHAR ;
158
158
re_compiled [j ].ch = pattern [i ];
@@ -162,7 +162,7 @@ re_t re_compile(const char* pattern)
162
162
/* '\\' as last char in pattern -> invalid regular expression. */
163
163
/*
164
164
else
165
- {
165
+ {
166
166
re_compiled[j].type = CHAR;
167
167
re_compiled[j].ch = pattern[i];
168
168
}
@@ -184,7 +184,7 @@ re_t re_compile(const char* pattern)
184
184
{
185
185
return 0 ;
186
186
}
187
- }
187
+ }
188
188
else
189
189
{
190
190
re_compiled [j ].type = CHAR_CLASS ;
@@ -356,7 +356,7 @@ static int matchcharclass(char c, const char* str)
356
356
if (matchmetachar (c , str ))
357
357
{
358
358
return 1 ;
359
- }
359
+ }
360
360
else if ((c == str [0 ]) && !ismetachar (c ))
361
361
{
362
362
return 1 ;
@@ -411,7 +411,7 @@ static int matchstar(regex_t p, regex_t* pattern, const char* text, int* matchle
411
411
return 1 ;
412
412
(* matchlength )-- ;
413
413
}
414
-
414
+
415
415
* matchlength = prelen ;
416
416
return 0 ;
417
417
}
@@ -430,7 +430,7 @@ static int matchplus(regex_t p, regex_t* pattern, const char* text, int* matchle
430
430
return 1 ;
431
431
(* matchlength )-- ;
432
432
}
433
-
433
+
434
434
return 0 ;
435
435
}
436
436
0 commit comments