chromium/third_party/skia/src/xml/SkDOM.cpp

/*
 * Copyright 2006 The Android Open Source Project
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "src/xml/SkDOM.h"

#include <memory>

#include "include/core/SkStream.h"
#include "include/private/base/SkTo.h"
#include "src/xml/SkXMLParser.h"
#include "src/xml/SkXMLWriter.h"

bool SkXMLParser::parse(const SkDOM& dom, const SkDOMNode* node) {}

/////////////////////////////////////////////////////////////////////////

struct SkDOMAttr {};

struct SkDOMNode {};

/////////////////////////////////////////////////////////////////////////

#define kMinChunkSize

SkDOM::SkDOM() :{}

SkDOM::~SkDOM() {}

const SkDOM::Node* SkDOM::getRootNode() const {}

const SkDOM::Node* SkDOM::getFirstChild(const Node* node, const char name[]) const {}

const SkDOM::Node* SkDOM::getNextSibling(const Node* node, const char name[]) const {}

SkDOM::Type SkDOM::getType(const Node* node) const {}

const char* SkDOM::getName(const Node* node) const {}

const char* SkDOM::findAttr(const Node* node, const char name[]) const {}

/////////////////////////////////////////////////////////////////////////////////////

const SkDOM::Attr* SkDOM::getFirstAttr(const Node* node) const {}

const SkDOM::Attr* SkDOM::getNextAttr(const Node* node, const Attr* attr) const {}

const char* SkDOM::getAttrName(const Node* node, const Attr* attr) const {}

const char* SkDOM::getAttrValue(const Node* node, const Attr* attr) const {}

/////////////////////////////////////////////////////////////////////////////////////

SkDOM::AttrIter::AttrIter(const SkDOM&, const SkDOM::Node* node) {}

const char* SkDOM::AttrIter::next(const char** value) {}

//////////////////////////////////////////////////////////////////////////////

#include "include/private/base/SkTDArray.h"
#include "src/xml/SkXMLParser.h"

static char* dupstr(SkArenaAlloc* chunk, const char src[], size_t srcLen) {}

class SkDOMParser : public SkXMLParser {};

const SkDOM::Node* SkDOM::build(SkStream& docStream) {}

///////////////////////////////////////////////////////////////////////////

static void walk_dom(const SkDOM& dom, const SkDOM::Node* node, SkXMLParser* parser) {}

const SkDOM::Node* SkDOM::copy(const SkDOM& dom, const SkDOM::Node* node) {}

SkXMLParser* SkDOM::beginParsing() {}

const SkDOM::Node* SkDOM::finishParsing() {}

//////////////////////////////////////////////////////////////////////////

int SkDOM::countChildren(const Node* node, const char elem[]) const {}

//////////////////////////////////////////////////////////////////////////

#include "include/utils/SkParse.h"

bool SkDOM::findS32(const Node* node, const char name[], int32_t* value) const {}

bool SkDOM::findScalars(const Node* node, const char name[], SkScalar value[], int count) const {}

bool SkDOM::findHex(const Node* node, const char name[], uint32_t* value) const {}

bool SkDOM::findBool(const Node* node, const char name[], bool* value) const {}

int SkDOM::findList(const Node* node, const char name[], const char list[]) const {}

bool SkDOM::hasAttr(const Node* node, const char name[], const char value[]) const {}

bool SkDOM::hasS32(const Node* node, const char name[], int32_t target) const {}

bool SkDOM::hasScalar(const Node* node, const char name[], SkScalar target) const {}

bool SkDOM::hasHex(const Node* node, const char name[], uint32_t target) const {}

bool SkDOM::hasBool(const Node* node, const char name[], bool target) const {}