bool AMDTOpenCLHelper::isExtensionSupported(
    char* extensionName,
    const char* extensionsString)
{
    bool retVal = false;

    // Search for extensionName in the extensions string.
    // (The use of strstr() is not sufficient because extension names can be prefixes of
    // other extension names).
    char* pCurrentPos = (char*)extensionsString;
    char* pEndPos;
    int extensionNameLen = strlen(extensionName);