Changeset 108 for trunk/src/helpers/prfh.c
- Timestamp:
- Oct 13, 2001, 7:57:58 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/prfh.c
r71 r108 45 45 #include "setup.h" // code generation and debugging options 46 46 47 #define INCLUDE_PRFH_PRIVATE 47 48 #include "helpers\prfh.h" 48 49 … … 237 238 szTemp, sizeof(szTemp)-1); 238 239 return (szTemp[0]); 239 }240 241 /*242 *@@ prfhQueryCountrySettings:243 * this returns the most frequently used country settings244 * all at once into a COUNTRYSETTINGS structure (prfh.h).245 * This data corresponds to the user settings in the246 * WPS "Country" object (which writes the data in "PM_National"247 * in OS2.INI).248 *249 * In case a key cannot be found, the following (English)250 * default values are set:251 * -- ulDateFormat = 0 (English date format, mm.dd.yyyy);252 * -- ulTimeFormat = 0 (12-hour clock);253 * -- cDateSep = '/' (date separator);254 * -- cTimeSep = ':' (time separator);255 * -- cDecimal = '.' (decimal separator).256 * -- cThousands = ',' (thousands separator).257 *258 *@@added V0.9.0 [umoeller]259 *@@changed V0.9.7 (2000-12-02) [umoeller]: added cDecimal260 */261 262 VOID prfhQueryCountrySettings(PCOUNTRYSETTINGS pcs)263 {264 if (pcs)265 {266 const char *pcszApp = "PM_National";267 pcs->ulDateFormat = PrfQueryProfileInt(HINI_USER, (PSZ)pcszApp, "iDate", 0);268 pcs->ulTimeFormat = PrfQueryProfileInt(HINI_USER, (PSZ)pcszApp, "iTime", 0);269 pcs->cDateSep = prfhQueryProfileChar(HINI_USER, (PSZ)pcszApp, "sDate", '/');270 pcs->cTimeSep = prfhQueryProfileChar(HINI_USER, (PSZ)pcszApp, "sTime", ':');271 pcs->cDecimal = prfhQueryProfileChar(HINI_USER, (PSZ)pcszApp, "sDecimal", '.');272 pcs->cThousands = prfhQueryProfileChar(HINI_USER, (PSZ)pcszApp, "sThousand", ',');273 }274 240 } 275 241
Note:
See TracChangeset
for help on using the changeset viewer.