sl@0: /* sl@0: * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: // under the terms of the License "ARM EABI LICENCE.txt" sl@0: // which accompanies this distribution, and is available sl@0: // in kernel/eka/compsupp. sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: #include sl@0: sl@0: EXPORT_C bool std::type_info::operator==(const std::type_info& rhs) const sl@0: { sl@0: if (this == &rhs) sl@0: { sl@0: return true; sl@0: } sl@0: sl@0: const char* s1 = this->name(); sl@0: const char* s2 = rhs.name(); sl@0: sl@0: while ( *s1 == *s2 && *s1 != '\0' ) sl@0: { sl@0: s1++; sl@0: s2++; sl@0: } sl@0: sl@0: return ( *s1 == '\0' && *s2 == '\0' ); sl@0: } sl@0: sl@0: EXPORT_C bool std::type_info::operator!=(const std::type_info& rhs) const sl@0: { sl@0: return !(*this == rhs); sl@0: } sl@0: