syck_type_id_to_uri
499914
public static String typeIdToUri(String type_id) {
//        System.err.println("typeIdToUri(" + type_id + ")");
        byte[] data = null;
        try {
          data = type_id.getBytes("ISO8859-1");
        } catch(Exception e) {}
        byte[] dx = new byte[data.length+1];
        System.arraycopy(data, 0, dx, 0, data.length);
        dx[data.length] = 0;
        data = dx;
        int cursor = 0;
        int limit = data.length;
        int marker = -1;

        int gotoPoint = -1;
        byte yych = (byte) 0;
        gotoNext: while(gotoPoint != -2) {
            int currentGoto = gotoPoint; gotoPoint = -2;
            switch(currentGoto) {
            case -1: 

                yych = data[cursor];
                switch (yych) {
                case 0x00:    {gotoPoint = 2; continue gotoNext;}
                case '!':    {gotoPoint = 6; continue gotoNext;}
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':
                case 'A':
                case 'B':
                case 'C':
                case 'D':
                case 'E':
                case 'F':
                case 'G':
                case 'H':
                case 'I':
                case 'J':
                case 'K':
                case 'L':
                case 'M':
                case 'N':
                case 'O':
                case 'P':
                case 'Q':
                case 'R':
                case 'S':
                case 'T':
                case 'U':
                case 'V':
                case 'W':
                case 'X':
                case 'Y':
                case 'Z':
                case '_':
                case 'a':
                case 'b':
                case 'c':
                case 'd':
                case 'e':
                case 'f':
                case 'g':
                case 'h':
                case 'i':
                case 'j':
                case 'k':
                case 'l':
                case 'm':
                case 'n':
                case 'o':
                case 'p':
                case 'q':
                case 'r':
                case 's':
                case 'u':
                case 'v':
                case 'w':
                case 'y':
                case 'z':    {gotoPoint = 8; continue gotoNext;}
                case 't':    {gotoPoint = 3; continue gotoNext;}
                case 'x':    {gotoPoint = 5; continue gotoNext;}
                default:    {gotoPoint = 9; continue gotoNext;}
                }
            case 2:
                cursor = marker;
                {gotoPoint = 4; continue gotoNext;}
            case 3:
                yych = data[(marker = ++cursor)];
                switch (yych) {
                case ',':    {gotoPoint = 14; continue gotoNext;}
                case '-':    {gotoPoint = 10; continue gotoNext;}
                case '.':    {gotoPoint = 15; continue gotoNext;}
                case '/':    {gotoPoint = 16; continue gotoNext;}
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':
                case 'A':
                case 'B':
                case 'C':
                case 'D':
                case 'E':
                case 'F':
                case 'G':
                case 'H':
                case 'I':
                case 'J':
                case 'K':
                case 'L':
                case 'M':
                case 'N':
                case 'O':
                case 'P':
                case 'Q':
                case 'R':
                case 'S':
                case 'T':
                case 'U':
                case 'V':
                case 'W':
                case 'X':
                case 'Y':
                case 'Z':
                case '_':
                case 'b':
                case 'c':
                case 'd':
                case 'e':
                case 'f':
                case 'g':
                case 'h':
                case 'i':
                case 'j':
                case 'k':
                case 'l':
                case 'm':
                case 'n':
                case 'o':
                case 'p':
                case 'q':
                case 'r':
                case 's':
                case 't':
                case 'u':
                case 'v':
                case 'w':
                case 'x':
                case 'y':
                case 'z':    {gotoPoint = 12; continue gotoNext;}
                case 'a':    {gotoPoint = 44; continue gotoNext;}
                default:    {gotoPoint = 4; continue gotoNext;}
                }
            case 4:
                {   return Parser.taguri(YAML.DOMAIN, type_id); }
            case 5:
                yych = data[(marker = ++cursor)];
                switch (yych) {
                case ',':
                case '.':
                case '/':
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':
                case 'A':
                case 'B':
                case 'C':
                case 'D':
                case 'E':
                case 'F':
                case 'G':
                case 'H':
                case 'I':
                case 'J':
                case 'K':
                case 'L':
                case 'M':
                case 'N':
                case 'O':
                case 'P':
                case 'Q':
                case 'R':
                case 'S':
                case 'T':
                case 'U':
                case 'V':
                case 'W':
                case 'X':
                case 'Y':
                case 'Z':
                case '_':
                case 'a':
                case 'b':
                case 'c':
                case 'd':
                case 'e':
                case 'f':
                case 'g':
                case 'h':
                case 'i':
                case 'j':
                case 'k':
                case 'l':
                case 'm':
                case 'n':
                case 'o':
                case 'p':
                case 'q':
                case 'r':
                case 's':
                case 't':
                case 'u':
                case 'v':
                case 'w':
                case 'x':
                case 'y':
                case 'z':    {gotoPoint = 13; continue gotoNext;}
                case '-':    {gotoPoint = 34; continue gotoNext;}
                default:    {gotoPoint = 4; continue gotoNext;}
                }
            case 6:
                ++cursor;
                {   return Parser.xprivate(type_id.substring(1)); }
            case 8:
                yych = data[(marker = ++cursor)];
                switch (yych) {
                case ',':    {gotoPoint = 14; continue gotoNext;}
                case '-':    {gotoPoint = 10; continue gotoNext;}
                case '.':    {gotoPoint = 15; continue gotoNext;}
                case '/':    {gotoPoint = 16; continue gotoNext;}
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':
                case 'A':
                case 'B':
                case 'C':
                case 'D':
                case 'E':
                case 'F':
                case 'G':
                case 'H':
                case 'I':
                case 'J':
                case 'K':
                case 'L':
                case 'M':
                case 'N':
                case 'O':
                case 'P':
                case 'Q':
                case 'R':
                case 'S':
                case 'T':
                case 'U':
                case 'V':
                case 'W':
                case 'X':
                case 'Y':
                case 'Z':
                case '_':
                case 'a':
                case 'b':
                case 'c':
                case 'd':
                case 'e':
                case 'f':
                case 'g':
                case 'h':
                case 'i':
                case 'j':
                case 'k':
                case 'l':
                case 'm':
                case 'n':
                case 'o':
                case 'p':
                case 'q':
                case 'r':
                case 's':
                case 't':
                case 'u':
                case 'v':
                case 'w':
                case 'x':
                case 'y':
                case 'z':    {gotoPoint = 12; continue gotoNext;}
                default:    {gotoPoint = 4; continue gotoNext;}
                }
            case 9:
                yych = data[++cursor];
                {gotoPoint = 4; continue gotoNext;}
            case 10:
                ++cursor;
                yych = data[cursor];
            case 11:
                switch (yych) {
                case '-':    {gotoPoint = 10; continue gotoNext;}
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':
                case 'A':
                case 'B':
                case 'C':
                case 'D':
                case 'E':
                case 'F':
                case 'G':
                case 'H':
                case 'I':
                case 'J':
                case 'K':
                case 'L':
                case 'M':
                case 'N':
                case 'O':
                case 'P':
                case 'Q':
                case 'R':
                case 'S':
                case 'T':
                case 'U':
                case 'V':
                case 'W':
                case 'X':
                case 'Y':
                case 'Z':
                case '_':
                case 'a':
                case 'b':
                case 'c':
                case 'd':
                case 'e':
                case 'f':
                case 'g':
                case 'h':
                case 'i':
                case 'j':
                case 'k':
                case 'l':
                case 'm':
                case 'n':
                case 'o':
                case 'p':
                case 'q':
                case 'r':
                case 's':
                case 't':
                case 'u':
                case 'v':
                case 'w':
                case 'x':
                case 'y':
                case 'z':    {gotoPoint = 12; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 12:
                ++cursor;
                yych = data[cursor];
            case 13:
                switch (yych) {
                case ',':    {gotoPoint = 14; continue gotoNext;}
                case '-':    {gotoPoint = 10; continue gotoNext;}
                case '.':    {gotoPoint = 15; continue gotoNext;}
                case '/':    {gotoPoint = 16; continue gotoNext;}
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':
                case 'A':
                case 'B':
                case 'C':
                case 'D':
                case 'E':
                case 'F':
                case 'G':
                case 'H':
                case 'I':
                case 'J':
                case 'K':
                case 'L':
                case 'M':
                case 'N':
                case 'O':
                case 'P':
                case 'Q':
                case 'R':
                case 'S':
                case 'T':
                case 'U':
                case 'V':
                case 'W':
                case 'X':
                case 'Y':
                case 'Z':
                case '_':
                case 'a':
                case 'b':
                case 'c':
                case 'd':
                case 'e':
                case 'f':
                case 'g':
                case 'h':
                case 'i':
                case 'j':
                case 'k':
                case 'l':
                case 'm':
                case 'n':
                case 'o':
                case 'p':
                case 'q':
                case 'r':
                case 's':
                case 't':
                case 'u':
                case 'v':
                case 'w':
                case 'x':
                case 'y':
                case 'z':    {gotoPoint = 12; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 14:
                yych = data[++cursor];
                switch (yych) {
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':    {gotoPoint = 22; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 15:
                ++cursor;
                yych = data[cursor];
                switch (yych) {
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':
                case 'A':
                case 'B':
                case 'C':
                case 'D':
                case 'E':
                case 'F':
                case 'G':
                case 'H':
                case 'I':
                case 'J':
                case 'K':
                case 'L':
                case 'M':
                case 'N':
                case 'O':
                case 'P':
                case 'Q':
                case 'R':
                case 'S':
                case 'T':
                case 'U':
                case 'V':
                case 'W':
                case 'X':
                case 'Y':
                case 'Z':
                case '_':
                case 'a':
                case 'b':
                case 'c':
                case 'd':
                case 'e':
                case 'f':
                case 'g':
                case 'h':
                case 'i':
                case 'j':
                case 'k':
                case 'l':
                case 'm':
                case 'n':
                case 'o':
                case 'p':
                case 'q':
                case 'r':
                case 's':
                case 't':
                case 'u':
                case 'v':
                case 'w':
                case 'x':
                case 'y':
                case 'z':    {gotoPoint = 18; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 16:
                ++cursor;
                {   
                    return Parser.taguri(type_id.substring(0, cursor -1) + "." + YAML.DOMAIN, type_id.substring(cursor));
                }
            case 18:
                ++cursor;
                yych = data[cursor];
                switch (yych) {
                case ',':    {gotoPoint = 14; continue gotoNext;}
                case '-':    {gotoPoint = 20; continue gotoNext;}
                case '.':    {gotoPoint = 15; continue gotoNext;}
                case '/':    {gotoPoint = 16; continue gotoNext;}
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':
                case 'A':
                case 'B':
                case 'C':
                case 'D':
                case 'E':
                case 'F':
                case 'G':
                case 'H':
                case 'I':
                case 'J':
                case 'K':
                case 'L':
                case 'M':
                case 'N':
                case 'O':
                case 'P':
                case 'Q':
                case 'R':
                case 'S':
                case 'T':
                case 'U':
                case 'V':
                case 'W':
                case 'X':
                case 'Y':
                case 'Z':
                case '_':
                case 'a':
                case 'b':
                case 'c':
                case 'd':
                case 'e':
                case 'f':
                case 'g':
                case 'h':
                case 'i':
                case 'j':
                case 'k':
                case 'l':
                case 'm':
                case 'n':
                case 'o':
                case 'p':
                case 'q':
                case 'r':
                case 's':
                case 't':
                case 'u':
                case 'v':
                case 'w':
                case 'x':
                case 'y':
                case 'z':    {gotoPoint = 18; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 20:
                ++cursor;
                yych = data[cursor];
                switch (yych) {
                case '-':    {gotoPoint = 20; continue gotoNext;}
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':
                case 'A':
                case 'B':
                case 'C':
                case 'D':
                case 'E':
                case 'F':
                case 'G':
                case 'H':
                case 'I':
                case 'J':
                case 'K':
                case 'L':
                case 'M':
                case 'N':
                case 'O':
                case 'P':
                case 'Q':
                case 'R':
                case 'S':
                case 'T':
                case 'U':
                case 'V':
                case 'W':
                case 'X':
                case 'Y':
                case 'Z':
                case '_':
                case 'a':
                case 'b':
                case 'c':
                case 'd':
                case 'e':
                case 'f':
                case 'g':
                case 'h':
                case 'i':
                case 'j':
                case 'k':
                case 'l':
                case 'm':
                case 'n':
                case 'o':
                case 'p':
                case 'q':
                case 'r':
                case 's':
                case 't':
                case 'u':
                case 'v':
                case 'w':
                case 'x':
                case 'y':
                case 'z':    {gotoPoint = 18; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 22:
                yych = data[++cursor];
                switch (yych) {
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':    {gotoPoint = 23; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 23:
                yych = data[++cursor];
                switch (yych) {
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':    {gotoPoint = 24; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 24:
                yych = data[++cursor];
                switch (yych) {
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':    {gotoPoint = 25; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 25:
                yych = data[++cursor];
                switch (yych) {
                case '-':    {gotoPoint = 26; continue gotoNext;}
                case '/':    {gotoPoint = 27; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 26:
                yych = data[++cursor];
                switch (yych) {
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':    {gotoPoint = 29; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 27:
                ++cursor;
                {   
                               return Parser.taguri(type_id.substring(0, cursor-1), type_id.substring(cursor));
                            }
            case 29:
                yych = data[++cursor];
                switch (yych) {
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':    {gotoPoint = 30; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 30:
                yych = data[++cursor];
                switch (yych) {
                case '-':    {gotoPoint = 31; continue gotoNext;}
                case '/':    {gotoPoint = 27; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 31:
                yych = data[++cursor];
                switch (yych) {
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':    {gotoPoint = 32; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 32:
                yych = data[++cursor];
                switch (yych) {
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':    {gotoPoint = 33; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 33:
                yych = data[++cursor];
                switch (yych) {
                case '/':    {gotoPoint = 27; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 34:
                yych = data[++cursor];
                switch (yych) {
                case 'p':    {gotoPoint = 35; continue gotoNext;}
                default:    {gotoPoint = 11; continue gotoNext;}
                }
            case 35:
                yych = data[++cursor];
                switch (yych) {
                case ',':    {gotoPoint = 14; continue gotoNext;}
                case '.':    {gotoPoint = 15; continue gotoNext;}
                case '/':    {gotoPoint = 16; continue gotoNext;}
                case 'r':    {gotoPoint = 36; continue gotoNext;}
                default:    {gotoPoint = 11; continue gotoNext;}
                }
            case 36:
                yych = data[++cursor];
                switch (yych) {
                case ',':    {gotoPoint = 14; continue gotoNext;}
                case '.':    {gotoPoint = 15; continue gotoNext;}
                case '/':    {gotoPoint = 16; continue gotoNext;}
                case 'i':    {gotoPoint = 37; continue gotoNext;}
                default:    {gotoPoint = 11; continue gotoNext;}
                }
            case 37:
                yych = data[++cursor];
                switch (yych) {
                case ',':    {gotoPoint = 14; continue gotoNext;}
                case '.':    {gotoPoint = 15; continue gotoNext;}
                case '/':    {gotoPoint = 16; continue gotoNext;}
                case 'v':    {gotoPoint = 38; continue gotoNext;}
                default:    {gotoPoint = 11; continue gotoNext;}
                }
            case 38:
                yych = data[++cursor];
                switch (yych) {
                case ',':    {gotoPoint = 14; continue gotoNext;}
                case '.':    {gotoPoint = 15; continue gotoNext;}
                case '/':    {gotoPoint = 16; continue gotoNext;}
                case 'a':    {gotoPoint = 39; continue gotoNext;}
                default:    {gotoPoint = 11; continue gotoNext;}
                }
            case 39:
                yych = data[++cursor];
                switch (yych) {
                case ',':    {gotoPoint = 14; continue gotoNext;}
                case '.':    {gotoPoint = 15; continue gotoNext;}
                case '/':    {gotoPoint = 16; continue gotoNext;}
                case 't':    {gotoPoint = 40; continue gotoNext;}
                default:    {gotoPoint = 11; continue gotoNext;}
                }
            case 40:
                yych = data[++cursor];
                switch (yych) {
                case ',':    {gotoPoint = 14; continue gotoNext;}
                case '.':    {gotoPoint = 15; continue gotoNext;}
                case '/':    {gotoPoint = 16; continue gotoNext;}
                case 'e':    {gotoPoint = 41; continue gotoNext;}
                default:    {gotoPoint = 11; continue gotoNext;}
                }
            case 41:
                yych = data[++cursor];
                switch (yych) {
                case ',':    {gotoPoint = 14; continue gotoNext;}
                case '.':    {gotoPoint = 15; continue gotoNext;}
                case '/':    {gotoPoint = 16; continue gotoNext;}
                case ':':    {gotoPoint = 42; continue gotoNext;}
                default:    {gotoPoint = 11; continue gotoNext;}
                }
            case 42:
                ++cursor;
                {   return type_id; }
            case 44:
                yych = data[++cursor];
                switch (yych) {
                case ',':    {gotoPoint = 14; continue gotoNext;}
                case '.':    {gotoPoint = 15; continue gotoNext;}
                case '/':    {gotoPoint = 16; continue gotoNext;}
                case 'g':    {gotoPoint = 45; continue gotoNext;}
                default:    {gotoPoint = 11; continue gotoNext;}
                }
            case 45:
                yych = data[++cursor];
                switch (yych) {
                case ',':    {gotoPoint = 14; continue gotoNext;}
                case '.':    {gotoPoint = 15; continue gotoNext;}
                case '/':    {gotoPoint = 16; continue gotoNext;}
                case ':':    {gotoPoint = 46; continue gotoNext;}
                default:    {gotoPoint = 11; continue gotoNext;}
                }
            case 46:
                yych = data[++cursor];
                switch (yych) {
                case ',':
                case '-':
                case '.':    {gotoPoint = 2; continue gotoNext;}
                default:    {gotoPoint = 48; continue gotoNext;}
                }
            case 47:
                ++cursor;
                yych = data[cursor];
            case 48:
                switch (yych) {
                case ',':    {gotoPoint = 51; continue gotoNext;}
                case '-':    {gotoPoint = 49; continue gotoNext;}
                case '.':    {gotoPoint = 52; continue gotoNext;}
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':
                case 'A':
                case 'B':
                case 'C':
                case 'D':
                case 'E':
                case 'F':
                case 'G':
                case 'H':
                case 'I':
                case 'J':
                case 'K':
                case 'L':
                case 'M':
                case 'N':
                case 'O':
                case 'P':
                case 'Q':
                case 'R':
                case 'S':
                case 'T':
                case 'U':
                case 'V':
                case 'W':
                case 'X':
                case 'Y':
                case 'Z':
                case '_':
                case 'a':
                case 'b':
                case 'c':
                case 'd':
                case 'e':
                case 'f':
                case 'g':
                case 'h':
                case 'i':
                case 'j':
                case 'k':
                case 'l':
                case 'm':
                case 'n':
                case 'o':
                case 'p':
                case 'q':
                case 'r':
                case 's':
                case 't':
                case 'u':
                case 'v':
                case 'w':
                case 'x':
                case 'y':
                case 'z':    {gotoPoint = 47; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 49:
                ++cursor;
                yych = data[cursor];
                switch (yych) {
                case '-':    {gotoPoint = 49; continue gotoNext;}
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':
                case 'A':
                case 'B':
                case 'C':
                case 'D':
                case 'E':
                case 'F':
                case 'G':
                case 'H':
                case 'I':
                case 'J':
                case 'K':
                case 'L':
                case 'M':
                case 'N':
                case 'O':
                case 'P':
                case 'Q':
                case 'R':
                case 'S':
                case 'T':
                case 'U':
                case 'V':
                case 'W':
                case 'X':
                case 'Y':
                case 'Z':
                case '_':
                case 'a':
                case 'b':
                case 'c':
                case 'd':
                case 'e':
                case 'f':
                case 'g':
                case 'h':
                case 'i':
                case 'j':
                case 'k':
                case 'l':
                case 'm':
                case 'n':
                case 'o':
                case 'p':
                case 'q':
                case 'r':
                case 's':
                case 't':
                case 'u':
                case 'v':
                case 'w':
                case 'x':
                case 'y':
                case 'z':    {gotoPoint = 47; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 51:
                yych = data[++cursor];
                switch (yych) {
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':    {gotoPoint = 57; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 52:
                ++cursor;
                yych = data[cursor];
                switch (yych) {
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':
                case 'A':
                case 'B':
                case 'C':
                case 'D':
                case 'E':
                case 'F':
                case 'G':
                case 'H':
                case 'I':
                case 'J':
                case 'K':
                case 'L':
                case 'M':
                case 'N':
                case 'O':
                case 'P':
                case 'Q':
                case 'R':
                case 'S':
                case 'T':
                case 'U':
                case 'V':
                case 'W':
                case 'X':
                case 'Y':
                case 'Z':
                case '_':
                case 'a':
                case 'b':
                case 'c':
                case 'd':
                case 'e':
                case 'f':
                case 'g':
                case 'h':
                case 'i':
                case 'j':
                case 'k':
                case 'l':
                case 'm':
                case 'n':
                case 'o':
                case 'p':
                case 'q':
                case 'r':
                case 's':
                case 't':
                case 'u':
                case 'v':
                case 'w':
                case 'x':
                case 'y':
                case 'z':    {gotoPoint = 53; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 53:
                ++cursor;
                yych = data[cursor];
                switch (yych) {
                case ',':    {gotoPoint = 51; continue gotoNext;}
                case '-':    {gotoPoint = 55; continue gotoNext;}
                case '.':    {gotoPoint = 52; continue gotoNext;}
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':
                case 'A':
                case 'B':
                case 'C':
                case 'D':
                case 'E':
                case 'F':
                case 'G':
                case 'H':
                case 'I':
                case 'J':
                case 'K':
                case 'L':
                case 'M':
                case 'N':
                case 'O':
                case 'P':
                case 'Q':
                case 'R':
                case 'S':
                case 'T':
                case 'U':
                case 'V':
                case 'W':
                case 'X':
                case 'Y':
                case 'Z':
                case '_':
                case 'a':
                case 'b':
                case 'c':
                case 'd':
                case 'e':
                case 'f':
                case 'g':
                case 'h':
                case 'i':
                case 'j':
                case 'k':
                case 'l':
                case 'm':
                case 'n':
                case 'o':
                case 'p':
                case 'q':
                case 'r':
                case 's':
                case 't':
                case 'u':
                case 'v':
                case 'w':
                case 'x':
                case 'y':
                case 'z':    {gotoPoint = 53; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 55:
                ++cursor;
                yych = data[cursor];
                switch (yych) {
                case '-':    {gotoPoint = 55; continue gotoNext;}
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':
                case 'A':
                case 'B':
                case 'C':
                case 'D':
                case 'E':
                case 'F':
                case 'G':
                case 'H':
                case 'I':
                case 'J':
                case 'K':
                case 'L':
                case 'M':
                case 'N':
                case 'O':
                case 'P':
                case 'Q':
                case 'R':
                case 'S':
                case 'T':
                case 'U':
                case 'V':
                case 'W':
                case 'X':
                case 'Y':
                case 'Z':
                case '_':
                case 'a':
                case 'b':
                case 'c':
                case 'd':
                case 'e':
                case 'f':
                case 'g':
                case 'h':
                case 'i':
                case 'j':
                case 'k':
                case 'l':
                case 'm':
                case 'n':
                case 'o':
                case 'p':
                case 'q':
                case 'r':
                case 's':
                case 't':
                case 'u':
                case 'v':
                case 'w':
                case 'x':
                case 'y':
                case 'z':    {gotoPoint = 53; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 57:
                yych = data[++cursor];
                switch (yych) {
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':    {gotoPoint = 58; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 58:
                yych = data[++cursor];
                switch (yych) {
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':    {gotoPoint = 59; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 59:
                yych = data[++cursor];
                switch (yych) {
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':    {gotoPoint = 60; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 60:
                yych = data[++cursor];
                switch (yych) {
                case '-':    {gotoPoint = 61; continue gotoNext;}
                case ':':    {gotoPoint = 62; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 61:
                yych = data[++cursor];
                switch (yych) {
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':    {gotoPoint = 64; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 62:
                ++cursor;
                {   return type_id; }
            case 64:
                yych = data[++cursor];
                switch (yych) {
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':    {gotoPoint = 65; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 65:
                yych = data[++cursor];
                switch (yych) {
                case '-':    {gotoPoint = 66; continue gotoNext;}
                case ':':    {gotoPoint = 62; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 66:
                yych = data[++cursor];
                switch (yych) {
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':    {gotoPoint = 67; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 67:
                yych = data[++cursor];
                switch (yych) {
                case '0':
                case '1':
                case '2':
                case '3':
                case '4':
                case '5':
                case '6':
                case '7':
                case '8':
                case '9':    {gotoPoint = 68; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            case 68:
                ++cursor;
                switch ((yych = data[cursor])) {
                case ':':    {gotoPoint = 62; continue gotoNext;}
                default:    {gotoPoint = 2; continue gotoNext;}
                }
            }
        }

        return null;
    }
151829
def make_es_id(uri):
    
    try:
        uri = uri.clean_uri
    except AttributeError:
        pass
    return sha1(uri.encode()).hexdigest()
621451
def orcid_uri_to_orcid(value):
    ""
    if value is None:
        return value
    replace_values = ['http://orcid.org/', 'https://orcid.org/']
    for replace_value in replace_values:
        value = value.replace(replace_value, '')
    return value
326571
function parse_uri(uri = document.location)
{
	const options =
	{
		strictMode: false,
		key:
		[
			"source",   // protocol:
			"protocol",
			"authority", // //user:password@
			"userInfo", // user:password
			"user",
			"password",
			"host",
			"port",
			"relative", 
			"path",
			"directory",
			"file",
			"query",
			"anchor"
		],
		query:
		{
			name:   "parameters",
			parser: /(?:^|&)([^&=]*)=?([^&]*)/g
		},
		parser:
		{
			//            protocol  :     //      user        :password    @  host          :port      path (relative,directory,file) ? query       #anchor
			strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,
			loose:  /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/
		}
	}
		
	var matches = options.parser[options.strictMode ? "strict" : "loose"].exec(uri)
	
	const result = {}

	let i = 14
	while (i--)
	{
		result[options.key[i]] = matches[i] || ""
	}

	result[options.query.name] = {}

	// options.key[12] === "query"
	result[options.key[12]].replace(options.query.parser, function ($0, $1, $2)
	{
		if ($1)
		{
			result[options.query.name][$1] = $2
		}
	})

	return result
}
36323
def uri(self):
        """"""
        CheckParent(self)

        val = _fitz.Link_uri(self)

        if not val:
            val = ""
        else:
            nval = "".join([c for c in val if 32 <= ord(c) <= 127])
            val = nval


        return val
273737
def build_uri(orig_uriparts, kwargs):
    
    uriparts = []
    for uripart in orig_uriparts:
        # If this part matches a keyword argument (starting with _), use
        # the supplied value. Otherwise, just use the part.
        if uripart.startswith("_"):
            part = (str(kwargs.pop(uripart, uripart)))
        else:
            part = uripart
        uriparts.append(part)
    uri = '/'.join(uriparts)

    # If an id kwarg is present and there is no id to fill in in
    # the list of uriparts, assume the id goes at the end.
    id = kwargs.pop('id', None)
    if id:
        uri += "/%s" % (id)

    return uri
101115
def uri(addr = nil, absolute = true, add_script_name = true)
      return addr if addr =~ /\A[A-z][A-z0-9\+\.\-]*:/
      uri = [host = ""]
      if absolute
        host << "http#{'s' if request.secure?}://"
        if request.forwarded? or request.port != (request.secure? ? 443 : 80)
          host << request.host_with_port
        else
          host << request.host
        end
      end
      uri << request.script_name.to_s if add_script_name
      uri << (addr ? addr : request.path_info).to_s
      File.join uri
    end
386627
def iri2uri(uri):
	""""""

	assert uri != None, 'iri2uri must be passed a non-none string!'

	original = uri
	if isinstance(uri ,str):
		(scheme, authority, path, query, fragment) = urllib.parse.urlsplit(uri)
		authority = authority.encode('idna').decode('utf-8')
		# For each character in 'ucschar' or 'iprivate'
		#  1. encode as utf-8
		#  2. then %-encode each octet of that utf-8
		# path = urllib.parse.quote(path)
		uri = urllib.parse.urlunsplit((scheme, authority, path, query, fragment))
		uri = "".join([encode(c) for c in uri])

	# urllib.parse.urlunsplit(urllib.parse.urlsplit({something})
	# strips any trailing "?" chars. While this may be legal according to the
	# spec, it breaks some services. Therefore, we patch
	# the "?" back in if it has been removed.
	if original.endswith("?") and not uri.endswith("?"):
		uri = uri+"?"
	return uri
400445
private static URI toFileSystemUri(URI uri) {
    try {
      return new URI(
          uri.getScheme(), uri.getUserInfo(), uri.getHost(), uri.getPort(), null, null, null);
    } catch (URISyntaxException e) {
      throw new AssertionError(e);
    }
  }
873510
def uri(self):
        """"""
        if self._uds_path:
            uri = 'mongodb://%s' % (quote_plus(self._uds_path),)
        else:
            uri = 'mongodb://%s' % (format_addr(self._address),)
        return uri + '/?ssl=true' if self._ssl else uri
1135
def _encode_ndef_uri_type(self, data):
        
        t = 0x0
        for (code, prefix) in uri_identifiers:
            if data[:len(prefix)].decode('latin-1').lower() == prefix:
                t = code
                data = data[len(prefix):]
                break
        data = yubico_util.chr_byte(t) + data
        return data
209811
def get_pid(self, uri):
        
        # if the wikibase is wikidata, and we give a wikidata uri or a PID with no URI specified:
        if (self.sparql_endpoint_url == 'https://query.wikidata.org/sparql' and
                (uri.startswith("P") or uri.startswith("http://www.wikidata.org/entity/"))):
            # don't look up anything, just return the same value
            return uri
        if uri.startswith("P"):
            uri = "http://www.wikidata.org/entity/" + uri
        return self.URI_PID[uri]
878438
def filename(self, type_, id_):
        
        profile = self.connection.profile
        return os.path.join(self.directory, profile, type_, str(id_))
369627
def request_uri(self):
        """"""
        uri = self.path or '/'

        if self.query is not None:
            uri += '?' + self.query

        return uri
203076
def _append_params_to_uri(cls, uri, params):
        

        if params:
            return uri + cls._DELIMITER_URL_QUERY + urlencode(params)

        return uri
100532
def convert_catalog_id_to_object_id_string(catalog_id):
    

    if not isinstance(catalog_id, Id):
        raise TypeError('input needs to be an Id')
    seed_str = catalog_id.get_identifier() + catalog_id.get_authority() + '000000000000'
    try:
        seed_str = str.encode(seed_str[:12])
    except TypeError:
        # sometimes unicode is returned, in which case Python 2 can't handle it
        seed_str = seed_str[:12]
    seed_str = binascii.hexlify(seed_str)
    try:
        # python 3
        seed_str = str(seed_str, 'utf8')
    except TypeError:
        # python 2
        seed_str = str(seed_str)
    return seed_str
933652
def get_any_entity(self, id=None, uri=None, match=None):
        

        if not id and not uri and not match:
            return None

        if type(id) == type("string"):
            uri = id
            id = None
            if not is_http(uri):
                match = uri
                uri = None
        if match:
            if type(match) != type("string"):
                return []
            res = []
            if ":" in match:  # qname
                for x in self.all_classes:
                    if match.lower() in x.qname.lower():
                        res += [x]
                for x in self.all_properties:
                    if match.lower() in x.qname.lower():
                        res += [x]
            else:
                for x in self.all_classes:
                    if match.lower() in x.uri.lower():
                        res += [x]
                for x in self.all_properties:
                    if match.lower() in x.uri.lower():
                        res += [x]
            return res
        else:
            for x in self.all_classes:
                if id and x.id == id:
                    return x
                if uri and x.uri.lower() == uri.lower():
                    return x
            for x in self.all_properties:
                if id and x.id == id:
                    return x
                if uri and x.uri.lower() == uri.lower():
                    return x
            return None