 //
 
 import Foundation
-
-//var s = CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault,
-//    str.bridgeToObjectiveC(), nil,
-//    "!*'();:@&=+$,/?%#[]",
-//    CFStringBuiltInEncodings.UTF8.toRaw())
 
 enum URITemplateError {
     case MalformedPctEncodedInLiteral

    }

    enum BehaviorAllow {
        case U
        case R
        case UR
    }

    struct Behavior {

                                        break;
                                    } else if modifier == ":" {
                                        if find(DIGIT, j) {
                                            prefixLength = prefixLength * 10 + Int(String(j).bridgeToObjectiveC().intValue)
                                            if prefixLength >= 1000 {
                                                eError = .MalformedVarSpec
                                                break;
