1 /*---------------------------------------------------------------------------* 2 Project: Revolution ENC sample demo 3 File: validate.h 4 5 Copyright 2006 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Log: validate.h,v $ 14 Revision 1.1 2006/10/27 12:20:47 yoshioka_yasuhiro 15 Initial commit. 16 17 $NoKeywords: $ 18 *---------------------------------------------------------------------------*/ 19 20 #ifndef TESTS_ENC_VALIDATE_H__ 21 #define TESTS_ENC_VALIDATE_H__ 22 #ifdef __cplusplus 23 extern "C" { 24 #endif 25 26 #include <revolution/types.h> 27 28 #define LENGTH 0x100 29 30 typedef ENCResult (*ConvertToUnicode)(u16 *dst, s32 *dstlen, const u8 *src, s32 *srclen); 31 typedef ENCResult (*ConvertFromUnicode)(u8 *dst, s32 *dstlen, const u16 *src, s32 *srclen); 32 typedef ENCResult (*ConvertMultiByte)(u8 *dst, s32 *dstlen, const u8 *src, s32 *srclen); 33 34 BOOL ValidateFuncToUnicode(ConvertToUnicode func, const u16 *wcs, const u8 *mbs, s32 count); 35 BOOL ValidateFuncFromUnicode(ConvertFromUnicode func, const u8 *mbs, const u16 *wcs, s32 count); 36 BOOL ValidateFuncMultiByte(ConvertMultiByte func, const u8 *dstmbs, const u8 *srcmbs, s32 count); 37 38 #ifdef __cplusplus 39 } /* extern "C" */ 40 #endif 41 #endif /* TESTS_ENC_VALIDATE_H__ */