author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 14 Sep 2010 23:56:21 +0300 | |
branch | RCL_3 |
changeset 45 | 9e2d4f7f5028 |
parent 2 | 4122176ea935 |
permissions | -rw-r--r-- |
0 | 1 |
/* |
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
* All rights reserved. |
|
4 |
* This component and the accompanying materials are made available |
|
2
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
5 |
// under the terms of the License "ARM EABI LICENCE.txt" |
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
6 |
// which accompanies this distribution, and is available |
4122176ea935
Revision: 200948 + Removing redundant base integration tests and fixing build errors
John Imhofe <john.imhofe@nokia.com>
parents:
0
diff
changeset
|
7 |
// in kernel/eka/compsupp. |
0 | 8 |
* |
9 |
* Initial Contributors: |
|
10 |
* Nokia Corporation - initial contribution. |
|
11 |
* |
|
12 |
* Contributors: |
|
13 |
* |
|
14 |
* Description: |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#include <typeinfo> |
|
19 |
||
20 |
EXPORT_C bool std::type_info::operator==(const std::type_info& rhs) const |
|
21 |
{ |
|
22 |
if (this == &rhs) |
|
23 |
{ |
|
24 |
return true; |
|
25 |
} |
|
26 |
||
27 |
const char* s1 = this->name(); |
|
28 |
const char* s2 = rhs.name(); |
|
29 |
||
30 |
while ( *s1 == *s2 && *s1 != '\0' ) |
|
31 |
{ |
|
32 |
s1++; |
|
33 |
s2++; |
|
34 |
} |
|
35 |
||
36 |
return ( *s1 == '\0' && *s2 == '\0' ); |
|
37 |
} |
|
38 |
||
39 |
EXPORT_C bool std::type_info::operator!=(const std::type_info& rhs) const |
|
40 |
{ |
|
41 |
return !(*this == rhs); |
|
42 |
} |
|
43 |