mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Create SAXUtilities.
This commit is contained in:
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
|
||||
}
|
||||
Reference in New Issue
Block a user