GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
StringRef Class Reference

#include <Language.hh>

Public Member Functions

 StringRef ()
 StringRef (const std::string &s)
 StringRef (const StringRef &s, int start, int length)
const char & operator[] (int index) const
int size () const
StringRef substr (int start, int length) const
StringRef extend (const std::string &alphabet) const
StringRef & operator= (const StringRef &ref)

Static Public Member Functions

static std::string intersect (const std::string &s, const std::string &s2)

Friends

std::ostream & operator<< (std::ostream &o, const StringRef &ref)

Constructor & Destructor Documentation

◆ StringRef() [1/3]

StringRef::StringRef ( )
inline
Here is the caller graph for this function:

◆ StringRef() [2/3]

StringRef::StringRef ( const std::string & s)
inline

◆ StringRef() [3/3]

StringRef::StringRef ( const StringRef & s,
int start,
int length )
inline

Member Function Documentation

◆ extend()

StringRef StringRef::extend ( const std::string & alphabet) const
inline

◆ intersect()

std::string StringRef::intersect ( const std::string & s,
const std::string & s2 )
inlinestatic
Here is the caller graph for this function:

◆ operator=()

StringRef & StringRef::operator= ( const StringRef & ref)
inline

◆ operator[]()

const char & StringRef::operator[] ( int index) const
inline

◆ size()

int StringRef::size ( ) const
inline
Here is the caller graph for this function:

◆ substr()

StringRef StringRef::substr ( int start,
int length ) const
inline
Here is the caller graph for this function:

◆ operator<<

std::ostream & operator<< ( std::ostream & o,
const StringRef & ref )
friend

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