Logo Search packages:      
Sourcecode: djvulibre version File versions

char * GUTF8String::getbuf ( int  n = -1  ) 

Provides a direct access to the string buffer. Returns a pointer for directly accessing the string buffer. This pointer valid remains valid as long as the string is not modified by other means. Positive values for argument n# represent the length of the returned buffer. The returned string buffer will be large enough to hold at least n# characters plus a null character. If n# is positive but smaller than the string length, the string will be truncated to n# characters.

Definition at line 2636 of file GString.cpp.

Referenced by DjVuTXT::decode(), DjVuANT::encode_raw(), and GURL::expand_name().

  else if(n>0)
  return ptr?((*this)->data):0;

Generated by  Doxygen 1.6.0   Back to index