Generalises stripEnumExtensions into stripExtensions.
Generalises stripEnumExtensions into stripExtensions.

This can later e reused for replacing the stripping of functionnames when
parsing.
phaazon/OpenGLRawgen,phaazon/OpenGLRawgen,Laar/OpenGLRawgen,Laar/OpenGLRawgen