Add String::remove_char(s) methods for performance and convenience
This commit is contained in:
parent
cae3d722a3
commit
331a43a9d8
35 changed files with 221 additions and 54 deletions
|
|
@ -172,8 +172,7 @@ static String fix_doc_description(const String &p_bbcode) {
|
|||
// This seems to be the correct way to do this. It's the same EditorHelp does.
|
||||
|
||||
return p_bbcode.dedent()
|
||||
.replace("\t", "")
|
||||
.replace("\r", "")
|
||||
.remove_chars("\t\r")
|
||||
.strip_edges();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue