OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2009 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 void createQualifiedName(void* targetAddress, StringImpl* name, const AtomicStri
ng& nameNamespace) | 167 void createQualifiedName(void* targetAddress, StringImpl* name, const AtomicStri
ng& nameNamespace) |
168 { | 168 { |
169 new (reinterpret_cast<void*>(targetAddress)) QualifiedName(nullAtom, AtomicS
tring(name), nameNamespace); | 169 new (reinterpret_cast<void*>(targetAddress)) QualifiedName(nullAtom, AtomicS
tring(name), nameNamespace); |
170 } | 170 } |
171 | 171 |
172 void createQualifiedName(void* targetAddress, StringImpl* name) | 172 void createQualifiedName(void* targetAddress, StringImpl* name) |
173 { | 173 { |
174 new (reinterpret_cast<void*>(targetAddress)) QualifiedName(nullAtom, AtomicS
tring(name), nullAtom); | 174 new (reinterpret_cast<void*>(targetAddress)) QualifiedName(nullAtom, AtomicS
tring(name), nullAtom); |
175 } | 175 } |
176 | 176 |
| 177 bool lessThanByImplAddress(const QualifiedName* const& a, const QualifiedName* c
onst& b) |
| 178 { |
| 179 return a->impl() < b->impl(); |
177 } | 180 } |
| 181 |
| 182 bool lessThanByLocalNameImplAddress(const QualifiedName* const& a, const Qualifi
edName* const& b) |
| 183 { |
| 184 return a->localName().impl() < b->localName().impl(); |
| 185 } |
| 186 |
| 187 } |
OLD | NEW |