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

size_t ByteStream::writestring ( const GUTF8String s ) [inherited]

Writes the string as is, to the specified stream.

Definition at line 443 of file ByteStream.cpp.

References GBaseString::getUTF82Native(), GBaseString::length(), and ByteStream::writall().

Referenced by DjVmDir0::encode(), DjVmDir::encode(), ByteStream::format(), DjVuDocument::writeDjVuXML(), DjVuAnno::writeMap(), DjVuANT::writeMap(), ByteStream::writemessage(), DjVuInfo::writeParam(), DjVuAnno::writeParam(), DjVuANT::writeParam(), DjVuText::writeText(), DjVuTXT::writeText(), and DjVuImage::writeXML().

  int retval;
  if(cp != NATIVE)
    retval=writall((const char *)s,s.length());
    if(cp == AUTO)
      cp=UTF8; // Avoid mixing string types.
    const GNativeString msg(s.getUTF82Native());
    retval=writall((const char *)msg,msg.length());
  return retval;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index