mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 12:18:01 +01:00
trunk/branch integration: using Poco::Ascii
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user