Skip to content

Instantly share code, notes, and snippets.

@jasdev
Last active January 25, 2021 20:49

Revisions

  1. jasdev revised this gist Jan 25, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion srt_grou_parser_start.swift
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    let srtGroupParser = Int.parser() // The sequence number.
    let srtGroupParser = Int.parser(isSigned: false) // The sequence number.
    .skip(Newline()) // ❌ “Generic struct ‘Newline’ requires the types ‘Substring.Element’
    // (aka ‘Character’) and ‘UTF8.CodeUnit’ (aka ‘UInt8’) be equivalent.”
    .take(timecodeLineParser)
  2. jasdev revised this gist Jan 25, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion srt_grou_parser_start.swift
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    let srtGroupParser = Int.parser() // The sequence number.
    .skip(Newline()) // ❌ “Generic struct ‘Newline’ requires the types ‘Substring.Element’
    // (aka ‘Character’) and ‘UTF8.CodeUnit’ (aka ‘UInt8’) be equivalent”
    // (aka ‘Character’) and ‘UTF8.CodeUnit’ (aka ‘UInt8’) be equivalent.
    .take(timecodeLineParser)
    .skip(Newline())
    // …
  3. jasdev created this gist Jan 25, 2021.
    6 changes: 6 additions & 0 deletions srt_grou_parser_start.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    let srtGroupParser = Int.parser() // The sequence number.
    .skip(Newline()) // ❌ “Generic struct ‘Newline’ requires the types ‘Substring.Element’
    // (aka ‘Character’) and ‘UTF8.CodeUnit’ (aka ‘UInt8’) be equivalent”
    .take(timecodeLineParser)
    .skip(Newline())
    // …