buffalo
Loading...
Searching...
No Matches
bf::Location Struct Reference

#include <buffalo.h>

Public Member Functions

std::string SnippetString (std::size_t padding=10)
 

Public Attributes

std::string_view buffer
 
std::size_t begin
 
std::size_t end
 

Detailed Description

LOCATION Represents the location of a string of text in buffer. begin and end represent iterator positions in buffer. Each iterator position is in between two characters.

Definition at line 92 of file buffalo.h.

Member Function Documentation

◆ SnippetString()

std::string bf::Location::SnippetString ( std::size_t  padding = 10)
inline
Parameters
paddingAmount of characters before and after snippet to print.
Returns

Definition at line 103 of file buffalo.h.

Member Data Documentation

◆ begin

std::size_t bf::Location::begin

Definition at line 95 of file buffalo.h.

◆ buffer

std::string_view bf::Location::buffer

Definition at line 94 of file buffalo.h.

◆ end

std::size_t bf::Location::end

Definition at line 96 of file buffalo.h.


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