chromium/third_party/pdfium/xfa/fxfa/parser/cxfa_localemgr.cpp

// Copyright 2014 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com

#include "xfa/fxfa/parser/cxfa_localemgr.h"

#include <time.h>

#include <memory>
#include <utility>

#include "core/fxcodec/data_and_bytes_consumed.h"
#include "core/fxcodec/flate/flatemodule.h"
#include "core/fxcrt/check.h"
#include "fxjs/gc/container_trace.h"
#include "fxjs/xfa/cjx_object.h"
#include "xfa/fxfa/parser/cxfa_acrobat.h"
#include "xfa/fxfa/parser/cxfa_common.h"
#include "xfa/fxfa/parser/cxfa_locale.h"
#include "xfa/fxfa/parser/cxfa_node.h"
#include "xfa/fxfa/parser/cxfa_nodelocale.h"
#include "xfa/fxfa/parser/cxfa_present.h"
#include "xfa/fxfa/parser/cxfa_xmllocale.h"
#include "xfa/fxfa/parser/xfa_utils.h"

namespace {

// These arrays are the hex encoded XML strings which define the locale.
// <locale name="en_US" desc="English(America)">
//   <calendarSymbols name="gregorian">
//     <monthNames>
//       <month>January</month>
//       <month>February</month>
//   ...
const uint8_t k_enUS_Locale[] =;

const uint8_t k_enGB_Locale[] =;

const uint8_t k_zhCN_Locale[] =;

const uint8_t k_zhTW_Locale[] =;

const uint8_t k_zhHK_Locale[] =;

const uint8_t k_jaJP_Locale[] =;

const uint8_t k_koKR_Locale[] =;

const uint8_t k_esES_Locale[] =;

const uint8_t k_esLA_Locale[] =;

const uint8_t k_deDE_Loacale[] =;

const uint8_t k_frFR_Locale[] =;

const uint8_t k_itIT_Locale[] =;

const uint8_t k_ptBR_Locale[] =;

const uint8_t k_nlNL_Locale[] =;

const uint8_t k_ruRU_Locale[] =;

CXFA_XMLLocale* GetLocaleFromBuffer(cppgc::Heap* heap,
                                    pdfium::span<const uint8_t> src_span) {}

CXFA_LocaleMgr::LangID GetLanguageID(WideString wsLanguage) {}

}  // namespace

CXFA_LocaleMgr::CXFA_LocaleMgr(cppgc::Heap* pHeap,
                               CXFA_Node* pLocaleSet,
                               WideString wsDeflcid)
    :{}

CXFA_LocaleMgr::~CXFA_LocaleMgr() = default;

void CXFA_LocaleMgr::Trace(cppgc::Visitor* visitor) const {}

GCedLocaleIface* CXFA_LocaleMgr::GetDefLocale() {}

CXFA_XMLLocale* CXFA_LocaleMgr::GetLocale(LangID lcid) {}

GCedLocaleIface* CXFA_LocaleMgr::GetLocaleByName(
    const WideString& wsLocaleName) {}

void CXFA_LocaleMgr::SetDefLocale(GCedLocaleIface* pLocale) {}

std::optional<WideString> CXFA_LocaleMgr::GetConfigLocaleName(
    CXFA_Node* pConfig) const {}