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:
ftang%netscape.com
1998-09-04 03:45:51 +00:00
parent e9214b000b
commit bbcb9cc63c
2 changed files with 41 additions and 0 deletions

View File

@@ -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

View File

@@ -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)
{