Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
panchaBhuta committed Dec 13, 2023
1 parent 3669d7c commit 76c1a56
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ Example Usage
=============
Here is a simple example reading a CSV file and getting 'Close' column as a vector of floats.

https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/d20ff599ef09a677aecdc8eeaf4c35cb90710258/examples/colhdr.csv#L1-L6
https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/v3.3.0/examples/colhdr.csv#L1-L6


https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/d20ff599ef09a677aecdc8eeaf4c35cb90710258/examples/ex001.cpp#L1-L12
https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/v3.3.0/examples/ex001.cpp#L1-L12



Expand Down Expand Up @@ -111,28 +111,28 @@ as row headers one needs to use LabelParams and set pRowNameIdx to 0.
### Column and Row Headers
csv file with both column and row headers

https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/d20ff599ef09a677aecdc8eeaf4c35cb90710258/examples/colrowhdr.csv#L1-L6
https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/v3.3.0/examples/colrowhdr.csv#L1-L6


https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/d20ff599ef09a677aecdc8eeaf4c35cb90710258/examples/ex002.cpp#L1-L16
https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/v3.3.0/examples/ex002.cpp#L1-L16


### Row Headers Only
csv file with row header; i.e. no column header<br>

https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/d20ff599ef09a677aecdc8eeaf4c35cb90710258/examples/rowhdr.csv#L1-L6
https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/v3.3.0/examples/rowhdr.csv#L1-L6


https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/d20ff599ef09a677aecdc8eeaf4c35cb90710258/examples/ex003.cpp#L1-L13
https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/v3.3.0/examples/ex003.cpp#L1-L13


### No Headers
csv file with no column and row headers

https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/d20ff599ef09a677aecdc8eeaf4c35cb90710258/examples/nohdr.csv#L1-L5
https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/v3.3.0/examples/nohdr.csv#L1-L5


https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/d20ff599ef09a677aecdc8eeaf4c35cb90710258/examples/ex004.cpp#L1-L15
https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/v3.3.0/examples/ex004.cpp#L1-L15


Reading a File with Custom Separator
Expand All @@ -141,10 +141,10 @@ For reading of files with custom separator (i.e. not comma), one need to
specify the SeparatorParams argument. The following example reads a file using
semi-colon as separator.

https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/d20ff599ef09a677aecdc8eeaf4c35cb90710258/examples/semi.csv#L1-L6
https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/v3.3.0/examples/semi.csv#L1-L6


https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/d20ff599ef09a677aecdc8eeaf4c35cb90710258/examples/ex005.cpp#L1-L16
https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/v3.3.0/examples/ex005.cpp#L1-L16



Expand All @@ -154,10 +154,10 @@ The internal cell representation in the Document class is using std::string
and when other types are requested, [converter](https://github.com/panchaBhuta/converter/tree/main#supported-data-types-for-conversion) routines are used.
The following example illustrates the supported data types.

https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/d20ff599ef09a677aecdc8eeaf4c35cb90710258/examples/colrowhdr.csv#L1-L6
https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/v3.3.0/examples/colrowhdr.csv#L1-L6


https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/d20ff599ef09a677aecdc8eeaf4c35cb90710258/examples/ex006.cpp#L1-L21
https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/v3.3.0/examples/ex006.cpp#L1-L21


### **std::chrono::year_month_day** is the `Date` type used
Expand Down Expand Up @@ -190,7 +190,7 @@ Global Custom Data Type Conversion
One may override conversion routines (or add new ones) by implementing converter function ToVal() or ToStr(). Below is an example of int conversion, to instead provide two decimal fixed-point numbers. Also see [tests/test035.cpp](tests/test035.cpp).


https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/d20ff599ef09a677aecdc8eeaf4c35cb90710258/examples/ex008.cpp#L1-L19
https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/v3.3.0/examples/ex008.cpp#L1-L19


Custom Data Type Conversion Per Call
Expand All @@ -200,7 +200,7 @@ It is also possible to override conversions on a per-call basis, enabling more f
[tests/test087.cpp](tests/test087.cpp) and
[tests/test092.cpp](tests/test092.cpp)

https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/d20ff599ef09a677aecdc8eeaf4c35cb90710258/examples/ex009.cpp#L1-L43
https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/v3.3.0/examples/ex009.cpp#L1-L43


Reading CSV Data from a Stream or String
Expand All @@ -210,7 +210,7 @@ from a stream and, indirectly through stringstream, from a string. File streams
used with rapidcsv should be opened in `std::ios::binary` mode to enable full
functionality. Here is a simple example reading CSV data from a string:

https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/d20ff599ef09a677aecdc8eeaf4c35cb90710258/examples/ex007.cpp#L1-L25
https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/v3.3.0/examples/ex007.cpp#L1-L25

Check if a Column Exists
------------------------
Expand Down Expand Up @@ -281,7 +281,7 @@ Refer [test091.cpp](tests/test091.cpp), to see the effect of lowered Decimal-Pr

One can also provide their own decimal precision parameter thru several ways. This is illustrated in the example [exConv001.cpp](examples/exConv001.cpp), where data conversion precision is checked by implementing a complete conversion cycle i.e **data -> string -> data** .<br>

https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/d20ff599ef09a677aecdc8eeaf4c35cb90710258/examples/exConv001.cpp#L1-L166
https://github.com/panchaBhuta/rapidcsv_FilterSort/blob/v3.3.0/examples/exConv001.cpp#L1-L166


Locale Parsing Formats : String-to-T (i.e S2T)
Expand Down

0 comments on commit 76c1a56

Please sign in to comment.