version 1.30, 2017/01/20 10:26:16 |
version 1.31, 2017/01/21 10:05:23 |
|
|
else |
else |
slen--; |
slen--; |
if (*s != '\0') { |
if (*s != '\0') { |
cspace(&SS, s++, 1, APPEND); |
cspace(&SS, s++, 1, APPEND); |
le++; |
le++; |
} |
} |
lastempty = 1; |
lastempty = 1; |
|
|
else |
else |
no = -1; |
no = -1; |
if (no < 0) { /* Ordinary character. */ |
if (no < 0) { /* Ordinary character. */ |
if (c == '\\' && (*src == '\\' || *src == '&')) |
if (c == '\\' && (*src == '\\' || *src == '&')) |
c = *src++; |
c = *src++; |
NEEDSP(1); |
NEEDSP(1); |
*dst++ = c; |
*dst++ = c; |
++sp->len; |
++sp->len; |
} else if (match[no].rm_so != -1 && match[no].rm_eo != -1) { |
} else if (match[no].rm_so != -1 && match[no].rm_eo != -1) { |
len = match[no].rm_eo - match[no].rm_so; |
len = match[no].rm_eo - match[no].rm_so; |
NEEDSP(len); |
NEEDSP(len); |
memmove(dst, string + match[no].rm_so, len); |
memmove(dst, string + match[no].rm_so, len); |