2006-01-23 23:45:12 +00:00
|
|
|
/*
|
|
|
|
********************************************************************************
|
2011-07-23 00:10:30 +00:00
|
|
|
* Copyright (C) 2005-2011, International Business Machines
|
2006-01-23 23:45:12 +00:00
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
********************************************************************************
|
|
|
|
*
|
|
|
|
* File WINUTIL.H
|
|
|
|
*
|
|
|
|
********************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINUTIL
|
|
|
|
#define __WINUTIL
|
|
|
|
|
|
|
|
#include "unicode/utypes.h"
|
|
|
|
|
2011-07-23 00:10:30 +00:00
|
|
|
#if U_PLATFORM_HAS_WIN32_API
|
2006-01-23 23:45:12 +00:00
|
|
|
|
|
|
|
#if !UCONFIG_NO_FORMATTING
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
* \brief C++ API: Format dates using Windows API.
|
|
|
|
*/
|
|
|
|
|
|
|
|
class Win32Utilities
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
struct LCIDRecord
|
|
|
|
{
|
|
|
|
int32_t lcid;
|
2009-12-16 17:34:15 +00:00
|
|
|
char *localeID;
|
2006-01-23 23:45:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static LCIDRecord *getLocales(int32_t &localeCount);
|
|
|
|
static void freeLocales(LCIDRecord *records);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Win32Utilities();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* #if !UCONFIG_NO_FORMATTING */
|
|
|
|
|
2011-07-23 00:10:30 +00:00
|
|
|
#endif // U_PLATFORM_HAS_WIN32_API
|
2006-01-23 23:45:12 +00:00
|
|
|
|
|
|
|
#endif // __WINUTIL
|