Smart Localization  2.3
SmartLocalization.Editor.CSVParser Class Reference

A CSV Parser More...

Public Types

enum  Delimiter {
  Delimiter.COMMA, Delimiter.SEMI_COLON, Delimiter.TAB, Delimiter.VERTICAL_BAR,
  Delimiter.CARET
}
 The delimiter type for CSV More...
 

Static Public Member Functions

static char GetDelimiter (Delimiter delimiter)
 Gets the actual delimiter char based on the CSVDelimiter type More...
 
static void Write (string path, char delimiter, List< List< string >> input)
 Write the csv to file More...
 
static void Write (string path, char delimiter, List< string > keys, Dictionary< string, Dictionary< string, string >> languages)
 Write a combined CSV to File More...
 
static List< List< string > > Read (string path, char delimiter)
 Read a csv file More...
 

Detailed Description

A CSV Parser

Member Enumeration Documentation

The delimiter type for CSV

Enumerator
COMMA 

COMMA

SEMI_COLON 

SEMI_COLON

TAB 

TAB

VERTICAL_BAR 

VERTICAL_BAR

CARET 

CARET

Member Function Documentation

static char SmartLocalization.Editor.CSVParser.GetDelimiter ( Delimiter  delimiter)
static

Gets the actual delimiter char based on the CSVDelimiter type

Parameters
delimiterThe delimiter type
Returns
the delimiter
static List<List<string> > SmartLocalization.Editor.CSVParser.Read ( string  path,
char  delimiter 
)
static

Read a csv file

Parameters
pathThe path to the file
delimiterThe delimiter used in the file
Returns
The parsed csv values
static void SmartLocalization.Editor.CSVParser.Write ( string  path,
char  delimiter,
List< List< string >>  input 
)
static

Write the csv to file

Parameters
pathThe destination path
delimiterThe delimiter to separate values with
inputThe Values
static void SmartLocalization.Editor.CSVParser.Write ( string  path,
char  delimiter,
List< string >  keys,
Dictionary< string, Dictionary< string, string >>  languages 
)
static

Write a combined CSV to File

Parameters
pathThe destination path
delimiterThe delimiter to separate values with

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