Lines Matching full:slice
2164 * double-escaped. E.g. slice(html_escape(foo), 10, 20) */
3908 char *slice;
3939 slice = (char *) malloc (sizeof(char) * (e-b+1));
3940 if (slice == NULL)
3941 return nerr_raise(NERR_NOMEM, "Unable to allocate memory for string slice");
3942 strncpy(slice, s + b, e-b);
3944 slice[e-b] = '\0';
3946 result->s = slice;
4146 { "string.slice", 3, _builtin_str_slice },