equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006 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 the License "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 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "config.h" |
|
20 #include "PlatformString.h" |
|
21 #include <e32std.h> |
|
22 |
|
23 namespace WebCore { |
|
24 |
|
25 String::String(const TDesC& des) |
|
26 { |
|
27 if (!des.Length()) |
|
28 m_impl = StringImpl::empty(); |
|
29 else |
|
30 m_impl = new StringImpl(des); |
|
31 } |
|
32 |
|
33 String::String(const TDesC8& des) |
|
34 { |
|
35 if (!des.Length()) |
|
36 m_impl = StringImpl::empty(); |
|
37 else |
|
38 m_impl = new StringImpl(des); |
|
39 } |
|
40 |
|
41 } |