pflib v3.12.0-1-g716e801
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
str_to_int.h
Go to the documentation of this file.
1
5#pragma once
6
7#include <string>
8
9namespace pflib::utility {
10
18bool is_integer(const std::string& str);
19
38unsigned long long int str_to_ullint(std::string str);
39
50int str_to_int(std::string str);
51
52} // namespace pflib::utility
Dumping ground for various functions that are used in many places.
Definition crc.cxx:9
unsigned long long int str_to_ullint(std::string str)
Get an unsigned long long integer from the input string.
Definition str_to_int.cxx:15
int str_to_int(std::string str)
Get an integer from the input string.
Definition str_to_int.cxx:40
bool is_integer(const std::string &str)
Check if the input string matches an integer.
Definition str_to_int.cxx:8