UCsvWrapper represent a csv table, you can edit in place InCsv or create a new one.
CsvWrapper
-
CreateCsvWrapper
Create a CSV Table from a FString with an optional RowKey as column name
static UCsvWrapper* CreateCsvWrapper(const FString& Csv, FString RowKey = TEXT(""));
-
ToString
Export CSV as string
-
Clear
Clear table data
-
GetCellByNames
Get cell content
bool GetCellByNames(FString ColumnName, FString RowName, FString& Value);
-
GetCellByIndices
Get cell content
bool GetCellByIndices(int32 ColumnIndex, int32 RowIndex, FString& Value);
-
GetCellByNameAndIndex
Get cell content
bool GetCellByNameAndIndex(FString ColumnName, int32 RowIndex, FString& Value);
-
GetCellByIndexAndName
Get cell content
bool GetCellByIndexAndName(int32 ColumnIndex, FString RowName, FString& Value);
-
GetColumnByName
Get entire column
bool GetColumnByName(FString Name, TArray<FString>& Values);
-
GetColumnByIndex
Get entire column
bool GetColumnByIndex(int32 Index, TArray<FString>& Values);
-
GetColumnCount
Get columns count (excluded column with key)
-
GetColumnIndex
Get column index by name (excluded column with key)
bool GetColumnIndex(FString Name, int32& Index);
-
GetColumnName
Get column name by index
bool GetColumnName(int32 Index, FString& Name);
-
GetColumnNames
Get column names (header row)
bool GetColumnNames(TArray<FString>& Columns);
-
GetRowByName
Get entire row
bool GetRowByName(FString Name, TArray<FString>& Values);
-
GetRowByIndex
Get entire row
bool GetRowByIndex(int32 Index, TArray<FString>& Values);
-
GetRowCount
Get rows count (excluded column with key)
-
GetRowIndex
Get row index by name (excluded column with key)
bool GetRowIndex(FString Name, int32& Index);
-
GetRowName
Get row name by index
bool GetRowName(int32 Index, FString& Name);
-
GetRowNames
Get row names (column key)
bool GetRowNames(TArray<FString>& Rows);
-
InsertColumnAtIndex
Insert column at index
bool InsertColumnAtIndex(int32 Index, TArray<FString> Column, FString ColumnName);
-
AppendColumn
Append column at the end
bool AppendColumn(const TArray<FString>& Column, const FString& ColumnName);
-
InsertRowAtIndex
Insert row at index
bool InsertRowAtIndex(int32 Index, TArray<FString> Row, FString RowName);
-
AppendRow
Append row at the end
bool AppendRow(const TArray<FString>& Row, const FString& RowName);
-
FromString
Load csv string into table
void FromString(const FString& Csv, FString RowKey = TEXT(""));
-
RemoveColumnAtIndex
Remove column at index (excluded column with key)
bool RemoveColumnAtIndex(int32 Index);
-
RemoveColumnWithName
Remove column with name (excluded column with key)
bool RemoveColumnWithName(FString Name);
-
RemoveRowAtIndex
Remove row at index (excluded header row)
bool RemoveRowAtIndex(int32 Index);
-
RemoveRowWithName
Remove row with name (excluded header row)
bool RemoveRowWithName(FString Name);
-
SetCellByNames
Set cell content
bool SetCellByNames(FString ColumnName, FString RowName, FString Value);
-
SetCellByIndices
Set cell content
bool SetCellByIndices(int32 ColumnIndex, int32 RowIndex, FString Value);
-
SetCellByNameAndIndex
Set cell content
bool SetCellByNameAndIndex(FString ColumnName, int32 RowIndex, FString Value);
-
SetCellByIndexAndName
Set cell content
bool SetCellByIndexAndName(int32 ColumnIndex, FString RowName, FString Value);
-
SetColumnByIndex
Set entire column content
bool SetColumnByIndex(int32 ColumnIndex, const TArray<FString>& Column);
-
SetColumnByName
Set entire column content
bool SetColumnByName(FString Name, const TArray<FString>& Column);
-
SetColumnName
Set column name
bool SetColumnName(int32 Index, FString NewName);
-
SetRowByIndex
Set entire row content
bool SetRowByIndex(int32 RowIndex, const TArray<FString>& Row);
-
SetRowByName
Set entire row content
bool SetRowByName(FString Name, const TArray<FString>& Row);
-
SetRowName
Set row name
bool SetRowName(int32 Index, FString NewName);
-
ClearEmptyColum
Remove any columns without a designated column name, typically used for formulae or notes
-
ClearEmptyRow
Remove any rows without a designated row name, typically used for formulae or notes