Gemmi C++ API
Loading...
Searching...
No Matches
Namespaces | Functions
atox.hpp File Reference

Locale-independent functions that convert strings to integers, equivalents of standard isspace and isdigit, and a few helper functions. More...

#include <cstdint>
#include <stdexcept>
#include <string>

Go to the source code of this file.

Namespaces

namespace  gemmi
 

Functions

bool gemmi::is_space (char c)
 
bool gemmi::is_blank (char c)
 
bool gemmi::is_digit (char c)
 
const chargemmi::skip_blank (const char *p)
 
const chargemmi::skip_word (const char *p)
 
std::string gemmi::read_word (const char *line)
 
std::string gemmi::read_word (const char *line, const char **endptr)
 
int gemmi::string_to_int (const char *p, bool checked, size_t length=0)
 
int gemmi::string_to_int (const std::string &str, bool checked)
 
int gemmi::simple_atoi (const char *p, const char **endptr=nullptr)
 
int gemmi::no_sign_atoi (const char *p, const char **endptr=nullptr)
 

Detailed Description

Locale-independent functions that convert strings to integers, equivalents of standard isspace and isdigit, and a few helper functions.

Definition in file atox.hpp.