首页
开源
资讯
活动
开源许可证
软件工程云服务
软件代码质量检测云服务
持续集成与部署云服务
社区个性化内容推荐服务
贡献审阅人推荐服务
群体化学习服务
重睛鸟代码扫描工具
登录
注册
代码拉取完成,页面将自动刷新
Watch
1
Star
1
Fork
0
morre
/
csv-parser-cplusplus
Fork 仓库
加载中
取消
确认
代码
Issues
0
Pull Requests
0
Wiki
0
统计
发行版
最新版
1.0.0
2ade564
2022-08-12 16:24
对比
csv-parser-cplusplus
morre
Introduction It is written for parsing comma delimited, tab delimited and any single-character delimited text files. Details We are making the following assumptions : The record terminator is only one character in length. The field terminator is only one character in length. The fields are enclosed by single characters, if any. The parser can handle documents where fields are always enclosed, not enclosed at all or optionally enclosed. When fields are strictly all enclosed, there is an assumption that any enclosure characters within the field are escaped by placing a backslash in front of the enclosure character. The CSV files can be parsed in 3 modes. (a) No enclosures (b) Fields always enclosed. (c) Fields optionally enclosed. For option (c) when the enclosure character is optional, if an enclosure character is spotted at either the beginning or the end of the string, it is assumed that the field is enclosed. The csv_parser::init() method can accept a character array as the path to the CSV file. Since it is overloaded, it can also accept a FILE pointer to a stream that is already open for reading. The set_enclosed_char() method accepts the field enclosure character as the first parameter and the enclosure mode as the second parameter which controls how the text file is going to be parsed.
最后提交信息为:
No commit message
下载
请输入验证码,防止盗链导致资源被占用
取消
下载