| 149 | |
| 150 | template <int SHORT_BUFFER_SIZE> |
| 151 | String StringBuffer<SHORT_BUFFER_SIZE>::as_string() { |
| 152 | current_buffer_ptr()[string_length] = '\0'; |
| 153 | if (buffer.is_empty()) { |
| 154 | return String(short_buffer); |
| 155 | } else { |
| 156 | buffer.resize_uninitialized(string_length + 1); |
| 157 | return buffer; |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | template <int SHORT_BUFFER_SIZE> |
| 162 | double StringBuffer<SHORT_BUFFER_SIZE>::as_double() { |