当前位置: 首页>>代码示例>>C++>>正文


C++ CreateTableEncoder函数代码示例

本文整理汇总了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);
}
开发者ID:amyvmiwei,项目名称:firefox,代码行数:8,代码来源:nsUnicodeToMacHebrew.cpp

示例2: nsUnicodeToISO88596Constructor

nsresult
nsUnicodeToISO88596Constructor(nsISupports *aOuter, REFNSIID aIID,
                               void **aResult) 
{
  return CreateTableEncoder(u1ByteCharset,
                            (uMappingTable*) &g_ufMappingTable, 1,
                            aOuter, aIID, aResult);
}
开发者ID:FunkyVerb,项目名称:devtools-window,代码行数:8,代码来源:nsUnicodeToISO88596.cpp

示例3: nsUnicodeToMacFarsiConstructor

NS_METHOD
nsUnicodeToMacFarsiConstructor(nsISupports *aOuter, REFNSIID aIID,
                               void **aResult) 
{
  return CreateTableEncoder((uShiftTable*) &g_ufShiftTable, 
                            (uMappingTable*) &g_ufMappingTable, 1,
                            aOuter, aIID, aResult);
}
开发者ID:rn10950,项目名称:RetroZilla,代码行数:8,代码来源:nsUnicodeToMacFarsi.cpp

示例4: nsUnicodeToT61Constructor

NS_METHOD
nsUnicodeToT61Constructor(nsISupports *aOuter, REFNSIID aIID,
                          void **aResult) 
{
  return CreateTableEncoder(uMultibytesCharset,
                            (uShiftOutTable*) &g_T61ShiftOutTable, 
                            (uMappingTable*) &g_T61MappingTable, 2,
                            aOuter, aIID, aResult);
}
开发者ID:EdgarChen,项目名称:mozilla-cvs-history,代码行数:9,代码来源:nsUnicodeToT61.cpp

示例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);
}
开发者ID:rn10950,项目名称:RetroZilla,代码行数:9,代码来源:nsUnicodeToSJIS.cpp

示例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);
}
开发者ID:Andrel322,项目名称:gecko-dev,代码行数:12,代码来源:nsUnicodeToCP1251.cpp

示例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);
}
开发者ID:AshishNamdev,项目名称:mozilla-central,代码行数:12,代码来源:nsUCConstructors.cpp

示例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);
}
开发者ID:CodeSpeaker,项目名称:gecko-dev,代码行数:12,代码来源:nsUnicodeToAscii.cpp


注:本文中的CreateTableEncoder函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。