mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-23 08:09:41 +01:00
Use new StringDictionary name.
This commit is contained in:
parent
a39130ff77
commit
1f8b296a9c
@ -46,6 +46,7 @@ let package = Package(
|
||||
.target(
|
||||
name: "HTMLParser",
|
||||
dependencies: [
|
||||
"FoundationExtras",
|
||||
"SAX"
|
||||
],
|
||||
swiftSettings: [
|
||||
@ -63,7 +64,9 @@ let package = Package(
|
||||
]),
|
||||
.target(
|
||||
name: "SAX",
|
||||
dependencies: [],
|
||||
dependencies: [
|
||||
"FoundationExtras"
|
||||
],
|
||||
swiftSettings: [
|
||||
.enableExperimentalFeature("StrictConcurrency")
|
||||
]),
|
||||
|
@ -6,6 +6,7 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import FoundationExtras
|
||||
import libxml2
|
||||
|
||||
public protocol SAXHTMLParserDelegate: AnyObject {
|
||||
@ -94,9 +95,7 @@ public final class SAXHTMLParser {
|
||||
characters.count = 0
|
||||
}
|
||||
|
||||
public typealias HTMLAttributesDictionary = [String: String]
|
||||
|
||||
public func attributesDictionary(_ attributes: UnsafePointer<XMLPointer?>?) -> HTMLAttributesDictionary? {
|
||||
public func attributesDictionary(_ attributes: UnsafePointer<XMLPointer?>?) -> StringDictionary? {
|
||||
|
||||
guard let attributes else {
|
||||
return nil
|
||||
|
@ -6,6 +6,7 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import FoundationExtras
|
||||
import libxml2
|
||||
|
||||
public typealias XMLPointer = UnsafePointer<xmlChar>
|
||||
@ -91,9 +92,7 @@ public final class SAXParser {
|
||||
characters.count = 0
|
||||
}
|
||||
|
||||
public typealias XMLAttributesDictionary = [String: String]
|
||||
|
||||
public func attributesDictionary(_ attributes: UnsafePointer<XMLPointer?>?, attributeCount: Int) -> XMLAttributesDictionary? {
|
||||
public func attributesDictionary(_ attributes: UnsafePointer<XMLPointer?>?, attributeCount: Int) -> StringDictionary? {
|
||||
|
||||
guard attributeCount > 0, let attributes else {
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user