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

Function _translate_doc_string

editor/doc/doc_tools.cpp:79–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79static String _translate_doc_string(const String &p_text) {
80 const String indent = _get_indent(p_text);
81 const String message = p_text.dedent().strip_edges();
82 const String translated = TranslationServer::get_singleton()->doc_translate(message, "");
83 // No need to restore stripped edges because they'll be stripped again later.
84 return translated.indent(indent);
85}
86
87/// Comparator for constructors, based on `MethodDoc` operator.
88struct ConstructorCompare {

Callers 2

_write_method_docFunction · 0.85
save_classesMethod · 0.85

Calls 5

_get_indentFunction · 0.85
strip_edgesMethod · 0.80
dedentMethod · 0.80
doc_translateMethod · 0.80
indentMethod · 0.80

Tested by

no test coverage detected