this repo has no description
www.jonmsterling.com/01HC/
1// SPDX-FileCopyrightText: 2025 The Project Pterodactyl Developers
2//
3// SPDX-License-Identifier: MPL-2.0
4
5import Foundation
6
7public struct Utf16Position: Equatable, Comparable, Sendable {
8 public var absoluteOffset: Int
9 public var line: Int
10 public var column : Int
11 public init(absoluteOffset: Int, line: Int, column: Int) {
12 self.absoluteOffset = absoluteOffset
13 self.line = line
14 self.column = column
15 }
16
17 public static func < (lhs: Utf16Position, rhs: Utf16Position) -> Bool {
18 lhs.absoluteOffset < rhs.absoluteOffset
19 }
20}
21
22public extension Utf16Position {
23 static var zero : Self { Self(absoluteOffset: 0, line: 0, column: 0) }
24}