// Copyright (C) 2010, Guy Barrand. All rights reserved. // See the file tools.license for terms. #ifndef tools_file_name #define tools_file_name #include "srep" #include namespace tools { // OpenPAW, Panoramix : inline bool rep_env(std::string& a_string) { char spec_char = '\n'; std::string::size_type dollar; while((dollar=a_string.find('$'))!=std::string::npos){ std::string::size_type slash = a_string.find('/',dollar+1); std::string::size_type back_slash = a_string.find('\\',dollar+1); std::string::size_type pos = std::string::npos; if(slash!=std::string::npos) { if(back_slash!=std::string::npos) { pos = slash