Files
subconverter/rapidjson_extra.h
Tindy X 380260af21 Fix bugs
Fix a critical bug preventing Shadowsocks obfs-host to be read in Surge 2 subscription.
Optimize codes.
2019-11-06 22:15:38 +08:00

14 lines
506 B
C++

#ifndef RAPIDJSON_EXTRA_H_INCLUDED
#define RAPIDJSON_EXTRA_H_INCLUDED
#include <rapidjson/document.h>
#include <string>
void operator >> (const rapidjson::Value& value, std::string& i);
void operator >> (const rapidjson::Value& value, int& i);
std::string GetMember(const rapidjson::Value& value, std::string member);
void GetMember(const rapidjson::Value& value, std::string member, std::string& target);
std::string SerializeObject(const rapidjson::Value& value);
#endif // RAPIDJSON_EXTRA_H_INCLUDED