Function equalShortClassName

Check whether first name of class is equal to a string

bool equalShortClassName (
  TypeInfo_Class type,
  string shortName
);

Example

TypeInfo_Class t = typeid(Exception);
assert(equalShortClassName(t, "Exception"));
assert(!equalShortClassName(t, "Exceptio"));
assert(!equalShortClassName(t, "xception"));
assert(!equalShortClassName(t, ".Exception"));