add FE_GetCharSetID from 4.5 tree
git-svn-id: svn://10.0.0.236/trunk@9321 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1105,6 +1105,28 @@ extern "C" void FE_FreeSingleByteTable(void **hres)
|
||||
::FreeResource((HGLOBAL) hres);
|
||||
}
|
||||
|
||||
|
||||
extern "C" INTLCharSetID FE_GetCharSetID(INTL_CharSetID_Selector selector)
|
||||
{
|
||||
INTLCharSetID charsetID = CS_DEFAULT;
|
||||
|
||||
switch (selector)
|
||||
{
|
||||
case INTL_FileNameCsidSel:
|
||||
case INTL_DefaultTextWidgetCsidSel:
|
||||
charsetID = (INTLCharSetID) CIntlWin::GetSystemLocaleCsid();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
#ifdef DEBUG_ricardob
|
||||
XP_ASSERT(CS_DEFAULT != charsetID);
|
||||
#endif
|
||||
|
||||
return charsetID;
|
||||
}
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
#define MAXNUMOFCSIDLIST 64
|
||||
|
||||
@@ -2884,6 +2884,25 @@ INTL_ResourceCharSet(void)
|
||||
return fe_LocaleCharSetName;
|
||||
}
|
||||
|
||||
|
||||
INTLCharSetID
|
||||
FE_GetCharSetID(INTL_CharSetID_Selector selector)
|
||||
{
|
||||
INTLCharSetID charsetID = CS_DEFAULT;
|
||||
|
||||
switch (selector)
|
||||
{
|
||||
case INTL_FileNameCsidSel:
|
||||
case INTL_DefaultTextWidgetCsidSel:
|
||||
charsetID = (INTLCharSetID) fe_LocaleCharSetID;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
XP_ASSERT(CS_DEFAULT != charsetID);
|
||||
|
||||
return charsetID;
|
||||
}
|
||||
void
|
||||
INTL_Relayout(MWContext *pContext)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user