mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Unified line endings.
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
#include "crt.h"
|
||||
#include "stream.h"
|
||||
#include "stream.h"
|
||||
#include <iostream>
|
||||
|
||||
namespace YAML
|
||||
{
|
||||
int Stream::pos() const
|
||||
{
|
||||
return input.tellg();
|
||||
}
|
||||
|
||||
char Stream::peek()
|
||||
{
|
||||
return input.peek();
|
||||
}
|
||||
|
||||
Stream::operator bool()
|
||||
{
|
||||
return input.good();
|
||||
int Stream::pos() const
|
||||
{
|
||||
return input.tellg();
|
||||
}
|
||||
|
||||
|
||||
char Stream::peek()
|
||||
{
|
||||
return input.peek();
|
||||
}
|
||||
|
||||
Stream::operator bool()
|
||||
{
|
||||
return input.good();
|
||||
}
|
||||
|
||||
// get
|
||||
// . Extracts a character from the stream and updates our position
|
||||
char Stream::get()
|
||||
@@ -48,6 +48,6 @@ namespace YAML
|
||||
{
|
||||
for(int i=0;i<n;i++)
|
||||
get();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user