CMUtil/inc/hgl/util/csv/CSVFieldSplite.h

28 lines
584 B
C
Raw Normal View History

2023-07-12 18:34:57 +08:00
#pragma once
namespace hgl
{
namespace util
{
/**
* CSV字段拆分工具<br>
2023-07-13 23:13:08 +08:00
* tab分隔以及使用引号包裹的字符串
*/
2023-07-12 18:34:57 +08:00
class CSVFieldSplite
{
const char *str;
int str_length;
const char *sp;
const char *end;
public:
CSVFieldSplite(const char *s,const int length);
~CSVFieldSplite()=default;
const char *next_field(int *len);
};//class CSVFieldSplite
}//namespace util
}//namespace hgl