API Guides > ConceptRT 3.x
SubStrings Class Reference

Sub strings collection. More...

Detailed Description

Sub strings collection.

+ Inheritance diagram for SubStrings:

Public Member Methods

 SubStrings (const Strings &strings, Int32 indexFirst, Int32 count=SUBSTRINGS_ALL)
 Constructor. More...
 
Int32 GetCount () const
 Gets the count. More...
 
PCChar8 GetString (Int32 index) const
 Gets a string. More...
 
- Public Member Methods inherited from Strings
virtual ~Strings ()
 Destructor. More...
 
PCChar8 operator[] (Int32 index) const
 Array indexer operator. More...
 
void CheckCount (Int32 expectedValue) const
 Check count. Raise an exception whenever the count mismatch. More...
 
bool Contains (const PCChar8 text) const
 Query if this string collection contains the given text. More...
 

Constructor & Destructor Documentation

SubStrings ( const Strings strings,
Int32  indexFirst,
Int32  count = SUBSTRINGS_ALL 
)

Constructor.

Parameters
stringsThe string collection.
indexFirstThe index first.
count(optional) number of strings. Default = SUBSTRINGS_ALL

Methods Documentation

Int32 GetCount ( ) const
virtual

Gets the count.

Returns
The count.

Implements Strings.

PCChar8 GetString ( Int32  index) const
virtual

Gets a string.

Parameters
indexZero-based index of the.
Returns
The string.
RT Exceptions:
RT_ERROR_OUT_OF_BOUND_INDEX

Implements Strings.