chromium/third_party/icu/source/i18n/msgfmt.cpp

// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/********************************************************************
 * COPYRIGHT:
 * Copyright (c) 1997-2015, International Business Machines Corporation and
 * others. All Rights Reserved.
 ********************************************************************
 *
 * File MSGFMT.CPP
 *
 * Modification History:
 *
 *   Date        Name        Description
 *   02/19/97    aliu        Converted from java.
 *   03/20/97    helena      Finished first cut of implementation.
 *   04/10/97    aliu        Made to work on AIX.  Added stoi to replace wtoi.
 *   06/11/97    helena      Fixed addPattern to take the pattern correctly.
 *   06/17/97    helena      Fixed the getPattern to return the correct pattern.
 *   07/09/97    helena      Made ParsePosition into a class.
 *   02/22/99    stephen     Removed character literals for EBCDIC safety
 *   11/01/09    kirtig      Added SelectFormat
 ********************************************************************/

#include "unicode/utypes.h"

#if !UCONFIG_NO_FORMATTING

#include "unicode/appendable.h"
#include "unicode/choicfmt.h"
#include "unicode/datefmt.h"
#include "unicode/decimfmt.h"
#include "unicode/localpointer.h"
#include "unicode/msgfmt.h"
#include "unicode/numberformatter.h"
#include "unicode/plurfmt.h"
#include "unicode/rbnf.h"
#include "unicode/selfmt.h"
#include "unicode/smpdtfmt.h"
#include "unicode/umsg.h"
#include "unicode/ustring.h"
#include "cmemory.h"
#include "patternprops.h"
#include "messageimpl.h"
#include "msgfmt_impl.h"
#include "plurrule_impl.h"
#include "uassert.h"
#include "uelement.h"
#include "uhash.h"
#include "ustrfmt.h"
#include "util.h"
#include "uvector.h"
#include "number_decimalquantity.h"

// *****************************************************************************
// class MessageFormat
// *****************************************************************************

#define SINGLE_QUOTE
#define COMMA
#define LEFT_CURLY_BRACE
#define RIGHT_CURLY_BRACE

//---------------------------------------
// static data

static const char16_t ID_NUMBER[]    =;
static const char16_t ID_DATE[]      =;
static const char16_t ID_TIME[]      =;
static const char16_t ID_SPELLOUT[]  =;
static const char16_t ID_ORDINAL[]   =;
static const char16_t ID_DURATION[]  =;

// MessageFormat Type List  Number, Date, Time or Choice
static const char16_t * const TYPE_IDS[] =;

static const char16_t ID_EMPTY[]     =;
static const char16_t ID_CURRENCY[]  =;
static const char16_t ID_PERCENT[]   =;
static const char16_t ID_INTEGER[]   =;

// NumberFormat modifier list, default, currency, percent or integer
static const char16_t * const NUMBER_STYLE_IDS[] =;

static const char16_t ID_SHORT[]     =;
static const char16_t ID_MEDIUM[]    =;
static const char16_t ID_LONG[]      =;
static const char16_t ID_FULL[]      =;

// DateFormat modifier list, default, short, medium, long or full
static const char16_t * const DATE_STYLE_IDS[] =;

static const icu::DateFormat::EStyle DATE_STYLES[] =;

static const int32_t DEFAULT_INITIAL_CAPACITY =;

static const char16_t NULL_STRING[] =;

static const char16_t OTHER_STRING[] =;

U_CDECL_BEGIN
static UBool U_CALLCONV equalFormatsForHash(const UHashTok key1,
                                            const UHashTok key2) {}

U_CDECL_END

U_NAMESPACE_BEGIN

#endif /* #if !UCONFIG_NO_FORMATTING */

//eof