Minetest  5.4.0
itemstackmetadata.cpp File Reference
#include "itemstackmetadata.h"
#include "util/serialize.h"
#include "util/strfnd.h"
#include <algorithm>
+ Include dependency graph for itemstackmetadata.cpp:

Macros

#define DESERIALIZE_START   '\x01'
 
#define DESERIALIZE_KV_DELIM   '\x02'
 
#define DESERIALIZE_PAIR_DELIM   '\x03'
 
#define DESERIALIZE_START_STR   "\x01"
 
#define DESERIALIZE_KV_DELIM_STR   "\x02"
 
#define DESERIALIZE_PAIR_DELIM_STR   "\x03"
 
#define TOOLCAP_KEY   "tool_capabilities"
 

Functions

static void sanitize_string (std::string &str)
 

Macro Definition Documentation

◆ DESERIALIZE_KV_DELIM

#define DESERIALIZE_KV_DELIM   '\x02'

◆ DESERIALIZE_KV_DELIM_STR

#define DESERIALIZE_KV_DELIM_STR   "\x02"

◆ DESERIALIZE_PAIR_DELIM

#define DESERIALIZE_PAIR_DELIM   '\x03'

◆ DESERIALIZE_PAIR_DELIM_STR

#define DESERIALIZE_PAIR_DELIM_STR   "\x03"

◆ DESERIALIZE_START

#define DESERIALIZE_START   '\x01'

◆ DESERIALIZE_START_STR

#define DESERIALIZE_START_STR   "\x01"

◆ TOOLCAP_KEY

#define TOOLCAP_KEY   "tool_capabilities"

Function Documentation

◆ sanitize_string()

static void sanitize_string ( std::string &  str)
static

References DESERIALIZE_KV_DELIM, DESERIALIZE_PAIR_DELIM, and DESERIALIZE_START.

Referenced by ItemStackMetadata::setString().

+ Here is the caller graph for this function: