pike.git
/
src
/
builtin.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/builtin.cmod:3348:
*! @note *! This will clear the data in the buffer *! *! @seealso *! @[get_copy()], @[clear()] */ PIKEFUN string get( ) { struct Buffer_struct *str = THIS; struct pike_string *s = finish_string_builder( &str->str );
-
str->str
.malloced
= 0;
-
str->
str.s
= NULL
;
+
init_string_builder_alloc(&
str->str
,
str->
initial,
0)
;
if( Pike_fp->current_object->flags & OBJECT_CLEAR_ON_EXIT ) s->flags |= STRING_CLEAR_ON_EXIT; push_string(s); } /*! @decl Buffer|void cut(int index, int|void end_or_none,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. *!