FAUST compiler  0.9.9.6b8
Text.hh
Go to the documentation of this file.
00001 /************************************************************************
00002  ************************************************************************
00003     FAUST compiler
00004     Copyright (C) 2003-2004 GRAME, Centre National de Creation Musicale
00005     ---------------------------------------------------------------------
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  ************************************************************************
00020  ************************************************************************/
00021 
00022 
00023 
00024 #ifndef _stringFAUST_H
00025 #define _stringFAUST_H
00026 
00027 /**********************************************************************
00028             - string.h : Chaines de caractere -
00029 
00030 
00031         Historique :
00032         -----------
00033         17-11-2001 : implementation initiale (yo)
00034 ***********************************************************************/
00035 #include <string>
00036 #include <vector>
00037 using namespace std;
00038 
00039 
00040 string subst (const string& m, const string& a0);
00041 string subst (const string& m, const vector<string>& vargs);
00042 string subst (const string& m, const string& a0, const string& a1);
00043 string subst (const string& m, const string& a0, const string& a1, const string& a2);
00044 string subst (const string& model, const string& a0, const string& a1, const string& a2, const string& a3);
00045 string subst (const string& model, const string& a0, const string& a1, const string& a2, const string& a3, const string& a4);
00046 string subst (const string& model, const string& a0, const string& a1, const string& a2, const string& a3, const string& a4, const string& a5);
00047 string subst (const string& model, const string& a0, const string& a1, const string& a2, const string& a3, const string& a4, const string& a5, const string& a6);
00048 
00049 string T (char* c);
00050 string T (int n);
00051 string T (long n);
00052 //string T (float n);
00053 string T (double n);
00054 
00055 // add and remove quotes of a string
00056 string unquote(const string& s);
00057 string quote(const string& s);
00058 string rmWhiteSpaces(const string& s);
00059 
00060 #endif