mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Sync classref with current source
This commit is contained in:
@@ -448,16 +448,32 @@ Hashes the string and returns a 32-bit integer.
|
||||
|
||||
- :ref:`int<class_int>` **hex_to_int** **(** **)**
|
||||
|
||||
Converts a string containing a hexadecimal number into an integer.
|
||||
Converts a string containing a hexadecimal number into an integer. Hexadecimal strings are expected to be prefixed with "``0x``" otherwise ``0`` is returned.
|
||||
|
||||
::
|
||||
|
||||
print("0xff".hex_to_int()) # Print "255"
|
||||
|
||||
.. _class_String_method_http_escape:
|
||||
|
||||
- :ref:`String<class_String>` **http_escape** **(** **)**
|
||||
|
||||
Escapes (encodes) a string to URL friendly format. Also referred to as 'URL encode'.
|
||||
|
||||
::
|
||||
|
||||
print("https://example.org/?escaped=" + "Godot Engine:'docs'".http_escape())
|
||||
|
||||
.. _class_String_method_http_unescape:
|
||||
|
||||
- :ref:`String<class_String>` **http_unescape** **(** **)**
|
||||
|
||||
Unescapes (decodes) a string in URL encoded format. Also referred to as 'URL decode'.
|
||||
|
||||
::
|
||||
|
||||
print("https://example.org/?escaped=" + "Godot%20Engine%3A%27docs%27".http_unescape())
|
||||
|
||||
.. _class_String_method_insert:
|
||||
|
||||
- :ref:`String<class_String>` **insert** **(** :ref:`int<class_int>` position, :ref:`String<class_String>` what **)**
|
||||
|
||||
Reference in New Issue
Block a user