pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:3387:    struct pike_string *s = finish_string_builder( &str->str );    if( Pike_fp->current_object->flags & OBJECT_CLEAR_ON_EXIT )    s->flags |= STRING_CLEAR_ON_EXIT;    push_string(s);    // Pick a smaller size to minimise fragmentation    // addat() will expand if it notices reuse of    // the Buffer    init_string_builder_alloc(&str->str, sizeof(struct svalue), 0);    }    -  /*! @decl Buffer|void cut(int index, int|void end_or_none,void|int discard) +  /*! @decl Buffer|void cut(int start, int|void end, void|int discard)    *!    *! Cut and delete the range of data from the current buffer.    *! Returns a new buffer with the cut data, unless discard is true.    *!    *! @seealso    *! @[get()], @[get_copy()], @[clear()]    */    PIKEFUN Buffer|void cut(int index, int|void end_or_none,void|int discard)    {    struct Buffer_struct *str = THIS, *str2;