mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-27 10:02:37 +01:00
19 lines
297 B
Swift
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
|
|
}
|