Added CMake scripts for other platforms\nFixed some bugs that gcc complained about\nFixed CR/LF vs LF bug

This commit is contained in:
Jesse Beder
2008-08-07 03:30:56 +00:00
parent 813817f1ab
commit ec2ecad197
30 changed files with 233 additions and 82 deletions

View File

@@ -1,5 +1,7 @@
#include "crt.h"
#include "regex.h"
#include "regex.h"
#include "stream.h"
#include <iostream>
namespace YAML
{
@@ -88,6 +90,11 @@ namespace YAML
}
bool RegEx::Matches(std::istream& in) const
{
return Match(in) >= 0;
}
bool RegEx::Matches(Stream& in) const
{
return Match(in) >= 0;
}
@@ -106,6 +113,12 @@ namespace YAML
return m_pOp->Match(str, *this);
}
// Match
int RegEx::Match(Stream& in) const
{
return Match(in.stream());
}
// Match
// . The stream version does the same thing as the string version;
// REMEMBER that we only match from the start of the stream!