Sese Framework  x.y.z
A cross-platform framework
载入中...
搜索中...
未找到
DateTimeParser.cpp 文件参考
#include <sese/Config.h>
#include <sese/text/DateTimeParser.h>
#include <sese/io/InputBufferWrapper.h>
#include <chrono>

宏定义

#define XX(ch, exp_size, save_to)
 

宏定义说明

◆ XX

#define XX ( ch,
exp_size,
save_to )
值:
case ch: { \
char *end; \
auto c = count(p_format, exp_size); \
if (c >= exp_size) { \
char buffer[exp_size + 1]{}; \
if (input.read(buffer, exp_size) != exp_size) { \
return std::nullopt; \
} \
save_to = std::strtol(buffer, &end, 10); \
if (*end != 0) { \
return std::nullopt; \
} \
p_format += exp_size; \
} else { \
p_format += c; \
} \
break; \
}