:github_url: hide .. Generated automatically by doc/tools/make_rst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the PoolStringArray.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_PoolStringArray: PoolStringArray =============== A pooled :ref:`Array` of :ref:`String`. Descripción ---------------------- An :ref:`Array` specifically designed to hold :ref:`String`\ s. Optimized for memory usage, does not fragment the memory. \ **Note:** This type is passed by value and not by reference. Tutoriales -------------------- - `OS Test Demo `__ Métodos -------------- +-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PoolStringArray` | :ref:`PoolStringArray` **(** :ref:`Array` from **)** | +-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`append` **(** :ref:`String` string **)** | +-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`append_array` **(** :ref:`PoolStringArray` array **)** | +-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`empty` **(** **)** | +-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`insert` **(** :ref:`int` idx, :ref:`String` string **)** | +-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`invert` **(** **)** | +-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`join` **(** :ref:`String` delimiter **)** | +-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | 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` **(** **)** | +-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ Descripciones de Métodos ------------------------------------------------ .. _class_PoolStringArray_method_PoolStringArray: - :ref:`PoolStringArray` **PoolStringArray** **(** :ref:`Array` from **)** Constructs a new ``PoolStringArray``. Optionally, you can pass in a generic :ref:`Array` that will be converted. ---- .. _class_PoolStringArray_method_append: - void **append** **(** :ref:`String` string **)** Concatena un elemento al final del array (alias de :ref:`push_back`). ---- .. _class_PoolStringArray_method_append_array: - void **append_array** **(** :ref:`PoolStringArray` array **)** Appends a ``PoolStringArray`` at the end of this array. ---- .. _class_PoolStringArray_method_empty: - :ref:`bool` **empty** **(** **)** Devuelve ``true`` si el array es vacio. ---- .. _class_PoolStringArray_method_insert: - :ref:`int` **insert** **(** :ref:`int` idx, :ref:`String` string **)** Inserta un nuevo elemento en una posición determinada del array. La posición debe ser válida, o al final del array (``idx == size()``). ---- .. _class_PoolStringArray_method_invert: - void **invert** **(** **)** Invierte el orden de los elementos en el array. ---- .. _class_PoolStringArray_method_join: - :ref:`String` **join** **(** :ref:`String` delimiter **)** Returns a :ref:`String` with each element of the array joined with the given ``delimiter``. ---- .. _class_PoolStringArray_method_push_back: - void **push_back** **(** :ref:`String` string **)** Añade un elemento de string al final de la array. ---- .. _class_PoolStringArray_method_remove: - void **remove** **(** :ref:`int` idx **)** Elimina un elemento del array por indice. ---- .. _class_PoolStringArray_method_resize: - void **resize** **(** :ref:`int` idx **)** Establece el tamaño del conjunto. Si el array crece, reserva elementos al final del array. Si el array se reduce, trunca el array al nuevo tamaño. ---- .. _class_PoolStringArray_method_set: - void **set** **(** :ref:`int` idx, :ref:`String` string **)** Cambia la :ref:`String` en el índice dado. ---- .. _class_PoolStringArray_method_size: - :ref:`int` **size** **(** **)** Devuelve el tamaño del array. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`