Delete
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Function Syntax
buffer delete(buffer original ,int strStart ,int strEnd )
- original is the buffer to modify
- strStart marks where to start deleting
- strEnd marks where to end deleting
Returns the buffer original with the substring from strStart to strEnd removed.
Code Sample
Removes the border that KoL uses to frame some tables.
buffer results;
results.append(visit_url());
string del = " style=\"padding: 5px; border: 1px solid blue;\"";
int st = results.index_of(del);
if ( st > -1 ) results.delete(st, st+length(del));
else print("string '"+del+ "' not found");
results.write();