teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Functions
Operations with regions

Functions

bool teditor::Buffer::isRegionActive () const
 
std::string teditor::Buffer::regionAsStr () const
 
std::string teditor::Buffer::regionAsStr (const Point &start, const Point &end) const
 
void teditor::Buffer::startRegion ()
 
void teditor::Buffer::stopRegion ()
 
const Pointteditor::Buffer::getRegion () const
 

Detailed Description

Function Documentation

◆ getRegion()

const Point& teditor::Buffer::getRegion ( ) const
inline

◆ isRegionActive()

bool teditor::Buffer::isRegionActive ( ) const
inline

checks if there's an active region

◆ regionAsStr() [1/2]

std::string teditor::Buffer::regionAsStr ( ) const

Returns the string that represents the currently highlighted region

◆ regionAsStr() [2/2]

std::string teditor::Buffer::regionAsStr ( const Point start,
const Point end 
) const

helper method to return the string in the given region

◆ startRegion()

void teditor::Buffer::startRegion ( )
inline

start a mark (or region)

◆ stopRegion()

void teditor::Buffer::stopRegion ( )
inline

stop the currently active mark (or region)