Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
itemstackmetadata.cpp File Reference
#include "itemstackmetadata.h"
#include "util/serialize.h"
#include "util/strfnd.h"
#include <algorithm>
#include <optional>
+ 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"
 
#define WEAR_BAR_KEY   "wear_color"
 

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

◆ WEAR_BAR_KEY

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: