Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
f05029b6
Commit
f05029b6
authored
9 years ago
by
Daniil Medvedev
Browse files
Options
Downloads
Patches
Plain Diff
csv header comments
parent
379437b2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/csv/csv.h
+8
-5
8 additions, 5 deletions
src/lib/csv/csv.h
with
8 additions
and
5 deletions
src/lib/csv/csv.h
+
8
−
5
View file @
f05029b6
...
...
@@ -77,7 +77,9 @@ csv_setopt(struct csv *csv, int opt, ...);
void
csv_parse_chunk
(
struct
csv
*
csv
,
const
char
*
s
,
const
char
*
end
);
/**
* emits all remaining symbols from buffer
*/
void
csv_finish_parsing
(
struct
csv
*
csv
);
...
...
@@ -87,7 +89,9 @@ csv_finish_parsing(struct csv *csv);
int
csv_isvalid
(
struct
csv
*
csv
);
/**
* @brief The csv_iterator struct allows iterate field by field through csv
*/
struct
csv_iterator
{
struct
csv
*
csv
;
...
...
@@ -101,7 +105,7 @@ struct csv_iterator {
void
csv_iter_create
(
struct
csv_iterator
*
it
,
struct
csv
*
csv
);
/**
*
@brief csv_next r
ecieves next element from csv
*
R
ecieves next element from csv
* element is field or end of line
* @return iteration state
*/
...
...
@@ -117,9 +121,8 @@ csv_feed(struct csv_iterator *, const char *);
/**
* @brief csv_escape_field adds pair quote and
* if there is comma in field, adds surrounding quotes
* if there is comma
or linebreak
in field, adds surrounding quotes
*/
int
csv_escape_field
(
struct
csv
*
csv
,
const
char
*
field
,
char
*
dst
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment