summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2018-12-24 20:54:36 +0200
committerAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2018-12-24 20:54:36 +0200
commitb8f1fe9ed8f1d027104df6c70dd363726d7bf7ad (patch)
tree6b1b69d5e87acc34240a5da97c6b58013ecf494c /doc/classes
parent10e9221c49eddc05cb36c0b582060cac9e4c8cef (diff)
Bind `is_valid_hex_number` string method to GDScript
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/String.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/classes/String.xml b/doc/classes/String.xml
index 536165487d..dbef84fc15 100644
--- a/doc/classes/String.xml
+++ b/doc/classes/String.xml
@@ -439,6 +439,15 @@
Returns [code]true[/code] if this string contains a valid float.
</description>
</method>
+ <method name="is_valid_hex_number">
+ <return type="bool">
+ </return>
+ <argument index="0" name="with_prefix" type="bool" default="False">
+ </argument>
+ <description>
+ Returns [code]true[/code] if this string contains a valid hexadecimal number. If [code]with_prefix[/code] is [code]true[/code], then a validity of the hexadecimal number is determined by [code]0x[/code] prefix, for instance: [code]0xDEADC0DE[/code].
+ </description>
+ </method>
<method name="is_valid_html_color">
<return type="bool">
</return>