/*---------------------------------------------------------------------------* Project: Revolution ENC sample demo File: validate.h Copyright 2006 Nintendo. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Log: validate.h,v $ Revision 1.1 2006/10/27 12:20:47 yoshioka_yasuhiro Initial commit. $NoKeywords: $ *---------------------------------------------------------------------------*/ #ifndef TESTS_ENC_VALIDATE_H__ #define TESTS_ENC_VALIDATE_H__ #ifdef __cplusplus extern "C" { #endif #include #define LENGTH 0x100 typedef ENCResult (*ConvertToUnicode)(u16 *dst, s32 *dstlen, const u8 *src, s32 *srclen); typedef ENCResult (*ConvertFromUnicode)(u8 *dst, s32 *dstlen, const u16 *src, s32 *srclen); typedef ENCResult (*ConvertMultiByte)(u8 *dst, s32 *dstlen, const u8 *src, s32 *srclen); BOOL ValidateFuncToUnicode(ConvertToUnicode func, const u16 *wcs, const u8 *mbs, s32 count); BOOL ValidateFuncFromUnicode(ConvertFromUnicode func, const u8 *mbs, const u16 *wcs, s32 count); BOOL ValidateFuncMultiByte(ConvertMultiByte func, const u8 *dstmbs, const u8 *srcmbs, s32 count); #ifdef __cplusplus } /* extern "C" */ #endif #endif /* TESTS_ENC_VALIDATE_H__ */