numparm, speedup modernizeex() for the common case
This commit is contained in:
parent
e9e3bf2a69
commit
03dfb3bd22
|
|
@ -243,6 +243,11 @@ modernizeex(SPICE_DSTRINGPTR dstr_p)
|
||||||
state = 0;
|
state = 0;
|
||||||
ls = spice_dstring_length(dstr_p);
|
ls = spice_dstring_length(dstr_p);
|
||||||
s = spice_dstring_value(dstr_p);
|
s = spice_dstring_value(dstr_p);
|
||||||
|
|
||||||
|
/* check if string might need modernizing */
|
||||||
|
if (!memchr(s, Intro, (size_t) ls))
|
||||||
|
return;
|
||||||
|
|
||||||
spice_dstring_init(&t);
|
spice_dstring_init(&t);
|
||||||
|
|
||||||
while (i < ls) {
|
while (i < ls) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue