2245 |
{ |
{ |
2246 |
/* Decide how to casify by examining the matched text. */ |
/* Decide how to casify by examining the matched text. */ |
2247 |
int last; |
int last; |
2248 |
|
int multibyte; |
2249 |
|
|
2250 |
pos = search_regs.start[sub]; |
pos = search_regs.start[sub]; |
2251 |
last = search_regs.end[sub]; |
last = search_regs.end[sub]; |
2252 |
|
|
2253 |
if (NILP (string)) |
if (NILP (string)) |
2254 |
pos_byte = CHAR_TO_BYTE (pos); |
{ |
2255 |
|
pos_byte = CHAR_TO_BYTE (pos); |
2256 |
|
multibyte = ! NILP (current_buffer->enable_multibyte_characters); |
2257 |
else |
else |
2258 |
pos_byte = string_char_to_byte (string, pos); |
{ |
2259 |
|
pos_byte = string_char_to_byte (string, pos); |
2260 |
|
multibyte = STRING_MULTIBYTE (string); |
2261 |
|
} |
2262 |
|
|
2263 |
prevc = '\n'; |
prevc = '\n'; |
2264 |
case_action = all_caps; |
case_action = all_caps; |
2279 |
} |
} |
2280 |
else |
else |
2281 |
FETCH_STRING_CHAR_ADVANCE (c, string, pos, pos_byte); |
FETCH_STRING_CHAR_ADVANCE (c, string, pos, pos_byte); |
2282 |
|
if (! multibyte) |
2283 |
|
{ |
2284 |
|
MAKE_CHAR_MULTIBYTE (c); |
2285 |
|
} |
2286 |
|
|
2287 |
if (LOWERCASEP (c)) |
if (LOWERCASEP (c)) |
2288 |
{ |
{ |