ReactOS
0.4.15-dev-4570-g4f8bbd1
|
#include "config.h"
#include "wine/port.h"
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include "windef.h"
#include "winbase.h"
#include "wine/unicode.h"
#include "wine/debug.h"
#include "winternl.h"
#include "kernel_private.h"
Go to the source code of this file.
Classes | |
struct | _NLS_FORMAT_NODE |
struct | enumdateformats_context |
struct | enumtimeformats_context |
struct | enumcalendar_context |
Macros | |
#define | DATE_DATEVARSONLY 0x0100 /* only date stuff: yMdg */ |
#define | TIME_TIMEVARSONLY 0x0200 /* only time stuff: hHmst */ |
#define | NLS_NUM_CACHED_STRINGS 57 |
#define | GetNegative(fmt) fmt->lppszStrings[0] |
#define | GetLongDate(fmt) fmt->lppszStrings[1] |
#define | GetShortDate(fmt) fmt->lppszStrings[2] |
#define | GetTime(fmt) fmt->lppszStrings[3] |
#define | GetAM(fmt) fmt->lppszStrings[54] |
#define | GetPM(fmt) fmt->lppszStrings[55] |
#define | GetYearMonth(fmt) fmt->lppszStrings[56] |
#define | GetLongDay(fmt, day) fmt->lppszStrings[4 + day] |
#define | GetShortDay(fmt, day) fmt->lppszStrings[11 + day] |
#define | GetLongMonth(fmt, mth) fmt->lppszStrings[18 + mth] |
#define | GetGenitiveMonth(fmt, mth) fmt->lppszStrings[30 + mth] |
#define | GetShortMonth(fmt, mth) fmt->lppszStrings[42 + mth] |
#define | GET_LOCALE_NUMBER(num, type) |
#define | GET_LOCALE_STRING(str, type) |
#define | IsLiteralMarker(p) (p == '\'') |
#define | IsDateFmtChar(p) (p == 'd'||p == 'M'||p == 'y'||p == 'g') |
#define | IsTimeFmtChar(p) (p == 'H'||p == 'h'||p == 'm'||p == 's'||p == 't') |
#define | DATE_FORMAT_FLAGS (DATE_DATEVARSONLY) |
#define | TIME_FORMAT_FLAGS |
#define | NF_ISNEGATIVE 0x1 /* '-' found */ |
#define | NF_ISREAL 0x2 /* '.' found */ |
#define | NF_DIGITS 0x4 /* '0'-'9' found */ |
#define | NF_DIGITS_OUT 0x8 /* Digits before the '.' found */ |
#define | NF_ROUND 0x10 /* Number needs to be rounded */ |
#define | NLS_NEG_PARENS 0 /* "(1.1)" */ |
#define | NLS_NEG_LEFT 1 /* "-1.1" */ |
#define | NLS_NEG_LEFT_SPACE 2 /* "- 1.1" */ |
#define | NLS_NEG_RIGHT 3 /* "1.1-" */ |
#define | NLS_NEG_RIGHT_SPACE 4 /* "1.1 -" */ |
#define | CF_PARENS 0x1 /* Parentheses */ |
#define | CF_MINUS_LEFT 0x2 /* '-' to the left */ |
#define | CF_MINUS_RIGHT 0x4 /* '-' to the right */ |
#define | CF_MINUS_BEFORE 0x8 /* '-' before '$' */ |
#define | CF_CY_LEFT 0x10 /* '$' to the left */ |
#define | CF_CY_RIGHT 0x20 /* '$' to the right */ |
#define | CF_CY_SPACE 0x40 /* ' ' by '$' */ |
Typedefs | |
typedef struct _NLS_FORMAT_NODE | NLS_FORMAT_NODE |
Enumerations | |
enum | enum_callback_type { CALLBACK_ENUMPROC, CALLBACK_ENUMPROCEX, CALLBACK_ENUMPROCEXEX } |
Variables | |
static CRITICAL_SECTION | NLS_FormatsCS = { &NLS_FormatsCS_debug, -1, 0, 0, 0, 0 } |
static CRITICAL_SECTION_DEBUG | NLS_FormatsCS_debug |
#define CF_CY_LEFT 0x10 /* '$' to the left */ |
Definition at line 1555 of file lcformat.c.
#define CF_CY_RIGHT 0x20 /* '$' to the right */ |
Definition at line 1556 of file lcformat.c.
#define CF_CY_SPACE 0x40 /* ' ' by '$' */ |
Definition at line 1557 of file lcformat.c.
#define CF_MINUS_BEFORE 0x8 /* '-' before '$' */ |
Definition at line 1554 of file lcformat.c.
#define CF_MINUS_LEFT 0x2 /* '-' to the left */ |
Definition at line 1552 of file lcformat.c.
#define CF_MINUS_RIGHT 0x4 /* '-' to the right */ |
Definition at line 1553 of file lcformat.c.
#define CF_PARENS 0x1 /* Parentheses */ |
Definition at line 1551 of file lcformat.c.
#define DATE_DATEVARSONLY 0x0100 /* only date stuff: yMdg */ |
Definition at line 66 of file lcformat.c.
#define DATE_FORMAT_FLAGS (DATE_DATEVARSONLY) |
Definition at line 385 of file lcformat.c.
Definition at line 167 of file lcformat.c.
Definition at line 170 of file lcformat.c.
Definition at line 98 of file lcformat.c.
Definition at line 105 of file lcformat.c.
Definition at line 95 of file lcformat.c.
Definition at line 102 of file lcformat.c.
Definition at line 104 of file lcformat.c.
Definition at line 94 of file lcformat.c.
Definition at line 99 of file lcformat.c.
Definition at line 96 of file lcformat.c.
Definition at line 103 of file lcformat.c.
Definition at line 106 of file lcformat.c.
Definition at line 97 of file lcformat.c.
Definition at line 100 of file lcformat.c.
Definition at line 378 of file lcformat.c.
Definition at line 377 of file lcformat.c.
Definition at line 379 of file lcformat.c.
#define NF_DIGITS 0x4 /* '0'-'9' found */ |
Definition at line 1182 of file lcformat.c.
#define NF_DIGITS_OUT 0x8 /* Digits before the '.' found */ |
Definition at line 1183 of file lcformat.c.
#define NF_ISNEGATIVE 0x1 /* '-' found */ |
Definition at line 1180 of file lcformat.c.
#define NF_ISREAL 0x2 /* '.' found */ |
Definition at line 1181 of file lcformat.c.
#define NF_ROUND 0x10 /* Number needs to be rounded */ |
Definition at line 1184 of file lcformat.c.
#define NLS_NEG_LEFT 1 /* "-1.1" */ |
Definition at line 1188 of file lcformat.c.
#define NLS_NEG_LEFT_SPACE 2 /* "- 1.1" */ |
Definition at line 1189 of file lcformat.c.
#define NLS_NEG_PARENS 0 /* "(1.1)" */ |
Definition at line 1187 of file lcformat.c.
#define NLS_NEG_RIGHT 3 /* "1.1-" */ |
Definition at line 1190 of file lcformat.c.
#define NLS_NEG_RIGHT_SPACE 4 /* "1.1 -" */ |
Definition at line 1191 of file lcformat.c.
#define NLS_NUM_CACHED_STRINGS 57 |
Definition at line 78 of file lcformat.c.
#define TIME_FORMAT_FLAGS |
Definition at line 387 of file lcformat.c.
#define TIME_TIMEVARSONLY 0x0200 /* only time stuff: hHmst */ |
Definition at line 67 of file lcformat.c.
typedef struct _NLS_FORMAT_NODE NLS_FORMAT_NODE |
Enumerator | |
---|---|
CALLBACK_ENUMPROC | |
CALLBACK_ENUMPROCEX | |
CALLBACK_ENUMPROCEXEX |
Definition at line 1870 of file lcformat.c.
BOOL WINAPI EnumCalendarInfoA | ( | CALINFO_ENUMPROCA | calinfoproc, |
LCID | locale, | ||
CALID | calendar, | ||
CALTYPE | caltype | ||
) |
Definition at line 2327 of file lcformat.c.
BOOL WINAPI EnumCalendarInfoExA | ( | CALINFO_ENUMPROCEXA | calinfoproc, |
LCID | locale, | ||
CALID | calendar, | ||
CALTYPE | caltype | ||
) |
Definition at line 2367 of file lcformat.c.
BOOL WINAPI EnumCalendarInfoExW | ( | CALINFO_ENUMPROCEXW | calinfoproc, |
LCID | locale, | ||
CALID | calendar, | ||
CALTYPE | caltype | ||
) |
Definition at line 2387 of file lcformat.c.
BOOL WINAPI EnumCalendarInfoW | ( | CALINFO_ENUMPROCW | calinfoproc, |
LCID | locale, | ||
CALID | calendar, | ||
CALTYPE | caltype | ||
) |
Definition at line 2347 of file lcformat.c.
BOOL WINAPI EnumDateFormatsA | ( | DATEFMT_ENUMPROCA | proc, |
LCID | lcid, | ||
DWORD | flags | ||
) |
Definition at line 2003 of file lcformat.c.
Referenced by test_EnumDateFormatsA().
BOOL WINAPI EnumDateFormatsExA | ( | DATEFMT_ENUMPROCEXA | proc, |
LCID | lcid, | ||
DWORD | flags | ||
) |
Definition at line 1968 of file lcformat.c.
BOOL WINAPI EnumDateFormatsExW | ( | DATEFMT_ENUMPROCEXW | proc, |
LCID | lcid, | ||
DWORD | flags | ||
) |
Definition at line 1984 of file lcformat.c.
BOOL WINAPI EnumDateFormatsW | ( | DATEFMT_ENUMPROCW | proc, |
LCID | lcid, | ||
DWORD | flags | ||
) |
Definition at line 2019 of file lcformat.c.
Referenced by InitLongDateCB(), and InitShortDateCB().
BOOL WINAPI EnumTimeFormatsA | ( | TIMEFMT_ENUMPROCA | proc, |
LCID | lcid, | ||
DWORD | flags | ||
) |
Definition at line 2120 of file lcformat.c.
Referenced by test_EnumTimeFormatsA(), and test_EnumTimeFormatsW().
BOOL WINAPI EnumTimeFormatsW | ( | TIMEFMT_ENUMPROCW | proc, |
LCID | lcid, | ||
DWORD | flags | ||
) |
Definition at line 2143 of file lcformat.c.
Referenced by InitTimeFormatCB(), and test_EnumTimeFormatsW().
int WINAPI GetCalendarInfoA | ( | LCID | lcid, |
CALID | Calendar, | ||
CALTYPE | CalType, | ||
LPSTR | lpCalData, | ||
int | cchData, | ||
LPDWORD | lpValue | ||
) |
Definition at line 2430 of file lcformat.c.
Referenced by NLS_EnumCalendarInfo(), and START_TEST().
int WINAPI GetCalendarInfoW | ( | LCID | Locale, |
CALID | Calendar, | ||
CALTYPE | CalType, | ||
LPWSTR | lpCalData, | ||
int | cchData, | ||
LPDWORD | lpValue | ||
) |
Definition at line 2485 of file lcformat.c.
Referenced by GetCalendarInfoA(), GetMaxDate(), NLS_EnumCalendarInfo(), and START_TEST().
INT WINAPI GetCurrencyFormatA | ( | LCID | lcid, |
DWORD | dwFlags, | ||
LPCSTR | lpszValue, | ||
const CURRENCYFMTA * | lpFormat, | ||
LPSTR | lpCurrencyStr, | ||
int | cchOut | ||
) |
Definition at line 1482 of file lcformat.c.
Referenced by test_GetCurrencyFormatA().
INT WINAPI GetCurrencyFormatW | ( | LCID | lcid, |
DWORD | dwFlags, | ||
LPCWSTR | lpszValue, | ||
const CURRENCYFMTW * | lpFormat, | ||
LPWSTR | lpCurrencyStr, | ||
int | cchOut | ||
) |
Definition at line 1564 of file lcformat.c.
Referenced by GetCurrencyFormatA(), InitCurrencyNegativeFormats(), InitCurrencyPositiveFormats(), InitDigitGroupCB(), UpdateExamples(), UpdateLocaleSample(), VarBstrFromCy(), and VarFormatCurrency().
INT WINAPI GetDateFormatA | ( | LCID | lcid, |
DWORD | dwFlags, | ||
const SYSTEMTIME * | lpTime, | ||
LPCSTR | lpFormat, | ||
LPSTR | lpDateStr, | ||
INT | cchOut | ||
) |
Definition at line 922 of file lcformat.c.
Referenced by _ILGetFileDate(), _strdate(), ExtCabCallback(), filetime_to_str(), CFontExt::GetDetailsOf(), HTTPREQ_QueryOption(), START_TEST(), strftime_date(), test_cert_struct_string(), test_GetDateFormatA(), test_SHFormatDateTimeA(), and test_wm_set_get_text().
INT WINAPI GetDateFormatW | ( | LCID | lcid, |
DWORD | dwFlags, | ||
const SYSTEMTIME * | lpTime, | ||
LPCWSTR | lpFormat, | ||
LPWSTR | lpDateStr, | ||
INT | cchOut | ||
) |
Definition at line 979 of file lcformat.c.
Referenced by CZipFolder::_GetFileTimeString(), _wstrdate(), add_cert_to_list(), add_cert_to_view(), add_date_string_to_control(), AddUserProfile(), Date_toLocaleDateString(), Date_toLocaleString(), datetime_proc(), CInstalledApplicationInfo::EnsureDetailsLoaded(), EnumEventsThread(), fill_datetime_information(), format_date(), format_long_date(), FormatDateTime(), GetFileModifyTime(), CFileDefExt::GetFileTimeString(), GetFileTimeString(), CShellLink::Load(), MONTHCAL_PaintTitle(), MONTHCAL_PaintTodayTitle(), msi_get_property_row(), OnInitSecurityDlg(), PrintDateTime(), set_print_template(), SHFormatDateTimeW(), START_TEST(), test_GetDateFormatW(), test_SHFormatDateTimeW(), tmToStr(), UpdateDateLocaleSamples(), UpdateLocaleSample(), UpdateNTPStatus(), BtrfsScrub::UpdateTextBox(), WherePrintPath(), and XCOPY_ParseCommandLine().
INT WINAPI GetNumberFormatA | ( | LCID | lcid, |
DWORD | dwFlags, | ||
LPCSTR | lpszValue, | ||
const NUMBERFMTA * | lpFormat, | ||
LPSTR | lpNumberStr, | ||
int | cchOut | ||
) |
Definition at line 1116 of file lcformat.c.
Referenced by test_GetNumberFormatA().
INT WINAPI GetNumberFormatW | ( | LCID | lcid, |
DWORD | dwFlags, | ||
LPCWSTR | lpszValue, | ||
const NUMBERFMTW * | lpFormat, | ||
LPWSTR | lpNumberStr, | ||
int | cchOut | ||
) |
Definition at line 1198 of file lcformat.c.
Referenced by AddCommasW(), format_size(), FormatBytes(), FormatDouble(), FormatInt(), FormatInteger(), GetNumberFormatA(), init_output(), SH_FormatInteger(), UpdateLocaleSample(), UpdateNumSamples(), VarBstrFromDec(), VarFormatNumber(), VARIANT_BstrFromReal(), VARIANT_BstrReplaceDecimal(), and VARIANT_MakeBstr().
INT WINAPI GetTimeFormatA | ( | LCID | lcid, |
DWORD | dwFlags, | ||
const SYSTEMTIME * | lpTime, | ||
LPCSTR | lpFormat, | ||
LPSTR | lpTimeStr, | ||
INT | cchOut | ||
) |
Definition at line 1030 of file lcformat.c.
Referenced by _ILGetFileDate(), _strtime(), ExtCabCallback(), CFontExt::GetDetailsOf(), HTTPREQ_QueryOption(), strftime_time(), test_cert_struct_string(), test_GetTimeFormatA(), and test_SHFormatDateTimeA().
INT WINAPI GetTimeFormatW | ( | LCID | lcid, |
DWORD | dwFlags, | ||
const SYSTEMTIME * | lpTime, | ||
LPCWSTR | lpFormat, | ||
LPWSTR | lpTimeStr, | ||
INT | cchOut | ||
) |
Definition at line 1079 of file lcformat.c.
Referenced by CZipFolder::_GetFileTimeString(), _wstrtime(), Date_toLocaleString(), Date_toLocaleTimeString(), datetime_proc(), EnumEventsThread(), fill_datetime_information(), format_date(), FormatDateTime(), GetFileModifyTime(), CFileDefExt::GetFileTimeString(), GetFileTimeString(), InitializeSystemPage(), msi_get_property_row(), OnInitSecurityDlg(), PrintDateTime(), PrintLocalTime(), SHFormatDateTimeW(), test_SHFormatDateTimeW(), tmToStr(), UpdateLanStatusUiDlg(), UpdateLocaleSample(), UpdateNTPStatus(), BtrfsScrub::UpdateTextBox(), UpdateTimeSample(), VarBstrFromDate(), WherePrintPath(), and XCOPY_ParseCommandLine().
|
static |
Definition at line 2209 of file lcformat.c.
Referenced by EnumCalendarInfoA(), EnumCalendarInfoExA(), EnumCalendarInfoExW(), and EnumCalendarInfoW().
|
static |
Definition at line 1900 of file lcformat.c.
Referenced by EnumDateFormatsA(), EnumDateFormatsExA(), EnumDateFormatsExW(), and EnumDateFormatsW().
|
static |
Definition at line 2063 of file lcformat.c.
Referenced by EnumTimeFormatsA(), and EnumTimeFormatsW().
|
static |
Definition at line 829 of file lcformat.c.
Referenced by GetDateFormatA(), and GetTimeFormatA().
|
static |
Definition at line 400 of file lcformat.c.
Referenced by GetDateFormatW(), GetTimeFormatW(), and NLS_GetDateTimeFormatA().
|
static |
Definition at line 178 of file lcformat.c.
Referenced by GetCalendarInfoA(), GetCurrencyFormatA(), GetCurrencyFormatW(), GetNumberFormatA(), GetNumberFormatW(), NLS_GetDateTimeFormatA(), and NLS_GetDateTimeFormatW().
Definition at line 128 of file lcformat.c.
Referenced by NLS_EnumCalendarInfo().
Definition at line 153 of file lcformat.c.
Definition at line 350 of file lcformat.c.
Referenced by GetCalendarInfoA(), GetCurrencyFormatA(), GetNumberFormatA(), and NLS_GetDateTimeFormatA().
Definition at line 2816 of file lcformat.c.
WINE_DEFAULT_DEBUG_CHANNEL | ( | nls | ) |
|
static |
Definition at line 109 of file lcformat.c.
Referenced by NLS_GetFormats().
|
static |
Definition at line 110 of file lcformat.c.