add MappingCache

This commit is contained in:
ftang@netscape.com
1999-05-10 23:19:21 +00:00
parent c2600d7806
commit 6654bcfcf3
9 changed files with 166 additions and 154 deletions

View File

@@ -23,6 +23,8 @@
#include "nsIUnicodeEncodeHelper.h"
#include "nsUnicodeEncodeHelper.h"
#include "nsUConvDll.h"
#include "nsIMappingCache.h"
#include "nsMappingCache.h"
//----------------------------------------------------------------------
// Class nsUnicodeEncodeHelper [declaration]
@@ -59,6 +61,10 @@ public:
NS_IMETHOD ConvertByMultiTable(const PRUnichar * aSrc, PRInt32 * aSrcLength,
char * aDest, PRInt32 * aDestLength, PRInt32 aTableCount,
uShiftTable ** aShiftTable, uMappingTable ** aMappingTable);
NS_IMETHOD CreateCache(nsMappingCacheType aType, nsIMappingCache* aResult);
NS_IMETHOD DestroyCache(nsIMappingCache aCache);
};
//----------------------------------------------------------------------
@@ -164,6 +170,16 @@ NS_IMETHODIMP nsUnicodeEncodeHelper::ConvertByMultiTable(
return res;
}
NS_IMETHODIMP nsUnicodeEncodeHelper::CreateCache(nsMappingCacheType aType, nsIMappingCache* aResult)
{
return nsMappingCache::CreateCache(aType, aResult);
}
NS_IMETHODIMP nsUnicodeEncodeHelper::DestroyCache(nsIMappingCache aCache)
{
return nsMappingCache::DestroyCache(aCache);
}
//----------------------------------------------------------------------
// Class nsEncodeHelperFactory [implementation]