mirror of
https://github.com/glest/glest-source.git
synced 2025-08-25 17:20:43 +02:00
- fixed compile error on win32 builds
This commit is contained in:
@@ -729,11 +729,14 @@ namespace Shared { namespace Util {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void strrev_utf8(std::string &p) {
|
void strrev_utf8(std::string &p) {
|
||||||
char szBuf[p.size()+1];
|
int bufSize = p.size()+1;
|
||||||
|
char *szBuf = new char[bufSize];
|
||||||
strcpy(szBuf,p.c_str());
|
strcpy(szBuf,p.c_str());
|
||||||
szBuf[p.size()+1] = '\0';
|
szBuf[bufSize] = '\0';
|
||||||
strrev_utf8(&szBuf[0]);
|
strrev_utf8(&szBuf[0]);
|
||||||
p = szBuf;
|
p = szBuf;
|
||||||
|
|
||||||
|
delete [] szBuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_string_all_ascii(std::string str) {
|
bool is_string_all_ascii(std::string str) {
|
||||||
|
Reference in New Issue
Block a user