當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。