本文整理汇总了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);
}