#include "extensions/browser/file_highlighter.h"
#include "base/check_op.h"
#include "base/containers/stack.h"
namespace extensions {
namespace {
void QuoteIncrement(const std::string& str, size_t* index) { … }
void CommentSafeIncrement(const std::string& str, size_t* index) { … }
void ChunkIncrement(const std::string& str, size_t* index, size_t end) { … }
}
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) { … }
}