Guitar
Public Types | Public Member Functions | Public Attributes | List of all members
Document::Line Struct Reference

#include <AbstractCharacterBasedApplication.h>

Public Types

enum  Type { Unknown, Normal, Add, Del }
 

Public Member Functions

 Line ()=default
 
 Line (QByteArray const &ba)
 
 Line (std::string const &str, Type type=Normal)
 
bool endsWithNewLine () const
 

Public Attributes

Type type = Unknown
 
int hunk_number = -1
 
int line_number = 0
 
size_t byte_offset = 0
 
QByteArray text
 

Member Enumeration Documentation

◆ Type

Enumerator
Unknown 
Normal 
Add 
Del 

Constructor & Destructor Documentation

◆ Line() [1/3]

Document::Line::Line ( )
default

◆ Line() [2/3]

Document::Line::Line ( QByteArray const &  ba)
inlineexplicit

◆ Line() [3/3]

Document::Line::Line ( std::string const &  str,
Type  type = Normal 
)
inlineexplicit

Member Function Documentation

◆ endsWithNewLine()

bool Document::Line::endsWithNewLine ( ) const
inline

Member Data Documentation

◆ byte_offset

size_t Document::Line::byte_offset = 0

◆ hunk_number

int Document::Line::hunk_number = -1

◆ line_number

int Document::Line::line_number = 0

◆ text

QByteArray Document::Line::text

◆ type

Type Document::Line::type = Unknown

The documentation for this struct was generated from the following file: