add INTL_GetCharSetID from 4.5 tree

This commit is contained in:
ftang%netscape.com 1998-09-04 03:46:31 +00:00
Родитель 5669241c60
Коммит 69e9053020
2 изменённых файлов: 30 добавлений и 0 удалений

Просмотреть файл

@ -2692,6 +2692,30 @@ INTL_ResourceCharSet(void);
/*@}*/
/*=======================================================*/
/* Definition for the charset ID selector.
*/
typedef enum {
INTL_FileNameCsidSel = 1,
INTL_DefaultTextWidgetCsidSel = 2
} INTL_CharSetID_Selector;
/* Typedef for charset ID.
*/
typedef int16 INTLCharSetID;
/**
* Get charset ID using a given selector.
*
* Using a given selector, this returns a charset ID.
* Designed to retrieve a non-context dependent charset ID (e.g file system).
*
* @param selector Specification for a charset ID to get.
* @return Charset ID for the input selector. Returns CS_DEFUALT in case of error (e.g. selector invalid).
*/
INTLCharSetID INTL_GetCharSetID(INTL_CharSetID_Selector selector);
XP_END_PROTOS
#endif /* INTL_LIBI18N_H */

Просмотреть файл

@ -1374,3 +1374,9 @@ void INTL_SetCCCCvtflag_SendHankakuKana(CCCDataObject obj, XP_Bool flag)
}
}
#endif /* MOZ_MAIL_NEWS */
INTLCharSetID INTL_GetCharSetID(INTL_CharSetID_Selector selector)
{
return FE_GetCharSetID(selector);
}