Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
BasicStrfnd< T > Class Template Reference

#include <strfnd.h>

+ Collaboration diagram for BasicStrfnd< T >:

Public Member Functions

 BasicStrfnd (const String &s)
 
 BasicStrfnd (const T *ptr)
 
 BasicStrfnd (std::basic_string_view< T > sv)
 
void start (const String &s)
 
size_t where ()
 
void to (size_t i)
 
bool at_end ()
 
String what ()
 
String next (const String &sep)
 
String next_esc (const String &sep, T esc=static_cast< T >('\\'))
 
void skip_over (const String &chars)
 

Private Types

typedef std::basic_string< T > String
 

Private Attributes

String str
 
size_t pos
 

Member Typedef Documentation

◆ String

template<typename T >
typedef std::basic_string<T> BasicStrfnd< T >::String
private

Constructor & Destructor Documentation

◆ BasicStrfnd() [1/3]

template<typename T >
BasicStrfnd< T >::BasicStrfnd ( const String & s)
inline

References BasicStrfnd< T >::start().

+ Here is the call graph for this function:

◆ BasicStrfnd() [2/3]

template<typename T >
BasicStrfnd< T >::BasicStrfnd ( const T * ptr)
inline

◆ BasicStrfnd() [3/3]

template<typename T >
BasicStrfnd< T >::BasicStrfnd ( std::basic_string_view< T > sv)
inline

Member Function Documentation

◆ at_end()

template<typename T >
bool BasicStrfnd< T >::at_end ( )
inline

References BasicStrfnd< T >::pos, and BasicStrfnd< T >::str.

Referenced by ChatBackend::addMessage(), ItemStack::deSerialize(), ItemStackMetadata::deSerialize(), findSubgame(), ImageSource::generateImagePart(), getAvailableGameIds(), getAvailableWorlds(), getEnvModPaths(), Client::handleCommand_AnnounceMedia(), and inputItemMatchesRecipe().

+ Here is the caller graph for this function:

◆ next()

◆ next_esc()

template<typename T >
String BasicStrfnd< T >::next_esc ( const String & sep,
T esc = static_cast<T>('\\') )
inline

References BasicStrfnd< T >::pos, and BasicStrfnd< T >::str.

Referenced by ImageSource::generateImagePart().

+ Here is the caller graph for this function:

◆ skip_over()

template<typename T >
void BasicStrfnd< T >::skip_over ( const String & chars)
inline

References p(), BasicStrfnd< T >::pos, and BasicStrfnd< T >::str.

Referenced by ItemStack::deSerialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ start()

template<typename T >
void BasicStrfnd< T >::start ( const String & s)
inline

References BasicStrfnd< T >::pos, and BasicStrfnd< T >::str.

Referenced by BasicStrfnd< T >::BasicStrfnd(), and ItemStack::deSerialize().

+ Here is the caller graph for this function:

◆ to()

template<typename T >
void BasicStrfnd< T >::to ( size_t i)
inline

References BasicStrfnd< T >::pos.

Referenced by ItemStackMetadata::deSerialize().

+ Here is the caller graph for this function:

◆ what()

template<typename T >
String BasicStrfnd< T >::what ( )
inline

References BasicStrfnd< T >::str.

◆ where()

template<typename T >
size_t BasicStrfnd< T >::where ( )
inline

References BasicStrfnd< T >::pos.

Member Data Documentation

◆ pos

◆ str


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