Minetest  5.4.0
BasicStrfnd< T > Class Template Reference

#include <strfnd.h>

+ Collaboration diagram for BasicStrfnd< T >:

Public Member Functions

 BasicStrfnd (const String &s)
 
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()

template<typename T >
BasicStrfnd< T >::BasicStrfnd ( const String s)
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(), ItemStackMetadata::deSerialize(), ItemStack::deSerialize(), findSubgame(), TextureSource::generateImagePart(), getAvailableGameIds(), getAvailableWorlds(), 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,
esc = static_cast<T>('\\') 
)
inline

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

Referenced by TextureSource::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 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: