CrystalSpace

Public API Reference

Public Member Functions
csStringArray Class Reference

An array of strings. More...

#include <csutil/stringarray.h>

Inheritance diagram for csStringArray:
CS::Utility::StringArray< CS::Memory::AllocatorMalloc, csArrayCapacityDefault > csArray< const char *, csStringArrayElementHandler, CS::Memory::AllocatorMalloc, csArrayCapacityDefault > CS::Memory::CustomAllocated

List of all members.

Public Member Functions

 csStringArray (size_t limit=0, size_t threshold=0)
 Constructor for an empty array of strings.
 csStringArray (const char *str, const char *delimiters, ConsecutiveDelimiterMode delimMode=delimSplitEach, size_t limit=0, size_t threshold=0)
 Constructor for an array of string initialized by splitting a given string.

Detailed Description

An array of strings.

Definition at line 317 of file stringarray.h.


Constructor & Destructor Documentation

csStringArray::csStringArray ( size_t  limit = 0,
size_t  threshold = 0 
) [inline]

Constructor for an empty array of strings.

Parameters:
limitInitial count of elements that are allocated in the array.
thresholdAmount of additional elements that are allocated when the maximum count is reached.

Definition at line 328 of file stringarray.h.

csStringArray::csStringArray ( const char *  str,
const char *  delimiters,
ConsecutiveDelimiterMode  delimMode = delimSplitEach,
size_t  limit = 0,
size_t  threshold = 0 
) [inline]

Constructor for an array of string initialized by splitting a given string.

Parameters:
strThe string to split and place in this array.
delimitersThe delimiters to use to split the string.
delimModeThe way to split this array
limitInitial count of elements that are allocated in the array.
thresholdAmount of additional elements that are allocated when the maximum count is reached.

Definition at line 343 of file stringarray.h.


The documentation for this class was generated from the following file:

Generated for Crystal Space 2.0 by doxygen 1.7.6.1