aboutsummaryrefslogtreecommitdiff
path: root/Sources/WmapParser/Utils.swift
diff options
context:
space:
mode:
authorRuben Beltran del Rio <jj@r.bdr.sh>2025-12-15 11:30:47 +0100
committerRuben Beltran del Rio <jj@r.bdr.sh>2025-12-15 11:51:49 +0100
commitfabd59b7d1540900bd64590646c73c917706ecd8 (patch)
tree6e4e6e56aea797917f0613ed135f4fd1c834a674 /Sources/WmapParser/Utils.swift
parent969b6a6653699b9f8662feb7f42511740f96f84a (diff)
Increase coverage of testsHEADmain
Diffstat (limited to 'Sources/WmapParser/Utils.swift')
-rw-r--r--Sources/WmapParser/Utils.swift3
1 files changed, 2 insertions, 1 deletions
diff --git a/Sources/WmapParser/Utils.swift b/Sources/WmapParser/Utils.swift
index 4886eb3..e88b072 100644
--- a/Sources/WmapParser/Utils.swift
+++ b/Sources/WmapParser/Utils.swift
@@ -96,7 +96,8 @@ extension WmapParser {
return index
}
- /// Given the bytes buffer, finds the next non-empty line.
+ /// Given the bytes buffer, finds the next non-empty line without leading.
+ /// or trailing whitespace.
@inline(__always)
static func extractLine<T: Collection>(_ bytes: T, _ index: inout Int, _ length: Int) -> (
Int, Int