FreeBASIC  0.91.0
drv_intl_get.c
Go to the documentation of this file.
1 /* get i18n data */
2 
3 #include "../fb.h"
4 #include "fb_private_intl.h"
5 
6 const char *fb_DrvIntlGet( eFbIntlIndex Index )
7 {
8  static DOS_COUNTRY_INFO_GENERAL Info;
9  if( !fb_hIntlGetInfo( &Info ) )
10  return NULL;
11 
12  switch( Index ) {
13  case eFIL_DateDivider:
14  return Info.date_sep;
15  case eFIL_TimeDivider:
16  return Info.time_sep;
18  return Info.decimal_sep;
20  return Info.thousands_sep;
21  }
22 
23  return NULL;
24 }