本文整理匯總了C++中CreateTableEncoder函數的典型用法代碼示例。如果您正苦於以下問題:C++ CreateTableEncoder函數的具體用法?C++ CreateTableEncoder怎麽用?C++ CreateTableEncoder使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了CreateTableEncoder函數的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: nsUnicodeToMacHebrewConstructor
NS_METHOD
nsUnicodeToMacHebrewConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateTableEncoder(u1ByteCharset,
(uMappingTable*) &g_ufMappingTable, 1,
aOuter, aIID, aResult);
}
示例2: nsUnicodeToISO88596Constructor
nsresult
nsUnicodeToISO88596Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateTableEncoder(u1ByteCharset,
(uMappingTable*) &g_ufMappingTable, 1,
aOuter, aIID, aResult);
}
示例3: nsUnicodeToMacFarsiConstructor
NS_METHOD
nsUnicodeToMacFarsiConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateTableEncoder((uShiftTable*) &g_ufShiftTable,
(uMappingTable*) &g_ufMappingTable, 1,
aOuter, aIID, aResult);
}
示例4: nsUnicodeToT61Constructor
NS_METHOD
nsUnicodeToT61Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateTableEncoder(uMultibytesCharset,
(uShiftOutTable*) &g_T61ShiftOutTable,
(uMappingTable*) &g_T61MappingTable, 2,
aOuter, aIID, aResult);
}
示例5: nsUnicodeToSJISConstructor
NS_METHOD
nsUnicodeToSJISConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateTableEncoder((uShiftTable*) &g_SJISShiftTable,
(uMappingTable*) &g_SJISMappingTable,
2 /* max length = src * 2 */,
aOuter, aIID, aResult);
}
示例6: nsUnicodeToCP1251Constructor
nsresult
nsUnicodeToCP1251Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
static const uint16_t g_ufMappingTable[] = {
#include "cp1251.uf"
};
return CreateTableEncoder(u1ByteCharset,
(uMappingTable*) &g_ufMappingTable, 1,
aOuter, aIID, aResult);
}
示例7: CreateTableEncoder
NS_METHOD
CreateTableEncoder(uScanClassID aScanClass,
uMappingTable * aMappingTable,
uint32_t aMaxLengthFactor,
nsISupports* aOuter,
REFNSIID aIID,
void** aResult)
{
return CreateTableEncoder(aScanClass, nullptr,
aMappingTable, aMaxLengthFactor,
aOuter, aIID, aResult);
}
示例8: nsUnicodeToAsciiConstructor
nsresult
nsUnicodeToAsciiConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
static const uint16_t g_ufMappingTable[] = {
0x0001, 0x0004, 0x0005, 0x0008, 0x0000, 0x0000, 0x007F, 0x0000
};
return CreateTableEncoder(u1ByteCharset,
(uMappingTable*) &g_ufMappingTable, 1,
aOuter, aIID, aResult);
}