mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
81f180a0 Fixed bugs in inverse 6d575967 strcpy_safe and strcat_safe 6d98c4e1 trying different header files 72796f15 added <cstring> e8481607 warnings, strcat, strcpy 988bdee0 Try using goto(s) 9b10ce3f Try updated logical expression 812061be Turn off optimizing on k_temp git-subtree-dir: src git-subtree-split: 81f180a069285bcb4d180c860664b4b2a193854d
30 lines
940 B
C++
30 lines
940 B
C++
#if !defined(UTILITIES_H_INCLUDED)
|
|
#define UTILITIES_H_INCLUDED
|
|
|
|
#include <string>
|
|
#include <sstream> // std::istringstream std::ostringstream
|
|
#include <ostream> // std::ostream
|
|
#include <istream> // std::istream
|
|
#include <map> // std::map
|
|
#include "phrqtype.h"
|
|
namespace Utilities
|
|
{
|
|
|
|
const char INDENT[] = " ";
|
|
|
|
int strcmp_nocase(const char *str1, const char *str2);
|
|
|
|
int strcmp_nocase_arg1(const char *str1, const char *str2);
|
|
|
|
void str_tolower(std::string & str);
|
|
void str_toupper(std::string & str);
|
|
std::string pad_right(const std::string & str, size_t l);
|
|
bool replace(const char *str1, const char *str2, std::string & str);
|
|
size_t strcat_safe(char* dest, size_t max, const char* src);
|
|
size_t strcpy_safe(char* dest, size_t max, const char* src);
|
|
void squeeze_white(std::string & s_l);
|
|
double convert_time(double t, std::string in, std::string out);
|
|
LDBLE safe_exp(LDBLE t);
|
|
}
|
|
#endif // UTILITIES_H_INCLUDED
|