Ignore:
Timestamp:
Sep 3, 2000, 8:05:40 PM (25 years ago)
Author:
phaller
Message:

WINE NLS sync

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/stubs.cpp

    r3799 r4174  
    1 /* $Id: stubs.cpp,v 1.23 2000-07-04 08:41:13 sandervl Exp $ */
    21
    32/*
     
    484483}
    485484
    486 
    487 
    488 /*****************************************************************************
    489  * Name      : LCID WIN32API ConvertDefaultLocale
    490  * Purpose   : The ConvertDefaultLocale function converts a special default
    491  *             locale value to an actual locale identifier.
    492  * Parameters: LCID Locale   special default locale value to be converted
    493  *             Value                   Description
    494  *             LOCALE_SYSTEM_DEFAULT   The system's default locale.
    495  *             LOCALE_USER_DEFAULT     The current user's default locale.
    496  *             zero                The language-neutral default locale.
    497  *                                     This is equivalent to the locale identifier
    498  *                                     created by calling the MAKELCID macro
    499  *                                     with a language identifier consisting
    500  *                                     of the LANG_NEUTRAL and SUBLANG_NEUTRAL
    501  *                                     values.
    502  *             Any sublanguage neutral default locale
    503  *                                     A locale identifier constructed by
    504  *                                     calling MAKELCID with a language
    505  *                                     identifier consisting of a primary
    506  *                                     language value, such as LANG_ENGLISH,
    507  *                                     and the SUBLANG_NEUTRAL value.
    508  *
    509  * Variables :
    510  * Result    : If the function succeeds, the return value is the appropriate
    511  *             actual locale identifier.
    512  *             If the function fails, the return value is the Locale parameter.
    513  *             The function fails when Locale is not one of the special
    514  *             default locale values listed above.
    515  * Remark    : A call to ConvertDefaultLocale(LOCALE_SYSTEM_DEFAULT)
    516  *              is equivalent to a call to GetSystemDefaultLCID.
    517  *             A call to ConvertDefaultLocale(LOCALE_USER_DEFAULT)
    518  *              is equivalent to a call to GetUserDefaultLCID.
    519  * Status    : UNTESTED STUB
    520  *
    521  * Author    : Markus Montkowski [Thu, 1998/05/19 11:46]
    522  *****************************************************************************/
    523 
    524 LCID WIN32API ConvertDefaultLocale(LCID Locale)
    525 {
    526 
    527   dprintf(("KERNEL32: ConvertDefaultLocale(%08x) partly implmented - returns input\n",
    528            Locale
    529           ));
    530 
    531   return (Locale);
    532 }
    533485
    534486/*****************************************************************************
     
    1014966}
    1015967
    1016 /*****************************************************************************
    1017  * Name      : BOOL WIN32API EnumCalendarInfoA
    1018  * Purpose   : The EnumCalendarInfoA function enumerates calendar information
    1019  *             for a specified locale. The CalType parameter specifies the type
    1020  *             of calendar information to enumerate. The function returns the
    1021  *             specified calendar information for all applicable calendars for
    1022  *             the locale, or for a single requested calendar, depending on the
    1023  *             value of the Calendar parameter.
    1024  *             The EnumCalendarInfo function enumerates the calendar information
    1025  *             by calling an application-defined callback function. It passes
    1026  *             the callback function a pointer to a string buffer containing
    1027  *             the requested calendar information. This continues until either
    1028  *             the last applicable calendar is found or the callback function
    1029  *             returns FALSE.
    1030  * Parameters: CALINFO_ENUMPROCA lpCalInfoEnumProc  pointer to enumeration
    1031  *                                                  callback function
    1032  *             LCID Locale      locale whose calendar information is of interest
    1033  *             CALID Calendar   calendar whose information is of interest
    1034  *             CALTYPE CalType  type of calendar information of interest
    1035  * Variables :
    1036  * Result    : If the function succeeds, the return value is nonzero.
    1037  *             If the function fails, the return value is zero
    1038  * Remark    :
    1039  * Status    : UNTESTED STUB
    1040  *
    1041  * Author    : Markus Montkowski [Tha, 1998/05/21 17:46]
    1042  *****************************************************************************/
    1043 
    1044 BOOL WIN32API EnumCalendarInfoA(CALINFO_ENUMPROCA lpCalInfoEnumProc,
    1045                                    LCID              Locale,
    1046                                    CALID             Calendar,
    1047                                    CALTYPE           CalType)
    1048 {
    1049 
    1050   dprintf(("KERNEL32: EnumCalendarInfoA(%08x,%08x,%08x,%08x)not implemented\n",
    1051            lpCalInfoEnumProc,
    1052            Locale,
    1053            Calendar,
    1054            CalType
    1055           ));
    1056 
    1057   return (FALSE);
    1058 }
    1059 
    1060 /*****************************************************************************
    1061  * Name      : BOOL WIN32API EnumCalendarInfoW
    1062  * Purpose   : The EnumCalendarInfoW function enumerates calendar information
    1063  *             for a specified locale. The CalType parameter specifies the type
    1064  *             of calendar information to enumerate. The function returns the
    1065  *             specified calendar information for all applicable calendars for
    1066  *             the locale, or for a single requested calendar, depending on the
    1067  *             value of the Calendar parameter.
    1068  *             The EnumCalendarInfo function enumerates the calendar information
    1069  *             by calling an application-defined callback function. It passes
    1070  *             the callback function a pointer to a string buffer containing
    1071  *             the requested calendar information. This continues until either
    1072  *             the last applicable calendar is found or the callback function
    1073  *             returns FALSE.
    1074  * Parameters: CALINFO_ENUMPROCW lpCalInfoEnumProc  pointer to enumeration
    1075  *                                                  callback function
    1076  *             LCID Locale      locale whose calendar information is of interest
    1077  *             CALID Calendar   calendar whose information is of interest
    1078  *             CALTYPE CalType  type of calendar information of interest
    1079  * Variables :
    1080  * Result    : If the function succeeds, the return value is nonzero.
    1081  *             If the function fails, the return value is zero
    1082  * Remark    :
    1083  * Status    : UNTESTED STUB
    1084  *
    1085  * Author    : Markus Montkowski [Tha, 1998/05/21 17:46]
    1086  *****************************************************************************/
    1087 
    1088 BOOL WIN32API EnumCalendarInfoW(CALINFO_ENUMPROCW lpCalInfoEnumProc,
    1089                                    LCID              Locale,
    1090                                    CALID             Calendar,
    1091                                    CALTYPE           CalType)
    1092 {
    1093 
    1094   dprintf(("KERNEL32: EnumCalendarInfoW(%08x,%08x,%08x,%08x)not implemented\n",
    1095            lpCalInfoEnumProc,
    1096            Locale,
    1097            Calendar,
    1098            CalType
    1099           ));
    1100 
    1101   return (FALSE);
    1102 }
    1103968
    1104969/*****************************************************************************
     
    13801245          ));
    13811246
    1382 }
    1383 
    1384 
    1385 /*****************************************************************************
    1386  * Name      : int GetCurrencyFormatA
    1387  * Purpose   : The GetCurrencyFormatA function formats a number string as a
    1388  *             currency string for a specified locale.
    1389  * Parameters: LCID    Locale   locale for which currency string is to be formatted
    1390  *             DWORD   dwFlags  bit flag that controls the function's operation
    1391  *             LPCTSTR lpValue  pointer to input number string
    1392  *             CONST CURRENCYFMT *lpFormat pointer to a formatting information structure
    1393  *             LPTSTR  lpCurrencyStr       pointer to output buffer
    1394  *             int     cchCurrency         size of output buffer
    1395  * Variables :
    1396  * Result    : number of bytes written to buffer
    1397  * Remark    :
    1398  * Status    : UNTESTED STUB
    1399  *
    1400  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    1401  *****************************************************************************/
    1402 
    1403 int WIN32API GetCurrencyFormatA(LCID              Locale,
    1404                                 DWORD             dwFlags,
    1405                                 LPCTSTR           lpValue,
    1406                                 CONST CURRENCYFMTA *lpFormat,
    1407                                 LPTSTR            lpCurrencyStr,
    1408                                 int               cchCurrency)
    1409 {
    1410   dprintf(("KERNEL32: GetCurrencyFormatA(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh) not implemented\n",
    1411            Locale,
    1412            dwFlags,
    1413            lpValue,
    1414            lpFormat,
    1415            lpCurrencyStr,
    1416            cchCurrency));
    1417 
    1418   if(lpValue && lpCurrencyStr) {
    1419         lstrcpyA(lpCurrencyStr, lpValue);
    1420         return lstrlenA(lpCurrencyStr);
    1421   }
    1422   return (0);
    1423 }
    1424 
    1425 
    1426 /*****************************************************************************
    1427  * Name      : int GetCurrencyFormatW
    1428  * Purpose   : The GetCurrencyFormatW function formats a number string as a
    1429  *             currency string for a specified locale.
    1430  * Parameters: LCID    Locale   locale for which currency string is to be formatted
    1431  *             DWORD   dwFlags  bit flag that controls the function's operation
    1432  *             LPCWSTR lpValue  pointer to input number string
    1433  *             CONST CURRENCYFMT *lpFormat pointer to a formatting information structure
    1434  *             LPWSTR  lpCurrencyStr       pointer to output buffer
    1435  *             int     cchCurrency         size of output buffer
    1436  * Variables :
    1437  * Result    : number of bytes written to buffer
    1438  * Remark    :
    1439  * Status    : UNTESTED STUB
    1440  *
    1441  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    1442  *****************************************************************************/
    1443 
    1444 int WIN32API GetCurrencyFormatW(LCID              Locale,
    1445                                 DWORD             dwFlags,
    1446                                 LPCWSTR           lpValue,
    1447                                 CONST CURRENCYFMTW *lpFormat,
    1448                                 LPWSTR            lpCurrencyStr,
    1449                                 int               cchCurrency)
    1450 {
    1451   dprintf(("KERNEL32: GetCurrencyFormatW(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh) not implemented\n",
    1452            Locale,
    1453            dwFlags,
    1454            lpValue,
    1455            lpFormat,
    1456            lpCurrencyStr,
    1457            cchCurrency));
    1458 
    1459   if(lpValue && lpCurrencyStr) {
    1460         lstrcpyW(lpCurrencyStr, lpValue);
    1461         return lstrlenW(lpCurrencyStr);
    1462   }
    1463 
    1464   return (0);
    14651247}
    14661248
Note: See TracChangeset for help on using the changeset viewer.