diff options
| author | Arturs Artamonovs <arturs.artamonovs@protonmail.com> | 2026-09-26 21:53:06 +0100 |
|---|---|---|
| committer | Arturs Artamonovs <arturs.artamonovs@protonmail.com> | 2026-09-26 21:53:06 +0100 |
| commit | 40038b02ce651958ae703c8ecfe5f5578e1f7f09 (patch) | |
| tree | f6bc782c1b1d1a21073e5d40e4136d887f6fa4cd /ADSBDecoderFramework/ADSBRegEx.swift | |
| parent | 505b23afc68ecbb63b8f0a7d44c0b0ad063d5cfd (diff) | |
| download | ADSBDecoder-40038b02ce651958ae703c8ecfe5f5578e1f7f09.tar.gz ADSBDecoder-40038b02ce651958ae703c8ecfe5f5578e1f7f09.zip | |
create adsbdecoder as UI, and renmae adsbdecoder to adsbdecodercli for terminal version
Diffstat (limited to 'ADSBDecoderFramework/ADSBRegEx.swift')
| -rw-r--r-- | ADSBDecoderFramework/ADSBRegEx.swift | 12 |
1 files changed, 8 insertions, 4 deletions
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<Regex<Substring>.RegexOutput>.Match? { + public func prefixMatch(_ line: String) -> Regex<Regex<Substring>.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<Regex<Substring>.RegexOutput>.Match? { + public func prefixMatch(_ line: String) -> Regex<Regex<Substring>.RegexOutput>.Match? { do { if let match = try matchADSBShort.prefixMatch(in: line) { return match |
