equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004-2009 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 * This is used to exercise the explicit wide character abilities of the |
|
16 * compiler |
|
17 * Pute, June 1999. |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 NAME TWTE |
|
27 |
|
28 |
|
29 |
|
30 STRUCT TBUF |
|
31 { |
|
32 BUF buf; /* non-zero terminated text string */ |
|
33 } |
|
34 |
|
35 STRUCT LBUF |
|
36 { |
|
37 LTEXT txt; // leading-byte counted text string |
|
38 } |
|
39 |
|
40 STRUCT LBUF16 |
|
41 { |
|
42 LTEXT16 txt; // leading byte counted wide string |
|
43 } |
|
44 |
|
45 STRUCT ARRAY |
|
46 { |
|
47 STRUCT items[]; |
|
48 } |
|
49 |
|
50 STRUCT TBUF1 |
|
51 { |
|
52 BUF<1> buf; // buffer of fixed length |
|
53 } |
|
54 |
|
55 // The following resource contains explicit wide characters. |
|
56 |
|
57 |
|
58 |
|
59 RESOURCE TBUF wide_string { buf = "here are some wide characters:" |
|
60 <0x20AC> <0x07ED> |
|
61 "..."; |
|
62 } |
|
63 |
|
64 |
|
65 RESOURCE TBUF1 long_string { buf = <0x20AC>; } // tests length checking |