NetNewsWire/Modules/Parser/Sources/SAX/SAXUtilities.swift
2024-08-26 20:53:57 -07:00

19 lines
297 B
Swift

//
// 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 let length {
return xmlStrncmp(s1, s2, Int32(length)) == 0
}
return xmlStrEqual(s1, s2) != 0
}