next up previous contents
Next: Constant char* Up: char* Conversions Previous: char* Conversions   Contents

Str Indexing

You can index into a Str using getChar() and setChar()

x = Str("Hello")
char c = x.getChar(1); // c == 'e'
x.setChar(0, 'h'); // Now x == 'hello'



2007-05-05