Fossil SCM

Patched re_space_char() to conform to its docs (now recognizes \r as a space).

stephan 2013-01-03 09:27 trunk
Commit c77995e6507331e47ad1467d24bd9231891a252f
1 file changed +1 -1
+1 -1
--- src/regexp.c
+++ src/regexp.c
@@ -172,11 +172,11 @@
172172
return (c>='0' && c<='9');
173173
}
174174
175175
/* Return true if c is a perl "space" character: [ \t\r\n\v\f] */
176176
static int re_space_char(int c){
177
- return c==' ' || c=='\t' || c=='\n' || c=='\v' || c=='\f';
177
+ return c==' ' || c=='\t' || c=='\n' || c=='\r' || c=='\v' || c=='\f' ;
178178
}
179179
180180
/* Run a compiled regular expression on the zero-terminated input
181181
** string zIn[]. Return true on a match and false if there is no match.
182182
*/
183183
--- src/regexp.c
+++ src/regexp.c
@@ -172,11 +172,11 @@
172 return (c>='0' && c<='9');
173 }
174
175 /* Return true if c is a perl "space" character: [ \t\r\n\v\f] */
176 static int re_space_char(int c){
177 return c==' ' || c=='\t' || c=='\n' || c=='\v' || c=='\f';
178 }
179
180 /* Run a compiled regular expression on the zero-terminated input
181 ** string zIn[]. Return true on a match and false if there is no match.
182 */
183
--- src/regexp.c
+++ src/regexp.c
@@ -172,11 +172,11 @@
172 return (c>='0' && c<='9');
173 }
174
175 /* Return true if c is a perl "space" character: [ \t\r\n\v\f] */
176 static int re_space_char(int c){
177 return c==' ' || c=='\t' || c=='\n' || c=='\r' || c=='\v' || c=='\f' ;
178 }
179
180 /* Run a compiled regular expression on the zero-terminated input
181 ** string zIn[]. Return true on a match and false if there is no match.
182 */
183

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button