diff options
author | Trashguy <trashguy@gmail.com> | 2024-10-11 12:21:42 -0400 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2024-10-13 15:05:24 -0400 |
commit | 9901f655fb46bd345770ad5f4a1638c4051b1816 (patch) | |
tree | bb22b4881145f122568c8f2e51e912078ad1b4fc /doc/classes/TextServer.xml | |
parent | 6699ae7897658e44efc3cfb2cba91c11a8f5aa6a (diff) | |
download | redot-engine-9901f655fb46bd345770ad5f4a1638c4051b1816.tar.gz |
Rebrand Godot 4.3 to Redot
Diffstat (limited to 'doc/classes/TextServer.xml')
-rw-r--r-- | doc/classes/TextServer.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/classes/TextServer.xml b/doc/classes/TextServer.xml index 4fa9700f9c..5c5cb147eb 100644 --- a/doc/classes/TextServer.xml +++ b/doc/classes/TextServer.xml @@ -1739,9 +1739,9 @@ When [param chars_per_line] is greater than zero, line break boundaries are returned instead. [codeblock] var ts = TextServerManager.get_primary_interface() - print(ts.string_get_word_breaks("The Godot Engine, 4")) # Prints [0, 3, 4, 9, 10, 16, 18, 19], which corresponds to the following substrings: "The", "Godot", "Engine", "4" - print(ts.string_get_word_breaks("The Godot Engine, 4", "en", 5)) # Prints [0, 3, 4, 9, 10, 15, 15, 19], which corresponds to the following substrings: "The", "Godot", "Engin", "e, 4" - print(ts.string_get_word_breaks("The Godot Engine, 4", "en", 10)) # Prints [0, 9, 10, 19], which corresponds to the following substrings: "The Godot", "Engine, 4" + print(ts.string_get_word_breaks("The Redot Engine, 4")) # Prints [0, 3, 4, 9, 10, 16, 18, 19], which corresponds to the following substrings: "The", "Redot", "Engine", "4" + print(ts.string_get_word_breaks("The Redot Engine, 4", "en", 5)) # Prints [0, 3, 4, 9, 10, 15, 15, 19], which corresponds to the following substrings: "The", "Redot", "Engin", "e, 4" + print(ts.string_get_word_breaks("The Redot Engine, 4", "en", 10)) # Prints [0, 9, 10, 19], which corresponds to the following substrings: "The Redot", "Engine, 4" [/codeblock] </description> </method> |