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

void GUTF8String::setat ( const int  n,
const char  ch 
)

Set the character at position n# to value ch#. An exception {GException} is thrown if number n# is not in range #-len# to len#, where len# is the length of the string. If character ch# is zero, the string is truncated at position n#. The first character of a string is numbered zero. Negative positions represent characters relative to the end of the string. If position n# is equal to the length of the string, this function appends character ch# to the end of the string.

Definition at line 2652 of file GString.cpp.

Referenced by GOS::basename(), GURL::clear_cgi_arguments(), DjVuANT::is_empty(), and DjVuFile::unlink_file().

{
  if((!n)&&(!ptr))
  {
    init(GStringRep::UTF8::create(&ch,0,1));
  }else
  {
    init((*this)->setat(CheckSubscript(n),ch));
  }
}


Generated by  Doxygen 1.6.0   Back to index