Last change
on this file since 175 was 68, checked in by achimha, 26 years ago |
Added unicode/ascii functions to convert n characters, old ones wrap to new functions
|
File size:
840 bytes
|
Rev | Line | |
---|
[68] | 1 | /* $Id: unicode.h,v 1.4 1999-06-09 13:12:19 achimha Exp $ */
|
---|
[4] | 2 |
|
---|
| 3 | /*
|
---|
| 4 | *
|
---|
| 5 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
| 6 | *
|
---|
| 7 | */
|
---|
| 8 | #ifndef __UNICODE_H__
|
---|
| 9 | #define __UNICODE_H__
|
---|
| 10 |
|
---|
[55] | 11 | #include <uniconv.h>
|
---|
[4] | 12 |
|
---|
| 13 | #ifdef __cplusplus
|
---|
| 14 | extern "C" {
|
---|
| 15 | #endif
|
---|
| 16 |
|
---|
[68] | 17 | /* also used from Windows only files ported from WINE */
|
---|
| 18 | #ifndef WIN32API
|
---|
| 19 | #define WIN32API WINAPI
|
---|
| 20 | #endif
|
---|
| 21 |
|
---|
[4] | 22 | char *WIN32API UnicodeToAsciiString(LPWSTR ustring);
|
---|
| 23 | int WIN32API UnicodeToAscii(LPWSTR ustring, char *astring);
|
---|
[68] | 24 | int WIN32API UnicodeToAsciiN(LPWSTR ustring, char *astring, int unilen);
|
---|
[4] | 25 | void WIN32API FreeAsciiString(char *astring);
|
---|
| 26 | void WIN32API AsciiToUnicode(char *ascii, LPWSTR unicode);
|
---|
[68] | 27 | void WIN32API AsciiToUnicodeN(char *ascii, LPWSTR unicode, int asciilen);
|
---|
[4] | 28 |
|
---|
| 29 | #ifdef __cplusplus
|
---|
| 30 | }
|
---|
| 31 | #endif
|
---|
| 32 |
|
---|
| 33 | #ifdef __cplusplus
|
---|
| 34 | char *UnicodeToAscii(int length, WCHAR *NameString);
|
---|
| 35 | #endif
|
---|
| 36 |
|
---|
| 37 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.