arb_misc.cxx File Reference
#include "arb_misc.h"
#include "arb_msg.h"
#include "arb_file.h"
#include "arb_string.h"
#include <cmath>
Include dependency graph for arb_misc.cxx:

Go to the source code of this file.


const charGBS_readable_size (unsigned long long size, const char *unit_suffix)
const charGBS_readable_timediff (size_t seconds)
const charARB_float_2_ascii (const float f)
const charARB_getenv_ignore_empty (const char *envvar)
charARB_executable (const char *exe_name, const char *path)
char ARB_path_contains_unwanted_chars (const char *path)
void ARB_warn_about_unwanted_chars (const char *path, const char *path_description)

Function Documentation

const char* GBS_readable_size ( unsigned long long  size,
const char unit_suffix 
const char* GBS_readable_timediff ( size_t  seconds)

Definition at line 46 of file arb_misc.cxx.

References arb_assert, and buffer.

Referenced by ARB_main(), BasicStatus::set_gauge(), and start_pt_server().

const char* ARB_float_2_ascii ( const float  f)

calculate the "best" ascii representation for float 'f'

  • smaller conversion error is better
  • shorter representation is better (for equal conversion errors)

Definition at line 66 of file arb_misc.cxx.

References arb_assert, buffer, NULp, and result.

Referenced by dump_internal(), GB_read_as_string(), and gb_write_one_child().

const char* ARB_getenv_ignore_empty ( const char envvar)
char* ARB_executable ( const char exe_name,
const char path 
char ARB_path_contains_unwanted_chars ( const char path)
void ARB_warn_about_unwanted_chars ( const char path,
const char path_description