trunk/branch integration: using Poco::Ascii

This commit is contained in:
Marian Krivos
2011-08-22 18:10:47 +00:00
parent 8d10f9532e
commit 01722dd4a7

View File

@@ -1,7 +1,7 @@
// //
// Token.cpp // Token.cpp
// //
// $Id: //poco/svn/Foundation/src/Token.cpp#2 $ // $Id: //poco/1.4/Foundation/src/Token.cpp#1 $
// //
// Library: Foundation // Library: Foundation
// Package: Streams // Package: Streams
@@ -36,7 +36,7 @@
#include "Poco/Token.h" #include "Poco/Token.h"
#include "Poco/NumberParser.h" #include "Poco/NumberParser.h"
#include <cctype> #include "Poco/Ascii.h"
namespace Poco { namespace Poco {
@@ -144,7 +144,7 @@ Token::Class WhitespaceToken::tokenClass() const
bool WhitespaceToken::start(char c, std::istream& istr) bool WhitespaceToken::start(char c, std::istream& istr)
{ {
if (std::isspace(c)) if (Ascii::isSpace(c))
{ {
_value = c; _value = c;
return true; return true;
@@ -156,7 +156,7 @@ bool WhitespaceToken::start(char c, std::istream& istr)
void WhitespaceToken::finish(std::istream& istr) void WhitespaceToken::finish(std::istream& istr)
{ {
int c = istr.peek(); int c = istr.peek();
while (std::isspace(c)) while (Ascii::isSpace(c))
{ {
istr.get(); istr.get();
_value += (char) c; _value += (char) c;