3 //=============================================================================
5 * @file wchar_reference.h
7 * C++ reference data for testing interoperability with wchars. This is
8 * linked into both clients and servers so that both sides have common
9 * values for testing what is received or sent.
11 * @author Phil Mesnier <mesnier_p@ociweb.com>
13 //=============================================================================
15 #ifndef WCHAR_REFERENCE_H
16 #define WCHAR_REFERENCE_H
20 #include "ace/OS_NS_wchar.h"
25 wchar_reference (int v
= 0);
26 void set_verbose (int v
);
27 ACE_OS::WChar
get_wchar (short key
);
28 const ACE_OS::WChar
*get_wstring (short key
);
29 ACE_OS::WChar
*get_warray (short key
);
30 void assign_warray (short key
, ACE_OS::WChar
*warray
);
32 const ACE_OS::WChar
*get_except (short key
);
34 int match_wchar (short key
, ACE_OS::WChar test
);
35 int match_wstring (short key
, const ACE_OS::WChar
* test
);
36 int match_warray (short key
, const ACE_OS::WChar
*test
);
37 int match_except (short key
, const ACE_OS::WChar
*test
);
40 #if defined (ACE_HAS_WCHAR) || defined (ACE_HAS_XPG4_MULTIBYTE_CHAR)
41 static ACE_OS::WChar ref_wchar
[NUM_KEYS
];
42 static const ACE_OS::WChar
*ref_wstring
[NUM_KEYS
];
43 static ACE_OS::WChar ref_warray
[NUM_KEYS
][10];
44 static const ACE_OS::WChar
*ref_except
[NUM_KEYS
];
45 #endif // ACE_HAS_WCHAR
49 #endif // WCHAR_REFERENCE_H