|
ReactOS 0.4.16-dev-2284-g3529151
|
#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 |
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 |
Variables | |
| static CRITICAL_SECTION | NLS_FormatsCS = { &NLS_FormatsCS_debug, -1, 0, 0, 0, 0 } |
| static CRITICAL_SECTION_DEBUG | NLS_FormatsCS_debug |
Definition at line 1392 of file lcformat.c.
Definition at line 1393 of file lcformat.c.
Definition at line 1394 of file lcformat.c.
Definition at line 1391 of file lcformat.c.
Definition at line 1389 of file lcformat.c.
Definition at line 1390 of file lcformat.c.
| #define CF_PARENS 0x1 /* Parentheses */ |
Definition at line 1388 of file lcformat.c.
Definition at line 82 of file lcformat.c.
| #define DATE_FORMAT_FLAGS (DATE_DATEVARSONLY) |
Definition at line 407 of file lcformat.c.
Definition at line 179 of file lcformat.c.
Definition at line 182 of file lcformat.c.
Definition at line 114 of file lcformat.c.
Definition at line 121 of file lcformat.c.
Definition at line 111 of file lcformat.c.
Definition at line 118 of file lcformat.c.
Definition at line 120 of file lcformat.c.
Definition at line 110 of file lcformat.c.
Definition at line 115 of file lcformat.c.
Definition at line 112 of file lcformat.c.
Definition at line 119 of file lcformat.c.
Definition at line 122 of file lcformat.c.
Definition at line 113 of file lcformat.c.
Definition at line 116 of file lcformat.c.
Definition at line 400 of file lcformat.c.
Definition at line 399 of file lcformat.c.
Definition at line 401 of file lcformat.c.
| #define NF_DIGITS 0x4 /* '0'-'9' found */ |
Definition at line 1114 of file lcformat.c.
Definition at line 1115 of file lcformat.c.
| #define NF_ISNEGATIVE 0x1 /* '-' found */ |
Definition at line 1112 of file lcformat.c.
| #define NF_ISREAL 0x2 /* '.' found */ |
Definition at line 1113 of file lcformat.c.
Definition at line 1116 of file lcformat.c.
| #define NLS_NEG_LEFT 1 /* "-1.1" */ |
Definition at line 1120 of file lcformat.c.
| #define NLS_NEG_LEFT_SPACE 2 /* "- 1.1" */ |
Definition at line 1121 of file lcformat.c.
| #define NLS_NEG_PARENS 0 /* "(1.1)" */ |
Definition at line 1119 of file lcformat.c.
| #define NLS_NEG_RIGHT 3 /* "1.1-" */ |
Definition at line 1122 of file lcformat.c.
| #define NLS_NEG_RIGHT_SPACE 4 /* "1.1 -" */ |
Definition at line 1123 of file lcformat.c.
| #define NLS_NUM_CACHED_STRINGS 57 |
Definition at line 94 of file lcformat.c.
| #define TIME_FORMAT_FLAGS |
Definition at line 409 of file lcformat.c.
Definition at line 83 of file lcformat.c.
| typedef struct _NLS_FORMAT_NODE NLS_FORMAT_NODE |
| BOOL WINAPI EnumCalendarInfoExW | ( | CALINFO_ENUMPROCEXW | calinfoproc, |
| LCID | locale, | ||
| CALID | calendar, | ||
| CALTYPE | caltype | ||
| ) |
Definition at line 2101 of file lcformat.c.
| BOOL WINAPI EnumCalendarInfoW | ( | CALINFO_ENUMPROCW | calinfoproc, |
| LCID | locale, | ||
| CALID | calendar, | ||
| CALTYPE | caltype | ||
| ) |
Definition at line 2077 of file lcformat.c.
| BOOL WINAPI EnumDateFormatsExA | ( | DATEFMT_ENUMPROCEXA | proc, |
| LCID | lcid, | ||
| DWORD | flags | ||
| ) |
Definition at line 1788 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 1820 of file lcformat.c.
Referenced by InitLongDateCB(), and InitShortDateCB().
| BOOL WINAPI EnumTimeFormatsW | ( | TIMEFMT_ENUMPROCW | proc, |
| LCID | lcid, | ||
| DWORD | flags | ||
| ) |
Definition at line 1906 of file lcformat.c.
Referenced by InitTimeFormatCB().
| int WINAPI GetCalendarInfoW | ( | LCID | Locale, |
| CALID | Calendar, | ||
| CALTYPE | CalType, | ||
| LPWSTR | lpCalData, | ||
| int | cchData, | ||
| LPDWORD | lpValue | ||
| ) |
Definition at line 2144 of file lcformat.c.
Referenced by GetCalendarInfoA(), GetMaxDate(), NLS_EnumCalendarInfo(), and START_TEST().
| INT WINAPI GetCurrencyFormatW | ( | LCID | lcid, |
| DWORD | dwFlags, | ||
| LPCWSTR | lpszValue, | ||
| const CURRENCYFMTW * | lpFormat, | ||
| LPWSTR | lpCurrencyStr, | ||
| int | cchOut | ||
| ) |
Definition at line 1401 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 944 of file lcformat.c.
Referenced by _strdate(), ExtCabCallback(), filetime_to_str(), CFontExt::GetDetailsOf(), HTTPREQ_QueryOption(), START_TEST(), strftime_date(), test_cert_struct_string(), 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 1001 of file lcformat.c.
Referenced by __acrt_GetDateFormatEx(), CZipFolder::_GetFileTimeString(), _wstrdate(), add_cert_to_list(), add_cert_to_view(), add_date_string_to_control(), AddUserProfile(), Date_toLocaleDateString(), Date_toLocaleString(), datetime_proc(), DisplayServerStatistics(), DisplayWorkstationStatistics(), EnumEventsThread(), fill_datetime_information(), format_long_date(), CFSFolder::FormatDateTime(), FormatDateTime(), get_property_row(), GetFileModifyTime(), GetFileTimeString(), CFileDefExt::GetFileTimeString(), CShellLink::Load(), MONTHCAL_PaintTitle(), MONTHCAL_PaintTodayTitle(), CAttributesDialog::OnInitDialog(), OnInitSecurityDlg(), CCertMgrProperties::OnStoreChanged(), PrintDateTime(), CInstalledApplicationInfo::RetrieveInstallDate(), set_print_template(), SHFormatDateTimeW(), START_TEST(), test_SHFormatDateTimeW(), timeToStr(), tmToStr(), txt_export_class_and_last_write(), UpdateDateLocaleSamples(), UpdateLocaleSample(), UpdateNTPStatus(), BtrfsScrub::UpdateTextBox(), WherePrintPath(), and XCOPY_ParseCommandLine().
| INT WINAPI GetNumberFormatW | ( | LCID | lcid, |
| DWORD | dwFlags, | ||
| LPCWSTR | lpszValue, | ||
| const NUMBERFMTW * | lpFormat, | ||
| LPWSTR | lpNumberStr, | ||
| int | cchOut | ||
| ) |
Definition at line 1130 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 1052 of file lcformat.c.
Referenced by _strtime(), ExtCabCallback(), CFontExt::GetDetailsOf(), HTTPREQ_QueryOption(), strftime_time(), test_cert_struct_string(), and test_SHFormatDateTimeA().
| INT WINAPI GetTimeFormatW | ( | LCID | lcid, |
| DWORD | dwFlags, | ||
| const SYSTEMTIME * | lpTime, | ||
| LPCWSTR | lpFormat, | ||
| LPWSTR | lpTimeStr, | ||
| INT | cchOut | ||
| ) |
Definition at line 1101 of file lcformat.c.
Referenced by __acrt_GetTimeFormatEx(), CZipFolder::_GetFileTimeString(), _wstrtime(), Date_toLocaleString(), Date_toLocaleTimeString(), datetime_proc(), DisplayServerStatistics(), DisplayWorkstationStatistics(), EnumEventsThread(), fill_datetime_information(), CFSFolder::FormatDateTime(), FormatDateTime(), get_property_row(), GetFileModifyTime(), GetFileTimeString(), CFileDefExt::GetFileTimeString(), InitializeSystemPage(), CAttributesDialog::OnInitDialog(), OnInitSecurityDlg(), PrintDateTime(), PrintLocalTime(), SHFormatDateTimeW(), test_SHFormatDateTimeW(), timeToStr(), tmToStr(), txt_export_class_and_last_write(), UpdateLanStatusUiDlg(), UpdateLocaleSample(), UpdateNTPStatus(), BtrfsScrub::UpdateTextBox(), UpdateTimeSample(), VarBstrFromDate(), WherePrintPath(), and XCOPY_ParseCommandLine().
| BOOL NLS_EnumCalendarInfo | ( | const struct enumcalendar_context * | ctxt | ) |
Definition at line 1959 of file lcformat.c.
Referenced by EnumCalendarInfoA(), EnumCalendarInfoExA(), EnumCalendarInfoExW(), and EnumCalendarInfoW().
| BOOL NLS_EnumDateFormats | ( | const struct enumdateformats_context * | ctxt | ) |
Definition at line 1720 of file lcformat.c.
Referenced by EnumDateFormatsA(), EnumDateFormatsExA(), EnumDateFormatsExW(), and EnumDateFormatsW().
| BOOL NLS_EnumTimeFormats | ( | struct enumtimeformats_context * | ctxt | ) |
Definition at line 1852 of file lcformat.c.
Referenced by EnumTimeFormatsA(), and EnumTimeFormatsW().
Definition at line 361 of file lcformat.c.
Referenced by GetCalendarInfoA(), GetCurrencyFormatA(), and GetNumberFormatA().
|
static |
Definition at line 851 of file lcformat.c.
Referenced by GetDateFormatA(), and GetTimeFormatA().
|
static |
Definition at line 422 of file lcformat.c.
Referenced by GetDateFormatW(), GetTimeFormatW(), and NLS_GetDateTimeFormatA().
|
static |
Definition at line 190 of file lcformat.c.
Referenced by GetCurrencyFormatW(), GetNumberFormatW(), NLS_GetAnsiCodePage(), NLS_GetDateTimeFormatA(), and NLS_GetDateTimeFormatW().
Definition at line 140 of file lcformat.c.
Referenced by NLS_EnumCalendarInfo().
Definition at line 165 of file lcformat.c.
Definition at line 372 of file lcformat.c.
Referenced by GetCalendarInfoA(), GetCurrencyFormatA(), GetNumberFormatA(), and NLS_GetDateTimeFormatA().
Definition at line 2477 of file lcformat.c.
Referenced by SetMaxDate().
| WINE_DEFAULT_DEBUG_CHANNEL | ( | nls | ) |
|
static |
Definition at line 125 of file lcformat.c.
Referenced by NLS_GetFormats().
|
static |
Definition at line 126 of file lcformat.c.