MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / as_string

Method as_string

core/string/string_buffer.h:151–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149
150template <int SHORT_BUFFER_SIZE>
151String 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
161template <int SHORT_BUFFER_SIZE>
162double StringBuffer<SHORT_BUFFER_SIZE>::as_double() {

Callers 15

_update_shaderMethod · 0.45
_bind_methodsMethod · 0.45
get_textMethod · 0.45
get_word_under_caretMethod · 0.45
get_selected_textMethod · 0.45
_copy_internalMethod · 0.45
_base_get_textMethod · 0.45
bbcode_to_textMethod · 0.45
bbcode_to_xmlMethod · 0.45
_generate_cs_methodMethod · 0.45

Calls 3

StringClass · 0.70
is_emptyMethod · 0.45
resize_uninitializedMethod · 0.45

Tested by 4

test_tokenizerFunction · 0.36
test_tokenizer_bufferFunction · 0.36
error_handlerMethod · 0.36
execute_test_codeMethod · 0.36