Edinburgh Speech Tools  2.1-release
util_io.cc File Reference
#include <cstdio>
#include <cctype>
#include <cstdlib>
#include <string>
#include <fstream>
#include <iostream>
#include "EST_types.h"
#include "EST_String.h"
#include "EST_Pathname.h"
#include "EST_io_aux.h"
#include "EST_string_aux.h"
#include "EST_cutils.h"
#include "EST_Token.h"
Include dependency graph for util_io.cc:

Go to the source code of this file.

Functions

EST_String make_tmp_filename ()
 Make a unique temporary filename. More...
 
int readable_file (char *filename)
 return true if this file is readable More...
 
int writable_file (char *filename)
 return true if this file is writeable More...
 
EST_String stdin_to_file ()
 Copy stdin to a file and return the name of that tmpfile. More...
 
int Stringtoi (EST_String s, int &success)
 
int Stringtoi (EST_String s)
 Make an int from a EST_String. EST_String equivalent of atoi() More...
 
EST_String itoString (int n)
 Make a EST_String object from an integer. More...
 
EST_String ftoString (float n, int pres, int width, int right_justify)
 Make a EST_String object from an float, with variable precision. More...
 
EST_String basename (EST_String full, EST_String ext)
 This acts like the bourne shell basename command. By default, it strips any leading path from a string. If ext is defined, it strips any suffix matching this string. More...
 
void strip_quotes (EST_String &s, const EST_String quote_char)
 remove quotes from a string More...
 
EST_String uncompress_file_to_temporary (const EST_String &filename, const EST_String &prog_name)
 Uncompress file by calling program prog, and write it to new tempoary file. Return name of temporary file. More...
 
int compress_file_in_place (const EST_String &filename, const EST_String &prog_name)
 Uncompress file and over-write existing file with uncompressed version. More...
 
int compress_file (const EST_String &filename, const EST_String &new_filename, const EST_String &prog_name)
 compress file by calling program prog, writing result to new_filename More...
 

Function Documentation

int Stringtoi ( EST_String  s,
int success 
)

Definition at line 120 of file util_io.cc.