equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include "coff_string_table.h" |
|
17 |
|
18 static const char NULL_STRING[] = ""; |
|
19 |
|
20 namespace coff |
|
21 { |
|
22 String_table::String_table(const char* p) : m_first_p(p) |
|
23 { |
|
24 m_size = *reinterpret_cast<const int*>(m_first_p); |
|
25 } |
|
26 |
|
27 const char* String_table::get_string(unsigned n) const |
|
28 { |
|
29 if (n < 4) |
|
30 { |
|
31 return NULL_STRING; |
|
32 } |
|
33 |
|
34 return (m_first_p + n); |
|
35 } |
|
36 } |
|
37 |