Definition at line 6 of file ftextstream.cpp.
 
      
        
          | QGStringBuffer::QGStringBuffer | ( | QGString * | str | ) |  | 
      
 
 
      
        
          | QGStringBuffer::~QGStringBuffer | ( |  | ) |  | 
      
 
 
      
        
          | int QGStringBuffer::at | ( |  | ) | const | 
      
 
 
      
        
          | bool QGStringBuffer::at | ( | int | pos | ) |  | 
      
 
Definition at line 97 of file ftextstream.cpp.
References m_str.
{
#if defined(CHECK_STATE)
  if ( !isOpen() ) 
  {
    qWarning( "QGStringBuffer::at: Buffer is not open" );
    return FALSE;
  }
#endif
  if ( (uint)pos >= 
m_str->length() ) 
 
  {
#if defined(CHECK_RANGE)
    qWarning( "QGStringBuffer::at: Index %d out of range", pos );
#endif
    return FALSE;
  }
  ioIndex = pos;
  return TRUE;
}
 
 
      
        
          | void QGStringBuffer::close | ( |  | ) |  | 
      
 
Definition at line 74 of file ftextstream.cpp.
{
  if ( isOpen() ) 
  {
    setFlags( IO_Direct );
    ioIndex = 0;
  }
}
 
 
      
        
          | void QGStringBuffer::flush | ( |  | ) |  | 
      
 
 
  
  | 
        
          | int QGStringBuffer::getch | ( |  | ) |  |  | inline | 
 
 
      
        
          | bool QGStringBuffer::open | ( | int | m | ) |  | 
      
 
Definition at line 40 of file ftextstream.cpp.
References m_str.
{
    {
#if defined(CHECK_STATE)
    qWarning( "QGStringBuffer::open: No string" );
#endif
    return FALSE;
    }
    if ( isOpen() ) 
    {                           
#if defined(CHECK_STATE)
    qWarning( "QGStringBuffer::open: Buffer already open" );
#endif
    return FALSE;
    }
    setMode( m );
    if ( m & IO_Truncate ) 
    {                    
    }
    if ( m & IO_Append ) 
    {                      
    ioIndex = 
m_str->length();
    } 
    else 
    {
    ioIndex = 0;
    }
    setState( IO_Open );
    setStatus( 0 );
    return TRUE;
}
 
 
      
        
          | int QGStringBuffer::putch | ( | int | ch | ) |  | 
      
 
 
  
  | 
        
          | int QGStringBuffer::readBlock | ( | char * | , |  
          |  |  | uint |  |  
          |  | ) |  |  |  | inline | 
 
 
      
        
          | uint QGStringBuffer::size | ( |  | ) | const | 
      
 
 
  
  | 
        
          | int QGStringBuffer::ungetch | ( | int |  | ) |  |  | inline | 
 
 
      
        
          | int QGStringBuffer::writeBlock | ( | const char * | p, | 
        
          |  |  | uint | len | 
        
          |  | ) |  |  | 
      
 
Definition at line 118 of file ftextstream.cpp.
References m_str.
{
  
  
  m_str->enlarge(ioIndex+len+1);
 
  memcpy(
m_str->data()+ioIndex,p,len);
  ioIndex+=len;
  m_str->data()[ioIndex]=
'\0';
 
  return len;
}
 
 
  
  | 
        
          | QGString* QGStringBuffer::m_str |  | protected | 
 
 
The documentation for this class was generated from the following file: