         }
     }
     
-    private class func parseEquals(c: UInt8) -> (c: UnicodeScalar?, state: QuotedPrintableState) {
+    private class func parseEquals(_ c: UInt8) -> (c: UnicodeScalar?, state: QuotedPrintableState) {
         switch c {
         case 13:
             return (c: nil, state: .Equals)

                    result.append("=\r\n")
                    charCount = 0
                }
                result.append(UnicodeScalar(61))
                result.append(c.hexString().uppercased())
                charCount+=3
            }
            

//

extension UInt8 {
    func hexString(padded: Bool = true) -> String {
        let dict:[Character] = [ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"]
        var result = ""

