Standardize all "Prints" comments in documentation
This commit is contained in:
parent
0f95e9f8e6
commit
ca4b29b18d
19 changed files with 104 additions and 97 deletions
|
|
@ -1772,9 +1772,12 @@
|
|||
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"
|
||||
# Corresponds to the substrings "The", "Godot", "Engine", and "4".
|
||||
print(ts.string_get_word_breaks("The Godot Engine, 4")) # Prints [0, 3, 4, 9, 10, 16, 18, 19]
|
||||
# Corresponds to the substrings "The", "Godot", "Engin", and "e, 4".
|
||||
print(ts.string_get_word_breaks("The Godot Engine, 4", "en", 5)) # Prints [0, 3, 4, 9, 10, 15, 15, 19]
|
||||
# Corresponds to the substrings "The Godot" and "Engine, 4".
|
||||
print(ts.string_get_word_breaks("The Godot Engine, 4", "en", 10)) # Prints [0, 9, 10, 19]
|
||||
[/codeblock]
|
||||
</description>
|
||||
</method>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue