From: <bl...@us...> - 2003-05-04 07:34:11
|
Update of /cvsroot/cpptool/rfta/src/rftaparser In directory sc8-pr-cvs1:/tmp/cvs-serv16999/src/rftaparser Modified Files: SourceASTNode.cpp Log Message: * return original and blanked source as CStringView Index: SourceASTNode.cpp =================================================================== RCS file: /cvsroot/cpptool/rfta/src/rftaparser/SourceASTNode.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** SourceASTNode.cpp 25 Dec 2002 22:39:02 -0000 1.7 --- SourceASTNode.cpp 4 May 2003 07:34:06 -0000 1.8 *************** *** 8,11 **** --- 8,12 ---- #include <rfta/parser/ASTNodes.h> #include <rfta/parser/SourceASTNode.h> + #include <xtl/CStringView.h> #include <stdexcept> *************** *** 71,74 **** --- 72,89 ---- { return realSource_.substr( range.getStartIndex(), range.getLength() ); + } + + + Xtl::CStringView + SourceASTNode::getBlankedSource() const + { + return Xtl::CStringView( blankedSourceStart_, blankedSourceStart_ + blankedSource_.length() ); + } + + + Xtl::CStringView + SourceASTNode::getOriginalSource() const + { + return Xtl::CStringView( realSource_.c_str(), realSource_.c_str() + realSource_.length() ); } |