pike.git
/
src
/
builtin.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/builtin.cmod:3836:
} else { char *s, *end, *tmp; replace_searchfunc f = (replace_searchfunc)0; void *mojt_data = THIS->mojt.data; PCHARP r; end = str->str+(str->len<<str->size_shift); switch(str->size_shift) {
-
case
0
: f = (replace_searchfunc)THIS->mojt.vtab->func0; break;
-
case
1
: f = (replace_searchfunc)THIS->mojt.vtab->func1; break;
-
case
2
: f = (replace_searchfunc)THIS->mojt.vtab->func2; break;
+
case
eightbit
: f = (replace_searchfunc)THIS->mojt.vtab->func0; break;
+
case
sixteenbit
: f = (replace_searchfunc)THIS->mojt.vtab->func1; break;
+
case
thirtytwobit
: f = (replace_searchfunc)THIS->mojt.vtab->func2; break;
+
default: UNREACHABLE();
} if(del->len == to->len) { ret = begin_wide_shared_string(str->len, shift); } else { INT32 delimiters = 0; s = str->str;