Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit
20 lines
429 B
Swift
20 lines
429 B
Swift
//
|
|
// FontFileParser.swift
|
|
//
|
|
//
|
|
// Created by Thibaut Schmitt on 29/08/2022.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
enum FontFileParser {
|
|
|
|
static func parse(_ inputFile: String) -> [String] {
|
|
let inputFileContent = try! String( // swiftlint:disable:this force_try
|
|
contentsOfFile: inputFile,
|
|
encoding: .utf8
|
|
)
|
|
return inputFileContent.components(separatedBy: CharacterSet.newlines)
|
|
}
|
|
}
|