ReactOS 0.4.16-dev-311-g9382aa2
|
#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 |
Definition at line 1569 of file lcformat.c.
Definition at line 1570 of file lcformat.c.
Definition at line 1571 of file lcformat.c.
Definition at line 1568 of file lcformat.c.
Definition at line 1566 of file lcformat.c.
Definition at line 1567 of file lcformat.c.
#define CF_PARENS 0x1 /* Parentheses */ |
Definition at line 1565 of file lcformat.c.
Definition at line 80 of file lcformat.c.
#define DATE_FORMAT_FLAGS (DATE_DATEVARSONLY) |
Definition at line 399 of file lcformat.c.
Definition at line 181 of file lcformat.c.
Definition at line 184 of file lcformat.c.
Definition at line 112 of file lcformat.c.
Definition at line 119 of file lcformat.c.
Definition at line 109 of file lcformat.c.
Definition at line 116 of file lcformat.c.
Definition at line 118 of file lcformat.c.
Definition at line 108 of file lcformat.c.
Definition at line 113 of file lcformat.c.
Definition at line 110 of file lcformat.c.
Definition at line 117 of file lcformat.c.
Definition at line 120 of file lcformat.c.
Definition at line 111 of file lcformat.c.
Definition at line 114 of file lcformat.c.
Definition at line 392 of file lcformat.c.
Definition at line 391 of file lcformat.c.
Definition at line 393 of file lcformat.c.
#define NF_DIGITS 0x4 /* '0'-'9' found */ |
Definition at line 1196 of file lcformat.c.
Definition at line 1197 of file lcformat.c.
#define NF_ISNEGATIVE 0x1 /* '-' found */ |
Definition at line 1194 of file lcformat.c.
#define NF_ISREAL 0x2 /* '.' found */ |
Definition at line 1195 of file lcformat.c.
Definition at line 1198 of file lcformat.c.
#define NLS_NEG_LEFT 1 /* "-1.1" */ |
Definition at line 1202 of file lcformat.c.
#define NLS_NEG_LEFT_SPACE 2 /* "- 1.1" */ |
Definition at line 1203 of file lcformat.c.
#define NLS_NEG_PARENS 0 /* "(1.1)" */ |
Definition at line 1201 of file lcformat.c.
#define NLS_NEG_RIGHT 3 /* "1.1-" */ |
Definition at line 1204 of file lcformat.c.
#define NLS_NEG_RIGHT_SPACE 4 /* "1.1 -" */ |
Definition at line 1205 of file lcformat.c.
#define NLS_NUM_CACHED_STRINGS 57 |
Definition at line 92 of file lcformat.c.
#define TIME_FORMAT_FLAGS |
Definition at line 401 of file lcformat.c.
Definition at line 81 of file lcformat.c.
typedef struct _NLS_FORMAT_NODE NLS_FORMAT_NODE |
Enumerator | |
---|---|
CALLBACK_ENUMPROC | |
CALLBACK_ENUMPROCEX | |
CALLBACK_ENUMPROCEXEX |
Definition at line 1884 of file lcformat.c.
BOOL WINAPI EnumCalendarInfoA | ( | CALINFO_ENUMPROCA | calinfoproc, |
LCID | locale, | ||
CALID | calendar, | ||
CALTYPE | caltype | ||
) |
Definition at line 2341 of file lcformat.c.
BOOL WINAPI EnumCalendarInfoExA | ( | CALINFO_ENUMPROCEXA | calinfoproc, |
LCID | locale, | ||
CALID | calendar, | ||
CALTYPE | caltype | ||
) |
Definition at line 2381 of file lcformat.c.
BOOL WINAPI EnumCalendarInfoExW | ( | CALINFO_ENUMPROCEXW | calinfoproc, |
LCID | locale, | ||
CALID | calendar, | ||
CALTYPE | caltype | ||
) |
Definition at line 2401 of file lcformat.c.
BOOL WINAPI EnumCalendarInfoW | ( | CALINFO_ENUMPROCW | calinfoproc, |
LCID | locale, | ||
CALID | calendar, | ||
CALTYPE | caltype | ||
) |
Definition at line 2361 of file lcformat.c.
BOOL WINAPI EnumDateFormatsA | ( | DATEFMT_ENUMPROCA | proc, |
LCID | lcid, | ||
DWORD | flags | ||
) |
Definition at line 2017 of file lcformat.c.
Referenced by test_EnumDateFormatsA().
BOOL WINAPI EnumDateFormatsExA | ( | DATEFMT_ENUMPROCEXA | proc, |
LCID | lcid, | ||
DWORD | flags | ||
) |
Definition at line 1982 of file lcformat.c.
BOOL WINAPI EnumDateFormatsExW | ( | DATEFMT_ENUMPROCEXW | proc, |
LCID | lcid, | ||
DWORD | flags | ||
) |
BOOL WINAPI EnumDateFormatsW | ( | DATEFMT_ENUMPROCW | proc, |
LCID | lcid, | ||
DWORD | flags | ||
) |
Definition at line 2033 of file lcformat.c.
Referenced by InitLongDateCB(), and InitShortDateCB().
BOOL WINAPI EnumTimeFormatsA | ( | TIMEFMT_ENUMPROCA | proc, |
LCID | lcid, | ||
DWORD | flags | ||
) |
Definition at line 2134 of file lcformat.c.
Referenced by test_EnumTimeFormatsA(), and test_EnumTimeFormatsW().
BOOL WINAPI EnumTimeFormatsW | ( | TIMEFMT_ENUMPROCW | proc, |
LCID | lcid, | ||
DWORD | flags | ||
) |
Definition at line 2157 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 2444 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 2499 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 1496 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 1578 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 936 of file lcformat.c.
Referenced by _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 993 of file lcformat.c.
Referenced by CZipFolder::_GetFileTimeString(), _ILGetFileDate(), _wstrdate(), add_cert_to_list(), add_cert_to_view(), add_date_string_to_control(), AddUserProfile(), Date_toLocaleDateString(), Date_toLocaleString(), datetime_proc(), EnumEventsThread(), fill_datetime_information(), format_long_date(), FormatDateTime(), get_property_row(), GetFileModifyTime(), GetFileTimeString(), CFileDefExt::GetFileTimeString(), CShellLink::Load(), MONTHCAL_PaintTitle(), MONTHCAL_PaintTodayTitle(), CAttributesDialog::OnInitDialog(), OnInitSecurityDlg(), PrintDateTime(), CInstalledApplicationInfo::RetrieveInstallDate(), set_print_template(), SHFormatDateTimeW(), START_TEST(), test_GetDateFormatW(), test_SHFormatDateTimeW(), tmToStr(), txt_export_class_and_last_write(), 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 1130 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 1212 of file lcformat.c.
Referenced by AddCommasW(), format_size(), FormatBytes(), FormatDouble(), FormatInt(), FormatInteger(), GetNumberFormatA(), Int64ToString(), 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 1044 of file lcformat.c.
Referenced by _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 1093 of file lcformat.c.
Referenced by CZipFolder::_GetFileTimeString(), _ILGetFileDate(), _wstrtime(), Date_toLocaleString(), Date_toLocaleTimeString(), datetime_proc(), EnumEventsThread(), fill_datetime_information(), FormatDateTime(), get_property_row(), GetFileModifyTime(), GetFileTimeString(), CFileDefExt::GetFileTimeString(), InitializeSystemPage(), CAttributesDialog::OnInitDialog(), OnInitSecurityDlg(), PrintDateTime(), PrintLocalTime(), SHFormatDateTimeW(), test_SHFormatDateTimeW(), tmToStr(), txt_export_class_and_last_write(), UpdateLanStatusUiDlg(), UpdateLocaleSample(), UpdateNTPStatus(), BtrfsScrub::UpdateTextBox(), UpdateTimeSample(), VarBstrFromDate(), WherePrintPath(), and XCOPY_ParseCommandLine().
|
static |
Definition at line 2223 of file lcformat.c.
Referenced by EnumCalendarInfoA(), EnumCalendarInfoExA(), EnumCalendarInfoExW(), and EnumCalendarInfoW().
|
static |
Definition at line 1914 of file lcformat.c.
Referenced by EnumDateFormatsA(), EnumDateFormatsExA(), EnumDateFormatsExW(), and EnumDateFormatsW().
|
static |
Definition at line 2077 of file lcformat.c.
Referenced by EnumTimeFormatsA(), and EnumTimeFormatsW().
|
static |
Definition at line 843 of file lcformat.c.
Referenced by GetDateFormatA(), and GetTimeFormatA().
|
static |
Definition at line 414 of file lcformat.c.
Referenced by GetDateFormatW(), GetTimeFormatW(), and NLS_GetDateTimeFormatA().
|
static |
Definition at line 192 of file lcformat.c.
Referenced by GetCalendarInfoA(), GetCurrencyFormatA(), GetCurrencyFormatW(), GetNumberFormatA(), GetNumberFormatW(), NLS_GetDateTimeFormatA(), and NLS_GetDateTimeFormatW().
Definition at line 142 of file lcformat.c.
Referenced by NLS_EnumCalendarInfo().
Definition at line 167 of file lcformat.c.
Definition at line 364 of file lcformat.c.
Referenced by GetCalendarInfoA(), GetCurrencyFormatA(), GetNumberFormatA(), and NLS_GetDateTimeFormatA().
Definition at line 2830 of file lcformat.c.
Definition at line 2842 of file lcformat.c.
Referenced by SetMaxDate().
WINE_DEFAULT_DEBUG_CHANNEL | ( | nls | ) |
|
static |
Definition at line 123 of file lcformat.c.
Referenced by NLS_GetFormats().
|
static |
Definition at line 124 of file lcformat.c.