.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_PoolStringArray: PoolStringArray =============== **Category:** Built-In Types Brief Description ----------------- String Array. Member Functions ---------------- +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | :ref:`PoolStringArray` | :ref:`PoolStringArray` **(** :ref:`Array` from **)** | +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`append` **(** :ref:`String` string **)** | +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`append_array` **(** :ref:`PoolStringArray` array **)** | +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`insert` **(** :ref:`int` idx, :ref:`String` string **)** | +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`invert` **(** **)** | +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`join` **(** :ref:`String` string **)** | +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`push_back` **(** :ref:`String` string **)** | +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove` **(** :ref:`int` idx **)** | +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`resize` **(** :ref:`int` idx **)** | +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set` **(** :ref:`int` idx, :ref:`String` string **)** | +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`size` **(** **)** | +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------+ Description ----------- String Array. Array of strings. Can only contain strings. Optimized for memory usage, can't fragment the memory. Member Function Description --------------------------- .. _class_PoolStringArray_PoolStringArray: - :ref:`PoolStringArray` **PoolStringArray** **(** :ref:`Array` from **)** Create from a generic array. .. _class_PoolStringArray_append: - void **append** **(** :ref:`String` string **)** Append an element at the end of the array (alias of :ref:`push_back`). .. _class_PoolStringArray_append_array: - void **append_array** **(** :ref:`PoolStringArray` array **)** Append an StringArray at the end of this array. .. _class_PoolStringArray_insert: - :ref:`int` **insert** **(** :ref:`int` idx, :ref:`String` string **)** Insert a new element at a given position in the array. The position must be valid, or at the end of the array (pos==size()). .. _class_PoolStringArray_invert: - void **invert** **(** **)** .. _class_PoolStringArray_join: - :ref:`String` **join** **(** :ref:`String` string **)** Reverse the order of the elements in the array (so first element will now be the last). .. _class_PoolStringArray_push_back: - void **push_back** **(** :ref:`String` string **)** Append a string element at end of the array. .. _class_PoolStringArray_remove: - void **remove** **(** :ref:`int` idx **)** Remove an element from the array by index. .. _class_PoolStringArray_resize: - void **resize** **(** :ref:`int` idx **)** Set the size of the StringArray. If larger than the current size it will reserve some space beforehand, and if it is smaller it will cut off the array. .. _class_PoolStringArray_set: - void **set** **(** :ref:`int` idx, :ref:`String` string **)** Change the :ref:`String` at the given index. .. _class_PoolStringArray_size: - :ref:`int` **size** **(** **)** Return the size of the array.