(file) Return to test_pal_strings.inc CVS log (file) (dir) Up to [OMI] / omi / tests / pal

 1 krisbash 1.1 
 2              /* This is just a test file consumed by test_pal.cpp.
 3                 For sample code that uses pal/intlstr* please see ./tests/pal_intlstr_sample directory */
 4              
 5              Intlstr_Define0(1010, TestPal_SimpleString, "My simple string") /* {Locked} */
 6              
 7              Intlstr_Define2(
 8                  1020, 
 9                  TestPal_ReorderablePlaceholders, 
10                  int, firstInteger, 
11                  int, secondInteger,
12                  "Second integer = " Intlstr_d(2) ",  First integer = " Intlstr_d(1)
13              ) /* {Locked} */ 
14              
15              Intlstr_Define1(
16                  2010, 
17                  TestPal_OnePlaceholder, 
18                  int, p1, 
19                  "p1=" Intlstr_d(1) 
20              ) /* {Locked} */ 
21              
22 krisbash 1.1 Intlstr_Define2(
23                  2020, 
24                  TestPal_TwoPlaceholders, 
25                  int, p1, 
26                  int, p2,
27                  "p1=" Intlstr_d(1) ", p2=" Intlstr_d(2)
28              ) /* {Locked} */ 
29              
30              Intlstr_Define3(
31                  2030, 
32                  TestPal_ThreePlaceholders, 
33                  int, p1, 
34                  int, p2,
35                  int, p3, 
36                  "p1=" Intlstr_d(1) ", p2=" Intlstr_d(2) ", p3=" Intlstr_d(3)
37              ) /* {Locked} */ 
38              
39              Intlstr_Define1(
40                  3010, 
41                  TestPal_Specifier_d, 
42                  int, p1, 
43 krisbash 1.1     "p1=" Intlstr_d(1) 
44              ) /* {Locked} */ 
45              
46              Intlstr_Define1(
47                  3020, 
48                  TestPal_Specifier_tstr, 
49                  _In_z_ const PAL_Char*, p1, 
50                  "p1=" Intlstr_tstr(1) 
51              ) /* {Locked} */ 
52              
53              Intlstr_Define1(
54                  3022, 
55                  TestPal_Specifier_tchr, 
56                  PAL_Char, c, 
57                  "char=" Intlstr_tchr(1) 
58              ) /* {Locked} */ 
59              
60              Intlstr_Define1(
61                  3030, 
62                  TestPal_Specifier_x, 
63                  int, p1, 
64 krisbash 1.1     "p1=0x" Intlstr_x(1) 
65              ) /* {Locked} */ 
66              

ViewCVS 0.9.2