From 40038b02ce651958ae703c8ecfe5f5578e1f7f09 Mon Sep 17 00:00:00 2001 From: Arturs Artamonovs Date: Sat, 26 Sep 2026 21:53:06 +0100 Subject: create adsbdecoder as UI, and renmae adsbdecoder to adsbdecodercli for terminal version --- ADSBDecoderFramework/ADSBRegEx.swift | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'ADSBDecoderFramework/ADSBRegEx.swift') diff --git a/ADSBDecoderFramework/ADSBRegEx.swift b/ADSBDecoderFramework/ADSBRegEx.swift index 2841467..4e554c0 100644 --- a/ADSBDecoderFramework/ADSBRegEx.swift +++ b/ADSBDecoderFramework/ADSBRegEx.swift @@ -21,7 +21,9 @@ let matchADSBLong = Regex { ";" }*/ -class MatchADSBLong { +public class MatchADSBLong { + public init() {} + let matchADSBLong = Regex { Anchor.startOfLine "*" @@ -36,7 +38,7 @@ class MatchADSBLong { ";" } - func prefixMatch(_ line: String) -> Regex.RegexOutput>.Match? { + public func prefixMatch(_ line: String) -> Regex.RegexOutput>.Match? { do { if let match = try matchADSBLong.prefixMatch(in: line) { return match @@ -61,7 +63,9 @@ let matchADSBShort = Regex { ";" }*/ -class MatchADSBShort { +public class MatchADSBShort { + public init() {} + let matchADSBShort = Regex { Anchor.startOfLine "*" @@ -74,7 +78,7 @@ class MatchADSBShort { ";" } - func prefixMatch(_ line: String) -> Regex.RegexOutput>.Match? { + public func prefixMatch(_ line: String) -> Regex.RegexOutput>.Match? { do { if let match = try matchADSBShort.prefixMatch(in: line) { return match -- cgit v1.2.3