Logo Search packages:      
Sourcecode: djvulibre version File versions  Download package

char GBaseString::operator[] ( int  n ) const [inline, inherited]

Returns the character at position n#. An exception {GException} is thrown if number n# is not in range #-len# to len-1#, where len# is the length of the string. The first character of a string is numbered zero. Negative positions represent characters relative to the end of the string.

Definition at line 1282 of file GString.h.

{ return ((n||ptr)?((*this)->data[CheckSubscript(n)]):0); }

Generated by  Doxygen 1.6.0   Back to index