added by Holyfoot for "geometry" needs
| 688 | |
| 689 | // added by Holyfoot for "geometry" needs |
| 690 | int String::reserve(uint32 space_needed, uint32 grow_by) |
| 691 | { |
| 692 | if (Alloced_length < str_length + space_needed) |
| 693 | { |
| 694 | if (realloc(Alloced_length + max(space_needed, grow_by) - 1)) |
| 695 | return TRUE; |
| 696 | } |
| 697 | return FALSE; |
| 698 | } |
| 699 | |
| 700 | void String::qs_append(const char *str, uint32 len) |
| 701 | { |
no outgoing calls
no test coverage detected