file
fileutil.hpp
Contents
- Reference
Namespaces
- namespace gemmi
Typedefs
-
using fileptr_t = std::
unique_ptr<std:: FILE, decltype(&std::fclose)>
Functions
-
auto path_basename(const std::
string& path, std:: initializer_list<const char*> exts) -> std:: string - auto file_open(const char* path, const char* mode) -> fileptr_t
-
auto file_open_or(const char* path,
const char* mode,
std::
FILE* dash_stream) -> fileptr_t -
auto file_size(std::
FILE* f, const std:: string& path) -> std:: size_t -
auto is_pdb_code(const std::
string& str) -> bool -
auto expand_pdb_code_to_path(const std::
string& code, char type) -> std:: string -
auto expand_if_pdb_code(const std::
string& input, char type = 'M') -> std:: string - auto is_little_endian() -> bool
- void swap_two_bytes(void* start)
- void swap_four_bytes(void* start)