def parseFunctionsByVersion(src):
    ptrnVer10 = 'VK_VERSION_1_0 1'
    ptrnVer11 = 'VK_VERSION_1_1 1'
    matchVer10 = re.search(ptrnVer10, src)
    matchVer11 = re.search(ptrnVer11, src)
    ptrn = (((('VKAPI_ATTR\\s+(' + TYPE_PTRN) + ')\\s+VKAPI_CALL\\s+(') + IDENT_PTRN) + ')\\s*\\(([^)]*)\\)\\s*;')
    regPtrn = re.compile(ptrn)
    matches = regPtrn.findall(src, matchVer10.start(), matchVer11.start())
    functions = []
    for (returnType, name, argList) in matches:
        functions.append(Function(name.strip(), returnType.strip(), parseArgList(argList), 'VK_VERSION_1_0'))
    matches = regPtrn.findall(src, matchVer11.start())
    for (returnType, name, argList) in matches:
        functions.append(Function(name.strip(), returnType.strip(), parseArgList(argList), 'VK_VERSION_1_1'))
    return functions
def parseFunctionsByVersion(src):
    ptrnVer10 = 'VK_VERSION_1_0 1'
    ptrnVer11 = 'VK_VERSION_1_1 1'
    matchVer10 = re.search(ptrnVer10, src)
    matchVer11 = re.search(ptrnVer11, src)
    ptrn = (((('VKAPI_ATTR\\s+(' + TYPE_PTRN) + ')\\s+VKAPI_CALL\\s+(') + IDENT_PTRN) + ')\\s*\\(([^)]*)\\)\\s*;')
    regPtrn = re.compile(ptrn)
    matches = regPtrn.findall(src, matchVer10.start(), matchVer11.start())
    functions = []
    for (returnType, name, argList) in matches:
        functions.append(Function(name.strip(), returnType.strip(), parseArgList(argList), 'VK_VERSION_1_0'))
    matches = regPtrn.findall(src, matchVer11.start())
    for (returnType, name, argList) in matches:
        functions.append(Function(name.strip(), returnType.strip(), parseArgList(argList), 'VK_VERSION_1_1'))
    return functions