CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

iStringArray Struct Reference
[Utilities]

This is an SCF-compatible interface for csStringArray. More...

#include <stringarray.h>

Inheritance diagram for iStringArray:

iBase scfStringArray List of all members.

Public Methods

virtual int Length () const=0
 Query array length. More...

virtual void Push (const char *value)=0
 Push a string onto the stack. More...

virtual char * Pop ()=0
 Pop a string from the top of stack. More...

virtual char const * Get (int n) const=0
 Get Nth string in vector. More...

virtual int Find (const char *value) const=0
 Find a string, case-sensitive. More...

virtual int FindCaseInsensitive (const char *value) const=0
 Find a string, case-insensitive. More...

virtual int FindSortedKey (const char *value) const=0
 Find index of a string in a pre-sorted string array. More...

virtual void Sort ()=0
 Sort the string array. More...

virtual bool DeleteIndex (int n)=0
 Delete Nth string in the array. More...

virtual bool Insert (int n, char const *value)=0
 Insert a string before Nth string in the array. More...

virtual void DeleteAll ()=0
 Delete all strings in array. More...


Detailed Description

This is an SCF-compatible interface for csStringArray.

Definition at line 33 of file iutil/stringarray.h.


Member Function Documentation

virtual void iStringArray::DeleteAll   [pure virtual]
 

Delete all strings in array.

Implemented in scfStringArray.

virtual bool iStringArray::DeleteIndex int    n [pure virtual]
 

Delete Nth string in the array.

Implemented in scfStringArray.

virtual int iStringArray::Find const char *    value const [pure virtual]
 

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.

virtual int iStringArray::FindCaseInsensitive const char *    value const [pure virtual]
 

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.

virtual int iStringArray::FindSortedKey const char *    value const [pure virtual]
 

Find index of a string in a pre-sorted string array.

Implemented in scfStringArray.

virtual char const* iStringArray::Get int    n const [pure virtual]
 

Get Nth string in vector.

Implemented in scfStringArray.

virtual bool iStringArray::Insert int    n,
char const *    value
[pure virtual]
 

Insert a string before Nth string in the array.

Implemented in scfStringArray.

virtual int iStringArray::Length   const [pure virtual]
 

Query array length.

Implemented in scfStringArray.

virtual char* iStringArray::Pop   [pure virtual]
 

Pop a string from the top of stack.

Implemented in scfStringArray.

virtual void iStringArray::Push const char *    value [pure virtual]
 

Push a string onto the stack.

virtual void iStringArray::Sort   [pure virtual]
 

Sort the string array.

Implemented in scfStringArray.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14