doc_Text.hh File Reference

#include <string>
#include <vector>
Include dependency graph for doc_Text.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

string docT (char *c)
string docT (int n)
string docT (long n)
string docT (double n)
 Add a trailing f when converting double-precision numbers to text if single-precision is required NO, this is no more true for LaTeX documentator.

Function Documentation

string docT ( double  n  ) 

Add a trailing f when converting double-precision numbers to text if single-precision is required NO, this is no more true for LaTeX documentator.

Definition at line 84 of file doc_Text.cpp.

References scientific2tenpow().

00085 {
00086 //    char c[64];
00087 //    if  (n <  0.1 && n > -0.1 && n != 0.0) {
00088 //        //snprintf(c, 63, "%e", n); //, inumix());
00091 //        snprintf(c, 63, "%g", n);
00092 //    } else {
00093 //        snprintf(c, 63, "%g", n);
00094 //        //zdel(c);
00095 //    }
00096 //    return string(c);
00097     return scientific2tenpow(n);
00098 }

Here is the call graph for this function:

string docT ( long  n  ) 

Definition at line 61 of file doc_Text.cpp.

00061 { char c[64]; snprintf(c, 63, "%ld",n); return string(c); }

string docT ( int  n  ) 

Definition at line 60 of file doc_Text.cpp.

00060 { char c[64]; snprintf(c, 63, "%d",n);  return string(c); }

string docT ( char *  c  ) 

Definition at line 59 of file doc_Text.cpp.

Referenced by DocCompiler::compileLateq(), DocCompiler::generateCode(), DocCompiler::generateIota(), DocCompiler::getFreshID(), and DocCompiler::prepareIntervallicUI().

00059 { return string(c); }

Here is the caller graph for this function:

Generated on Thu Jul 15 15:46:59 2010 for FAUST compiler by  doxygen 1.6.3