基本Json格式化。
This commit is contained in:
22
formater/fmt.json.h
Normal file
22
formater/fmt.json.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef FMT_JSON_H
|
||||
#define FMT_JSON_H
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "util/axc.util.h"
|
||||
|
||||
class JsonFormatter
|
||||
{
|
||||
public:
|
||||
JsonFormatter();
|
||||
|
||||
public:
|
||||
std::string format(const std::string& path, const FormatterArg& arg);
|
||||
bool formatContent(const std::string& content, const FormatterArg& arg, std::string& outContent);
|
||||
bool save(const std::string& path, const std::string& content);
|
||||
|
||||
private:
|
||||
std::shared_ptr<spdlog::logger> logger;
|
||||
};
|
||||
|
||||
#endif // FMT_JSON_H
|
||||
Reference in New Issue
Block a user