Changeset 122 for cpp/common/Convert.cpp
- Timestamp:
- 02/10/14 17:07:20 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/Convert.cpp
r109 r122 1 // This file is a part of the Framsticks GDK. 2 // Copyright (C) 2002-2014 Maciej Komosinski and Szymon Ulatowski. See LICENSE.txt for details. 3 // Refer to http://www.framsticks.com/ for further information. 4 1 5 #include "Convert.h" 2 6 … … 18 22 int Convert::toInt(string s) {return atoi(s.c_str());} 19 23 float Convert::toFloat(string s) {return (float)atof(s.c_str());} 20 #ifndef __BORLANDC__ // szok: borland kompiluje ten plik w GUI i CLI ale nie w teatrze. Z jakichs powodow nie potrafi znalezc ::tolower i ::toupper, moze chodzi o pewne definy w <cctype> ale czemu tylko w teatrze?!24 #ifndef __BORLANDC__ //the borland compiler compiles this file in GUI and CLI, but not in the theater app. Somehow it cannot find ::tolower and ::toupper; maybe this is because of various #defines in <cctype>, but why only in the theater app?? 21 25 string Convert::toLowerCase(string s) {std::transform(s.begin(), s.end(), s.begin(), ::tolower); return s;} 22 26 string Convert::toUpperCase(string s) {std::transform(s.begin(), s.end(), s.begin(), ::toupper); return s;} … … 118 122 return string(ret,24); //24 znaki z pominieciem ostatniego \n 119 123 } 124
Note: See TracChangeset
for help on using the changeset viewer.