PoolStringArray¶
Descripción¶
An Array specifically designed to hold Strings. Optimized for memory usage, does not fragment the memory.
Note: This type is passed by value and not by reference.
Tutoriales¶
Métodos¶
PoolStringArray ( Array from ) |
|
void |
|
void |
append_array ( PoolStringArray array ) |
empty ( ) |
|
void |
invert ( ) |
void |
|
void |
|
void |
|
void |
|
size ( ) |
Descripciones de Métodos¶
PoolStringArray PoolStringArray ( Array from )
Constructs a new PoolStringArray
. Optionally, you can pass in a generic Array that will be converted.
void append ( String string )
Concatena un elemento al final del array (alias de push_back).
void append_array ( PoolStringArray array )
Appends a PoolStringArray
at the end of this array.
bool empty ( )
Devuelve true
si el array es vacio.
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()
).
void invert ( )
Invierte el orden de los elementos en el array.
Returns a String with each element of the array joined with the given delimiter
.
void push_back ( String string )
Añade un elemento de string al final de la array.
void remove ( int idx )
Elimina un elemento del array por indice.
void resize ( 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.
Cambia la String en el índice dado.
int size ( )
Devuelve el tamaño del array.