47#include "EST_String.h"
48#include "EST_Pathname.h"
49#include "EST_io_aux.h"
50#include "EST_string_aux.h"
51#include "EST_cutils.h"
57 char *
tname = cmake_tmp_filename();
63int readable_file(
char *filename)
67 if (streq(filename,
"-"))
69 else if (access(filename,R_OK) == 0)
75int writable_file(
char *filename)
83 if (streq(filename,
"-"))
85 else if (access(filename,W_OK) == 0)
87 else if ((access(filename,F_OK) == -1) &&
104 cerr <<
"Write access failed for temporary file\n";
110 cerr <<
"Write error on temporary file";
169 if (
full.contains(
"/"))
177 if (
full.contains(
"."))
182 if (
full.contains(
"."))
223int compress_file_in_place(
const EST_String &filename,
EST_String before(int pos, int len=0) const
Part before position.
int length(void) const
Length of string ({not} length of underlying chunk)
EST_String after(int pos, int len=1) const
Part after pos+len.