ParsingTools ClassThe ParsingTools class is a utility for converting strings into structured data types, such as lists of integers, floats, enums, or single values. It provides helper methods to streamline the parsing of data from string representations commonly used in external sources like Google Sheets or configuration files.
GetIntList(string s, char separator = '/')Description:
Parameters:
s (string): The input string containing integers separated by a character.separator (char, default: /): The character used to separate the integer values.Returns: List<int> — A list of integers parsed from the string.
Example:
var intList = ParsingTools.GetIntList("1/2/3/4");
// Result: [1, 2, 3, 4]
GetFloatList(string s, char separator = '/')