Detailed Method Reference
Namespace: Canley.Utility.CSV
Class: CanleyCSVReader
Load
public void Load(string rawData)-
Description: The primary entry point for the parser. It processes the raw string character-by-character, automatically handling BOM stripping and RFC 4180 escaping rules.
-
Workflow:
- BOM Check: Scans the start of the string for Byte Order Marks and offsets the parser to avoid corrupted headers.
- State Machine: Iterates through each character to identify delimiters, enclosure quotes, and line breaks.
- Grid Population: Builds the internal List<string[]> structure based on the parsed tokens.
-
Parameters:
rawData: The raw string content to be parsed into the reader.
-
Returns: void
-
Example:
reader.Load(csvTextAsset.text);