correct equality checks in C++ scanner

Instead of checking whether an identifier starts with a literal,
we're checking for the exactly matching string.

Change-Id: I944e0e204b977e661f68debb3a47aad76da69363
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>