Moved the input stream, together with line/column info, into its own class, which allowed some other stuff just to pass the stream, and not have to be a member of Scanner.

This commit is contained in:
beder
2008-06-29 06:32:13 +00:00
parent 8dfb5c0ea8
commit 6efc5614ec
13 changed files with 162 additions and 142 deletions

View File

@@ -1,9 +1,14 @@
#pragma once
#include <string>
#include "regex.h"
#include "stream.h"
namespace YAML
{
void GetBlockIndentation(Stream& INPUT, int& indent, std::string& breaks, int topIndent);
std::string ScanScalar(Stream& INPUT, RegEx end, bool eatEnd, int indent, char escape, bool fold, bool eatLeadingWhitespace, bool trimTrailingSpaces, int chomp);
struct WhitespaceInfo {
WhitespaceInfo();