Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Commit

Permalink
Some debug statements to investigate the CI failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMage committed May 2, 2019
1 parent 667862a commit e0f589a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/TemplateKit/Utilities/HTMLEscape.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,14 @@ extension String {
return self
}

print("self", self.count, expectedLength, self)
func writeEscapedString(_ resultBytes: UnsafeMutableRawPointer) -> Void {
var raw = resultBytes
let end = raw + expectedLength
print("start, end", raw, end)
for character in self.utf8 {
var escaped = String.htmlEscapeMapASCIIByteArray[Int(character)]
print("raw", raw - resultBytes, raw, escaped.count, raw + escaped.count)
assert(raw + escaped.count < end)
raw.copyMemory(from: &escaped, byteCount: escaped.count)
raw += escaped.count
Expand Down

0 comments on commit e0f589a

Please sign in to comment.