Documentation for the Unity C# Library
Loading...
Searching...
No Matches
yutokun.CSVParser Class Reference

Static Public Member Functions

static List< List< string > > LoadFromPath (string path, Delimiter delimiter=Delimiter.Auto, Encoding encoding=null)
 Load CSV data from specified path.
 
static async Task< List< List< string > > > LoadFromPathAsync (string path, Delimiter delimiter=Delimiter.Auto, Encoding encoding=null)
 Load CSV data asynchronously from specified path.
 
static List< List< string > > LoadFromString (string data, Delimiter delimiter=Delimiter.Comma)
 Load CSV data from string.
 

Static Private Member Functions

static void AddCell (List< string > row, StringBuilder cell)
 
static void AddRow (List< List< string > > sheet, ref List< string > row)
 
static void ConvertToCrlf (ref string data)
 
static Delimiter EstimateDelimiter (string path)
 
static List< List< string > > Parse (string data, Delimiter delimiter)
 

Detailed Description

Definition at line 18 of file CSVParser.cs.

Member Function Documentation

◆ AddCell()

static void yutokun.CSVParser.AddCell ( List< string > row,
StringBuilder cell )
inlinestaticprivate

Definition at line 164 of file CSVParser.cs.

Here is the caller graph for this function:

◆ AddRow()

static void yutokun.CSVParser.AddRow ( List< List< string > > sheet,
ref List< string > row )
inlinestaticprivate

Definition at line 170 of file CSVParser.cs.

Here is the caller graph for this function:

◆ ConvertToCrlf()

static void yutokun.CSVParser.ConvertToCrlf ( ref string data)
inlinestaticprivate

Definition at line 176 of file CSVParser.cs.

Here is the caller graph for this function:

◆ EstimateDelimiter()

static Delimiter yutokun.CSVParser.EstimateDelimiter ( string path)
inlinestaticprivate

Definition at line 63 of file CSVParser.cs.

Here is the caller graph for this function:

◆ LoadFromPath()

static List< List< string > > yutokun.CSVParser.LoadFromPath ( string path,
Delimiter delimiter = Delimiter::Auto,
Encoding encoding = null )
inlinestatic

Load CSV data from specified path.

Parameters
pathCSV file path.
delimiterDelimiter.
encodingType of text encoding. (default UTF-8)
Returns
Nested list that CSV parsed.

Definition at line 27 of file CSVParser.cs.

Here is the call graph for this function:

◆ LoadFromPathAsync()

static async Task< List< List< string > > > yutokun.CSVParser.LoadFromPathAsync ( string path,
Delimiter delimiter = Delimiter::Auto,
Encoding encoding = null )
inlinestatic

Load CSV data asynchronously from specified path.

Parameters
pathCSV file path.
delimiterDelimiter.
encodingType of text encoding. (default UTF-8)
Returns
Nested list that CSV parsed.

Definition at line 47 of file CSVParser.cs.

Here is the call graph for this function:

◆ LoadFromString()

static List< List< string > > yutokun.CSVParser.LoadFromString ( string data,
Delimiter delimiter = Delimiter::Comma )
inlinestatic

Load CSV data from string.

Parameters
dataCSV string
delimiterDelimiter.
Returns
Nested list that CSV parsed.

Definition at line 85 of file CSVParser.cs.

Here is the call graph for this function:

◆ Parse()

static List< List< string > > yutokun.CSVParser.Parse ( string data,
Delimiter delimiter )
inlinestaticprivate

Definition at line 91 of file CSVParser.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: