29 #if defined(WIN32) && !defined(__GNUC__)
30 #define wcsncasecmp _wcsnicmp
31 static inline bool isnan(
double x) {
return x != x; }
32 static inline bool isinf(
double x) {
return !isnan(x) && isnan(x - x); }
46 #if defined(__APPLE__) && __DARWIN_C_LEVEL < 200809L || (defined(WIN32) && defined(__GNUC__)) || defined(ANDROID)
50 static inline int wcsncasecmp(
const wchar_t *s1,
const wchar_t *s2,
size_t n)
75 static inline bool simplejson_wcsnlen(
const wchar_t *s,
size_t n) {
79 const wchar_t *save = s;
82 if (*(save++) == 0)
return false;
90 typedef std::vector<JSONValue*> JSONArray;
91 typedef std::map<std::wstring, JSONValue*> JSONObject;
93 #include "JSONValue.h"
100 static JSONValue* Parse(
const char *data);
101 static JSONValue* Parse(
const wchar_t *data);
102 static std::wstring Stringify(
const JSONValue *value);
103 static std::wstring s2ws(
const std::string& str);
104 static std::string ws2s(
const std::wstring& wstr);
106 static bool SkipWhitespace(
const wchar_t **data);
107 static bool ExtractString(
const wchar_t **data, std::wstring &str);
108 static double ParseInt(
const wchar_t **data);
109 static double ParseDecimal(
const wchar_t **data);
Definition: JSONValue.h:37