/********************* */ /*! \file regexp.cpp ** \verbatim ** Original author: Tianyi Liang ** Major contributors: none ** Minor contributors (to current version): Morgan Deters ** This file is part of the CVC4 project. ** Copyright (c) 2009-2013 New York University and The University of Iowa ** See the file COPYING in the top-level source directory for licensing ** information.\endverbatim ** ** \brief [[ Add one-line brief description here ]] ** ** [[ Add lengthier description here ]] ** \todo document this file **/ #include "util/regexp.h" #include #include using namespace std; namespace CVC4 { void String::getCharSet(std::set &cset) const { for(std::vector::const_iterator itr = d_str.begin(); itr != d_str.end(); itr++) { cset.insert( *itr ); } } std::string String::toString() const { std::string str; for(unsigned int i=0; i( &(std::ostringstream() << (int)c) )->str(); } } str += s; } } return str; } std::ostream& operator <<(std::ostream& os, const String& s) { return os << "\"" << s.toString() << "\""; } std::ostream& operator<<(std::ostream& out, const RegExp& s) { return out << "regexp(" << s.getType() << ')'; } }/* CVC4 namespace */