equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Provides string array class methods. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "TSingleDesCArray.h" |
|
22 #include <pbkdebug.h> |
|
23 |
|
24 // ================= MEMBER FUNCTIONS ======================= |
|
25 |
|
26 TInt TSingleDesCArray::MdcaCount() const |
|
27 { |
|
28 return iString ? 1 : 0; |
|
29 } |
|
30 |
|
31 TPtrC TSingleDesCArray::MdcaPoint(TInt PBK_DEBUG_ONLY(aIndex)) const |
|
32 { |
|
33 __ASSERT_DEBUG(aIndex==0 && iString, Panic(EPanicPreCond_MdcaPoint)); |
|
34 return *iString; |
|
35 } |
|
36 |
|
37 #ifdef _DEBUG |
|
38 void TSingleDesCArray::Panic(TInt aReason) |
|
39 { |
|
40 _LIT(KPanicText, "TSingleDesCArray"); |
|
41 User::Panic(KPanicText, aReason); |
|
42 } |
|
43 #endif // _DEBUG |
|
44 |
|
45 // End of File |