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

Method get_with_code_lines

core/string/ustring.cpp:837–847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

835}
836
837String String::get_with_code_lines() const {
838 const Vector<String> lines = split("\n");
839 String ret;
840 for (int i = 0; i < lines.size(); i++) {
841 if (i > 0) {
842 ret += "\n";
843 }
844 ret += vformat("%4d | %s", i + 1, lines[i]);
845 }
846 return ret;
847}
848
849int String::get_slice_count(const String &p_splitter) const {
850 if (is_empty()) {

Callers 1

compile_stagesMethod · 0.80

Calls 2

vformatFunction · 0.85
sizeMethod · 0.65

Tested by

no test coverage detected