mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-20 06:17:15 +01:00
trunk/branch integration: using Poco::Ascii
This commit is contained in:
parent
8d10f9532e
commit
01722dd4a7
@ -1,7 +1,7 @@
|
||||
//
|
||||
// Token.cpp
|
||||
//
|
||||
// $Id: //poco/svn/Foundation/src/Token.cpp#2 $
|
||||
// $Id: //poco/1.4/Foundation/src/Token.cpp#1 $
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: Streams
|
||||
@ -36,7 +36,7 @@
|
||||
|
||||
#include "Poco/Token.h"
|
||||
#include "Poco/NumberParser.h"
|
||||
#include <cctype>
|
||||
#include "Poco/Ascii.h"
|
||||
|
||||
|
||||
namespace Poco {
|
||||
@ -144,7 +144,7 @@ Token::Class WhitespaceToken::tokenClass() const
|
||||
|
||||
bool WhitespaceToken::start(char c, std::istream& istr)
|
||||
{
|
||||
if (std::isspace(c))
|
||||
if (Ascii::isSpace(c))
|
||||
{
|
||||
_value = c;
|
||||
return true;
|
||||
@ -156,7 +156,7 @@ bool WhitespaceToken::start(char c, std::istream& istr)
|
||||
void WhitespaceToken::finish(std::istream& istr)
|
||||
{
|
||||
int c = istr.peek();
|
||||
while (std::isspace(c))
|
||||
while (Ascii::isSpace(c))
|
||||
{
|
||||
istr.get();
|
||||
_value += (char) c;
|
||||
|
Loading…
x
Reference in New Issue
Block a user