2000-01-15 02:00:06 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2010-01-16 03:07:18 +00:00
|
|
|
* Copyright (c) 1997-2010, International Business Machines Corporation and
|
2000-01-15 02:00:06 +00:00
|
|
|
* others. All Rights Reserved.
|
2010-01-16 03:07:18 +00:00
|
|
|
********************************************************************
|
|
|
|
*
|
|
|
|
* File CMSGTST.H
|
|
|
|
*
|
|
|
|
* Modification History:
|
|
|
|
* Name Description
|
|
|
|
* Madhu Katragadda Creation
|
2000-01-15 02:00:06 +00:00
|
|
|
********************************************************************/
|
1999-08-16 21:50:52 +00:00
|
|
|
/* C API TEST FOR MESSAGE FORMAT */
|
|
|
|
#ifndef _CMSGFRMTST
|
|
|
|
#define _CMSGFRMTST
|
|
|
|
|
2002-09-20 17:54:45 +00:00
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
|
|
|
#if !UCONFIG_NO_FORMATTING
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
#include "cintltst.h"
|
|
|
|
|
|
|
|
|
|
|
|
/* The function used to test the Message format API*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test u_formatMessage() with various test patterns
|
|
|
|
**/
|
|
|
|
static void MessageFormatTest(void);
|
|
|
|
/**
|
|
|
|
* Test u_formatMessage() with sample test Patterns
|
|
|
|
**/
|
|
|
|
static void TestSampleMessageFormat(void);
|
|
|
|
/**
|
|
|
|
* Test format and parse sequence and roundtrip
|
|
|
|
**/
|
|
|
|
static void TestSampleFormatAndParse(void);
|
|
|
|
/**
|
|
|
|
* Test u_formatMessage() with choice option
|
|
|
|
**/
|
|
|
|
static void TestMsgFormatChoice(void);
|
2010-01-16 03:07:18 +00:00
|
|
|
/**
|
|
|
|
* Test u_formatMessage() with Select option
|
|
|
|
**/
|
|
|
|
static void TestMsgFormatSelect(void);
|
1999-08-16 21:50:52 +00:00
|
|
|
/**
|
|
|
|
* Test u_parseMessage() with various test patterns()
|
|
|
|
**/
|
|
|
|
static void TestParseMessage(void);
|
|
|
|
/**
|
|
|
|
* function used to set up various patterns used for testing u_formatMessage()
|
|
|
|
**/
|
|
|
|
static void InitStrings( void );
|
|
|
|
|
2001-03-23 19:08:53 +00:00
|
|
|
/**
|
|
|
|
* Regression test for ICU4C Jitterbug 904
|
|
|
|
*/
|
|
|
|
static void TestJ904(void);
|
|
|
|
|
2002-09-20 17:54:45 +00:00
|
|
|
#endif /* #if !UCONFIG_NO_FORMATTING */
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
#endif
|