Scid  4.7.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
TextBuffer Class Reference

#include <textbuf.h>

Public Member Functions

 TextBuffer ()
 
 ~TextBuffer ()
 
void Init ()
 
void Free ()
 
void Empty ()
 
void SetBufferSize (uint length)
 
uint GetBufferSize ()
 
uint GetByteCount ()
 
uint GetLineCount ()
 
uint GetColumn ()
 
uint GetWrapColumn ()
 
void SetWrapColumn (uint column)
 
uint GetIndent ()
 
void SetIndent (uint column)
 
char * GetBuffer ()
 
void NewlinesToSpaces (bool b)
 
void AddTranslation (char ch, const char *str)
 
void ClearTranslation (int ch)
 
void ClearTranslations ()
 
void PauseTranslations ()
 
void ResumeTranslations ()
 
errorT NewLine ()
 
errorT Indent ()
 
errorT PrintLine (const char *str)
 
errorT PrintWord (const char *str)
 
errorT PrintString (const char *str)
 
errorT PrintSpace ()
 
errorT PrintChar (char b)
 
errorT PrintInt (uint i, const char *str)
 
errorT PrintInt (uint i)
 

Detailed Description

Definition at line 22 of file textbuf.h.

Constructor & Destructor Documentation

◆ TextBuffer()

TextBuffer::TextBuffer ( )
inline

Definition at line 50 of file textbuf.h.

◆ ~TextBuffer()

TextBuffer::~TextBuffer ( )
inline

Definition at line 54 of file textbuf.h.

Member Function Documentation

◆ AddTranslation()

void TextBuffer::AddTranslation ( char  ch,
const char *  str 
)

Definition at line 66 of file textbuf.cpp.

◆ ClearTranslation()

void TextBuffer::ClearTranslation ( int  ch)
inline

Definition at line 75 of file textbuf.h.

◆ ClearTranslations()

void TextBuffer::ClearTranslations ( )
inline

Definition at line 76 of file textbuf.h.

◆ Empty()

void TextBuffer::Empty ( void  )

Definition at line 51 of file textbuf.cpp.

◆ Free()

void TextBuffer::Free ( void  )

Definition at line 35 of file textbuf.cpp.

◆ GetBuffer()

char* TextBuffer::GetBuffer ( )
inline

Definition at line 69 of file textbuf.h.

◆ GetBufferSize()

uint TextBuffer::GetBufferSize ( )
inline

Definition at line 61 of file textbuf.h.

◆ GetByteCount()

uint TextBuffer::GetByteCount ( )
inline

Definition at line 62 of file textbuf.h.

◆ GetColumn()

uint TextBuffer::GetColumn ( )
inline

Definition at line 64 of file textbuf.h.

◆ GetIndent()

uint TextBuffer::GetIndent ( )
inline

Definition at line 67 of file textbuf.h.

◆ GetLineCount()

uint TextBuffer::GetLineCount ( )
inline

Definition at line 63 of file textbuf.h.

◆ GetWrapColumn()

uint TextBuffer::GetWrapColumn ( )
inline

Definition at line 65 of file textbuf.h.

◆ Indent()

errorT TextBuffer::Indent ( )

Definition at line 116 of file textbuf.cpp.

◆ Init()

void TextBuffer::Init ( void  )

Definition at line 21 of file textbuf.cpp.

◆ NewLine()

errorT TextBuffer::NewLine ( )

Definition at line 98 of file textbuf.cpp.

◆ NewlinesToSpaces()

void TextBuffer::NewlinesToSpaces ( bool  b)
inline

Definition at line 70 of file textbuf.h.

◆ PauseTranslations()

void TextBuffer::PauseTranslations ( )
inline

Definition at line 77 of file textbuf.h.

◆ PrintChar()

errorT TextBuffer::PrintChar ( char  b)

Definition at line 187 of file textbuf.cpp.

◆ PrintInt() [1/2]

errorT TextBuffer::PrintInt ( uint  i,
const char *  str 
)

Definition at line 232 of file textbuf.cpp.

◆ PrintInt() [2/2]

errorT TextBuffer::PrintInt ( uint  i)
inline

Definition at line 89 of file textbuf.h.

◆ PrintLine()

errorT TextBuffer::PrintLine ( const char *  str)

Definition at line 135 of file textbuf.cpp.

◆ PrintSpace()

errorT TextBuffer::PrintSpace ( void  )

Definition at line 172 of file textbuf.cpp.

◆ PrintString()

errorT TextBuffer::PrintString ( const char *  str)

Definition at line 200 of file textbuf.cpp.

◆ PrintWord()

errorT TextBuffer::PrintWord ( const char *  str)

Definition at line 151 of file textbuf.cpp.

◆ ResumeTranslations()

void TextBuffer::ResumeTranslations ( )
inline

Definition at line 78 of file textbuf.h.

◆ SetBufferSize()

void TextBuffer::SetBufferSize ( uint  length)

Definition at line 80 of file textbuf.cpp.

◆ SetIndent()

void TextBuffer::SetIndent ( uint  column)
inline

Definition at line 68 of file textbuf.h.

◆ SetWrapColumn()

void TextBuffer::SetWrapColumn ( uint  column)
inline

Definition at line 66 of file textbuf.h.


The documentation for this class was generated from the following files: