mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-02 12:06:58 +01:00
Create SAXUtilities.
This commit is contained in:
parent
c261aff21f
commit
e29a232b77
18
Modules/Parser/Sources/Parser/SAXUtilities.swift
Normal file
18
Modules/Parser/Sources/Parser/SAXUtilities.swift
Normal file
@ -0,0 +1,18 @@
|
||||
//
|
||||
// File.swift
|
||||
//
|
||||
//
|
||||
// Created by Brent Simmons on 8/26/24.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import libxml2
|
||||
|
||||
func SAXEqualStrings(_ s1: XMLPointer, _ s2: XMLPointer, length: Int? = nil) -> Bool {
|
||||
|
||||
if length == nil {
|
||||
return Bool(xmlStrEqual(s1, s2))
|
||||
}
|
||||
|
||||
return xmlStrncmp(s1, s2, length) == 0
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user