Contents

getChar

Returns the character at a given index in the string object.

Declaration

virtual char getChar(
 unsigned intindex) const;

Parameters

  • index:

    The index into the string.

Return Value

The character at index within the string, or '\0' if index is past the end of the string.

See Also

Miscellaneous