S2BSubRipFile
public struct S2BSubRipFile
A .srt file
-
Subtitles within the srt file.
Declaration
Swift
public var subtitles = [S2BSubtitle]()
-
Initialize a S2BSubRipFile with its content.
Declaration
Swift
public init(content: String)Parameters
contentcontent of a srt file.
-
Initialize a S2BSubRipFile with the url, nil if file not found.
Declaration
Swift
public init?(url: URL, stringEncoding enc: String.Encoding = .utf8)Parameters
urlurl to the srt file.
encencoding of the file content.
-
Initialize a S2BSubRipFile with its path, nil if file not found.
Declaration
Swift
public init?(path: String, stringEncoding enc: String.Encoding = .utf8)Parameters
pathpath to the srt file.
encencoding of the file content.
-
Convert back to what it would be like in a .srt file.
Declaration
Swift
public var description: String
View on GitHub
Install in Dash
S2BSubRipFile Structure Reference