Crossfire Server, Trunk
inja::string_view Namespace Reference

Functions

nonstd::string_view slice (nonstd::string_view view, size_t start, size_t end)
 
std::pair< nonstd::string_view, nonstd::string_view > split (nonstd::string_view view, char Separator)
 
bool starts_with (nonstd::string_view view, nonstd::string_view prefix)
 

Function Documentation

◆ slice()

nonstd::string_view inja::string_view::slice ( nonstd::string_view  view,
size_t  start,
size_t  end 
)
inline

Definition at line 1880 of file inja.hpp.

References say::max.

Referenced by inja::get_source_location(), inja::Lexer::make_token(), inja::Lexer::scan(), and split().

+ Here is the caller graph for this function:

◆ split()

std::pair<nonstd::string_view, nonstd::string_view> inja::string_view::split ( nonstd::string_view  view,
char  Separator 
)
inline

Definition at line 1886 of file inja.hpp.

References slice().

+ Here is the call graph for this function:

◆ starts_with()

bool inja::string_view::starts_with ( nonstd::string_view  view,
nonstd::string_view  prefix 
)
inline

Definition at line 1894 of file inja.hpp.

References castle_read::prefix.

Referenced by nssv_DISABLE_MSVC_WARNINGS(), inja::Lexer::scan(), inja::Lexer::scan_body(), and inja::Lexer::start().

+ Here is the caller graph for this function: