mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-25 10:01:38 +08:00
minor bugfix: some compilers didn't find functions -> added corrected includes
This commit is contained in:
parent
b83d0cb879
commit
18c05dd37b
@ -44,15 +44,19 @@ Copyright (c) 2008-2015 Jan W. Krieger (<jan@jkrieger.de>, <j.krieger@dkfz.de>),
|
|||||||
#include <QHeaderView>
|
#include <QHeaderView>
|
||||||
#include <QPrintDialog>
|
#include <QPrintDialog>
|
||||||
#include <QDialogButtonBox>
|
#include <QDialogButtonBox>
|
||||||
|
#include <cstring>
|
||||||
|
#include <cstdlib>
|
||||||
|
#include <cstdio>
|
||||||
|
#include <ctype.h>
|
||||||
|
#include <locale>
|
||||||
|
|
||||||
std::string jkqtp_tolower(const std::string& s){
|
std::string jkqtp_tolower(const std::string& s){
|
||||||
std::string d;
|
std::string d;
|
||||||
d="";
|
d="";
|
||||||
|
std::locale loc;
|
||||||
if (s.length()>0) {
|
if (s.length()>0) {
|
||||||
for (unsigned long i=0; i<s.length(); i++) {
|
for (unsigned long i=0; i<s.length(); i++) {
|
||||||
d+=std::tolower(s[i]);
|
d+=std::tolower(s[i], loc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return d;
|
return d;
|
||||||
@ -72,9 +76,10 @@ std::string jkqtp_tolower(const std::string& s){
|
|||||||
std::string jkqtp_toupper(const std::string& s){
|
std::string jkqtp_toupper(const std::string& s){
|
||||||
std::string d;
|
std::string d;
|
||||||
d="";
|
d="";
|
||||||
|
std::locale loc;
|
||||||
if (s.length()>0) {
|
if (s.length()>0) {
|
||||||
for (unsigned long i=0; i<s.length(); i++) {
|
for (unsigned long i=0; i<s.length(); i++) {
|
||||||
d+=std::toupper(s[i]);
|
d+=std::toupper(s[i], loc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return d;
|
return d;
|
||||||
|
Loading…
Reference in New Issue
Block a user