(charsetType=None)
return asciiTbl
Returns list with integers representing characters of a given
    charset type appropriate for inference techniques

    >>> getCharset(CHARSET_TYPE.BINARY)
    [0, 1, 47, 48, 49]
Returns list with integers representing characters of a given
    charset type appropriate for inference techniques
Returns list with integers representing characters of a given charset type appropriate for inference techniques
def getCharset(charsetType=None):
    """
    Returns list with integers representing characters of a given
    charset type appropriate for inference techniques

    >>> getCharset(CHARSET_TYPE.BINARY)
    [0, 1, 47, 48, 49]
    """

    asciiTbl = []

    if charsetType is None:
        asciiTbl.extend(xrange(0, 128))

    # 0 or 1
    elif charsetType == CHARSET_TYPE.BINARY:
        asciiTbl.extend([0, 1])
        asciiTbl.extend(xrange(47, 50))

    # Digits
    elif charsetType == CHARSET_TYPE.DIGITS:
        asciiTbl.extend([0, 1])
        asciiTbl.extend(xrange(47, 58))

    # Hexadecimal
    elif charsetType == CHARSET_TYPE.HEXADECIMAL:
        asciiTbl.extend([0, 1])
        asciiTbl.extend(xrange(47, 58))
        asciiTbl.extend(xrange(64, 71))
        asciiTbl.extend([87, 88])  # X
        asciiTbl.extend(xrange(96, 103))
        asciiTbl.extend([119, 120])  # x

    # Characters
    elif charsetType == CHARSET_TYPE.ALPHA:
        asciiTbl.extend([0, 1])
        asciiTbl.extend(xrange(64, 91))
        asciiTbl.extend(xrange(96, 123))

    # Characters and digits
    elif charsetType == CHARSET_TYPE.ALPHANUM:
        asciiTbl.extend([0, 1])
        asciiTbl.extend(xrange(47, 58))
        asciiTbl.extend(xrange(64, 91))
        asciiTbl.extend(xrange(96, 123))

    return asciiTbl
def getCharset ( charsetType = None ) : asciiTbl = [ ] if charsetType is None : asciiTbl . extend ( xrange ( 0 , 128 ) ) # 0 or 1 elif charsetType == CHARSET_TYPE . BINARY : asciiTbl . extend ( [ 0 , 1 ] ) asciiTbl . extend ( xrange ( 47 , 50 ) ) # Digits elif charsetType == CHARSET_TYPE . DIGITS : asciiTbl . extend ( [ 0 , 1 ] ) asciiTbl . extend ( xrange ( 47 , 58 ) ) # Hexadecimal elif charsetType == CHARSET_TYPE . HEXADECIMAL : asciiTbl . extend ( [ 0 , 1 ] ) asciiTbl . extend ( xrange ( 47 , 58 ) ) asciiTbl . extend ( xrange ( 64 , 71 ) ) asciiTbl . extend ( [ 87 , 88 ] ) # X asciiTbl . extend ( xrange ( 96 , 103 ) ) asciiTbl . extend ( [ 119 , 120 ] ) # x # Characters elif charsetType == CHARSET_TYPE . ALPHA : asciiTbl . extend ( [ 0 , 1 ] ) asciiTbl . extend ( xrange ( 64 , 91 ) ) asciiTbl . extend ( xrange ( 96 , 123 ) ) # Characters and digits elif charsetType == CHARSET_TYPE . ALPHANUM : asciiTbl . extend ( [ 0 , 1 ] ) asciiTbl . extend ( xrange ( 47 , 58 ) ) asciiTbl . extend ( xrange ( 64 , 91 ) ) asciiTbl . extend ( xrange ( 96 , 123 ) ) return asciiTbl