chromium/third_party/pdfium/xfa/fxfa/parser/xfa_utils.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/xfa_utils.h"

#include <algorithm>
#include <vector>

#include "core/fxcrt/cfx_memorystream.h"
#include "core/fxcrt/check.h"
#include "core/fxcrt/fx_codepage.h"
#include "core/fxcrt/fx_extension.h"
#include "core/fxcrt/widetext_buffer.h"
#include "core/fxcrt/xml/cfx_xmlchardata.h"
#include "core/fxcrt/xml/cfx_xmlelement.h"
#include "core/fxcrt/xml/cfx_xmlnode.h"
#include "core/fxcrt/xml/cfx_xmltext.h"
#include "fxjs/xfa/cjx_object.h"
#include "xfa/fxfa/parser/cxfa_document.h"
#include "xfa/fxfa/parser/cxfa_localemgr.h"
#include "xfa/fxfa/parser/cxfa_measurement.h"
#include "xfa/fxfa/parser/cxfa_node.h"
#include "xfa/fxfa/parser/cxfa_ui.h"
#include "xfa/fxfa/parser/cxfa_value.h"
#include "xfa/fxfa/parser/xfa_basic_data.h"

namespace {

const char kFormNS[] =;

WideString ExportEncodeAttribute(const WideString& str) {}

bool IsXMLValidChar(wchar_t ch) {}

WideString ExportEncodeContent(const WideString& str) {}

bool AttributeSaveInDataModel(CXFA_Node* pNode, XFA_Attribute eAttribute) {}

bool ContentNodeNeedtoExport(CXFA_Node* pContentNode) {}

WideString SaveAttribute(CXFA_Node* pNode,
                         XFA_Attribute eName,
                         WideStringView wsName,
                         bool bProto) {}

void RegenerateFormFile_Changed(CXFA_Node* pNode,
                                WideTextBuffer& buf,
                                bool bSaveXML) {}

void RegenerateFormFile_Container(CXFA_Node* pNode,
                                  const RetainPtr<IFX_SeekableStream>& pStream,
                                  bool bSaveXML) {}

WideString RecognizeXFAVersionNumber(CXFA_Node* pTemplateRoot) {}

}  // namespace

CXFA_LocaleValue XFA_GetLocaleValue(const CXFA_Node* pNode) {}

CXFA_LocaleValue::ValueType XFA_GetLocaleValueType(XFA_Element element) {}

bool XFA_FDEExtension_ResolveNamespaceQualifier(CFX_XMLElement* pNode,
                                                const WideString& wsQualifier,
                                                WideString* wsNamespaceURI) {}

void XFA_DataExporter_DealWithDataGroupNode(CXFA_Node* pDataNode) {}

void XFA_DataExporter_RegenerateFormFile(
    CXFA_Node* pNode,
    const RetainPtr<IFX_SeekableStream>& pStream,
    bool bSaveXML) {}

bool XFA_FieldIsMultiListBox(const CXFA_Node* pFieldNode) {}

int32_t XFA_MapRotation(int32_t nRotation) {}

void XFA_EventErrorAccumulate(XFA_EventError* pAcc, XFA_EventError eNew) {}