make split_input private, make resplit private, update tests and the converter

This commit is contained in:
ado
2021-02-06 01:44:46 +01:00
parent 42629c39c4
commit 9b90803f6f
4 changed files with 86 additions and 41 deletions

View File

@@ -48,6 +48,7 @@ Bill (Heath) Gates 65 3.3
* Works on any type
* Easy to use
* No exceptions
* Works with quotes, escapes and spacings
* Columns and rows can be ignored
* Works with any type of delimiter
* Can return whole objects composed of converted values
@@ -216,6 +217,15 @@ inline bool ss::extract(const char* begin, const char* end, shape& dst) {
```
The shape enum will be used in an example below. The **inline** is there just to prevent multiple definition errors. The function returns **true** if the conversion was a success, and **false** otherwise. The function uses **const char*** begin and end for performance reasons.
## Quoting
Not yet documented.
## Escaping
Not yet documented.
## Spacing
Not yet documented.
## Error handling
Detailed error messages can be accessed via the **error_msg** method, and to enable them the error mode has to be changed to **error_mode::error_string** using the **set_error_mode** method: