/// <summary> /// Split this String8 into a String8Set with the given delimiter. /// Requires the caller to pass an int[] to contain the split positions. /// Reuse the array in a loop for much better performance. Call /// String8Set.GetLength to determine the array length required. /// </summary> /// <param name="delimiter">Delimiter on which to split</param> /// <param name="positionArray">int[] to contain split positions</param> /// <returns>String8Set containing the String8 split on the delimiter</returns> public String8Set Split(byte delimiter, int[] positionArray) { return(String8Set.Split(this, delimiter, positionArray)); }
/// <summary> /// Split this String8 into a String8Set on the given delimiter, /// but only outside double-quoted sections. Used for CSV parsing. /// </summary> /// <param name="delimiter">Delimiter on which to split</param> /// <param name="positions">PartialArray<int> to contain split positions</param> /// <returns>String8Set containing the String8 split on the delimiter</returns> public String8Set SplitOutsideQuotes(byte delimiter, PartialArray <int> positions) { return(String8Set.SplitOutsideQuotes(this, delimiter, positions)); }
/// <summary> /// Split this String8, which is a row in a CSV, into cells, and /// unescape cell values. The buffer will be overwritten with the /// cell values shifted to remove wrapping quotes and escaped quotes /// and trailing nulls are written at the end. /// </summary> /// <param name="positions">PartialArray<int> to contain split positions</param> /// <returns>String8Set containing the String8 split into unescaped CSV cells</returns> public String8Set SplitAndDecodeCsvCells(PartialArray <int> positions) { return(String8Set.SplitAndDecodeCsvCells(this, positions)); }
internal ImmutableStringStore(String8Set sortedExistingValues) { _sortedExistingValues = sortedExistingValues; }