crystalspace.jbind.interfaces.iutil.stringarray
Interface iStringArray

All Superinterfaces:
iBase, iPointer
All Known Implementing Classes:
csStringArray

public interface iStringArray
extends iBase

This is an SCF-compatible interface for csStringArray.

Author:
Java wrapper - Quentin Anciaux, c++ version - http://crystal.sourceforge.net/docs/online/devapi/structiStringArray.php

Method Summary
 void deleteAll()
          Delete all strings in array.
 boolean deleteIndex(int n)
          Delete Nth string in the array.
 int find(java.lang.String value)
          Find a string, case-sensitive.
 int findCaseInsensitive(java.lang.String value)
          Find a string, case-insensitive.
 int findSortedKey(java.lang.String value)
          Find index of a string in a pre-sorted string array.
 java.lang.String get(int n)
          Get Nth string in vector.
 boolean insert(int n, java.lang.String value)
          Insert a string before Nth string in the array.
 int length()
          Query array length.
 java.lang.String pop()
          Pop a string from the top of stack.
 void push(java.lang.String value)
          Push a string onto the stack.
 void sort()
          Sort the string array.
 
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase
decRef, getName, getRefCount, getVersion, incRef, queryInterface, queryInterfaceSafe
 
Methods inherited from interface crystalspace.jbind.interfaces.iPointer
changePointer, getPointer, isMemoryOwner, setMemoryOwner
 

Method Detail

deleteAll

public void deleteAll()
Delete all strings in array. Implemented in scfStringArray.


deleteIndex

public boolean deleteIndex(int n)
Delete Nth string in the array. Implemented in scfStringArray.

Parameters:
n -
Returns:

find

public int find(java.lang.String value)
Find a string, case-sensitive. Returns -1 if not found, else item index. Works with unsorted arrays. For sorted arrays, FindSortedKey(); is faster. Implemented in scfStringArray.

Parameters:
value -
Returns:

findCaseInsensitive

public int findCaseInsensitive(java.lang.String value)
Find a string, case-insensitive. Returns -1 if not found, else item index. Works with unsorted arrays. For sorted arrays, FindSortedKey(); is faster. Implemented in scfStringArray.

Parameters:
value -
Returns:

findSortedKey

public int findSortedKey(java.lang.String value)
Find index of a string in a pre-sorted string array. Implemented in scfStringArray.

Parameters:
value -
Returns:

get

public java.lang.String get(int n)
Get Nth string in vector. Implemented in scfStringArray.

Parameters:
n -
Returns:

insert

public boolean insert(int n,
                      java.lang.String value)
Insert a string before Nth string in the array. Implemented in scfStringArray.

Parameters:
n -
value -
Returns:

length

public int length()
Query array length. Implemented in scfStringArray.

Returns:

pop

public java.lang.String pop()
Pop a string from the top of stack. Implemented in scfStringArray.

Returns:

push

public void push(java.lang.String value)
Push a string onto the stack. Implemented in scfStringArray.

Parameters:
value -

sort

public void sort()
Sort the string array. Implemented in scfStringArray.