Tomoaki Kawada 624d291f79 Update #includes
- Reorder them so that system libraries come first
- Use C++-style headers (`<cmath>`) instead of C-style headers (`<math.h>`)
2016-12-03 19:04:58 +09:00

25 lines
466 B
C++

/*
* Copyright (c) 2013 yvt
* WTFPL
*/
#include <cstdint>
#include <string>
#include <Core/Math.h>
namespace spades {
class CP437 {
class ReverseMap;
static ReverseMap reverse;
CP437() {}
~CP437() {}
public:
static char EncodeChar(std::uint32_t unicode, char fallback = 0xff);
static std::uint32_t DecodeChar(char c);
static std::string Encode(const std::string &, char fallback = 0xff);
static std::string Decode(const std::string &);
};
}