FAUST compiler  0.9.9.6b8
Functions | Variables
compile.cpp File Reference
#include "timing.hh"
#include "compile.hh"
#include "floats.hh"
#include "sigtype.hh"
#include <stdio.h>
#include "sigprint.hh"
#include "ppsig.hh"
#include "sigtyperules.hh"
#include "simplify.hh"
#include "privatise.hh"
Include dependency graph for compile.cpp:

Go to the source code of this file.

Functions

static string wdel (const string &s)
 Removes enclosing whitespaces : ' toto ' -> 'toto'.

Variables

int gDetailsSwitch
string gMasterName

Function Documentation

static string wdel ( const string &  s) [static]

Removes enclosing whitespaces : ' toto ' -> 'toto'.

Definition at line 148 of file compile.cpp.

Referenced by Compiler::generateUserInterfaceTree(), and Compiler::generateWidgetCode().

{
    size_t i = 0;
    size_t j = s.size();
    while (i<j && s[i]==' ') i++;
    while (j>i && s[j-1] == ' ') j--;
    return s.substr(i,j-i);
}

Here is the caller graph for this function:


Variable Documentation

Definition at line 114 of file main.cpp.

string gMasterName

Definition at line 106 of file main.cpp.