chromium/extensions/browser/file_highlighter.cc

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

#include "extensions/browser/file_highlighter.h"

#include "base/check_op.h"
#include "base/containers/stack.h"

namespace extensions {

namespace {

// Increment |index| to the position of the next quote ('"') in |str|, skipping
// over any escaped quotes. If no next quote is found, |index| is set to
// std::string::npos. Assumes |index| currently points to a quote.
void QuoteIncrement(const std::string& str, size_t* index) {}

// Increment |index| by one if the next character is not a comment. Increment
// index until the end of the comment if it is a comment.
void CommentSafeIncrement(const std::string& str, size_t* index) {}

// Increment index until the end of the current "chunk"; a "chunk" is a JSON-
// style list, object, or string literal, without exceeding |end|. Assumes
// |index| currently points to a chunk's starting character ('{', '[', or '"').
void ChunkIncrement(const std::string& str, size_t* index, size_t end) {}

}  // namespace

FileHighlighter::FileHighlighter(const std::string& contents)
    :{}

FileHighlighter::~FileHighlighter() {}

std::string FileHighlighter::GetBeforeFeature() const {}

std::string FileHighlighter::GetFeature() const {}

std::string FileHighlighter::GetAfterFeature() const {}

ManifestHighlighter::ManifestHighlighter(const std::string& manifest,
                                         const std::string& key,
                                         const std::string& specific)
    :{}

ManifestHighlighter::~ManifestHighlighter() {}


void ManifestHighlighter::Parse(const std::string& key,
                                const std::string& specific) {}

bool ManifestHighlighter::FindBounds(const std::string& feature,
                                     bool enforce_at_top_level) {}

void ManifestHighlighter::FindBoundsEnd(const std::string& feature,
                                        size_t local_start) {}

SourceHighlighter::SourceHighlighter(const std::string& contents,
                                     size_t line_number)
    :{}

SourceHighlighter::~SourceHighlighter() {}

void SourceHighlighter::Parse(size_t line_number) {}

}  // namespace extensions