Changeset 122 for cpp/common/Convert.cpp


Ignore:
Timestamp:
02/10/14 17:07:20 (10 years ago)
Author:
sz
Message:

(c)opyright information added

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
    15#include "Convert.h"
    26
     
    1822int Convert::toInt(string s) {return atoi(s.c_str());}
    1923float 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??
    2125string Convert::toLowerCase(string s) {std::transform(s.begin(), s.end(), s.begin(), ::tolower);  return s;}
    2226string Convert::toUpperCase(string s) {std::transform(s.begin(), s.end(), s.begin(), ::toupper);  return s;}
     
    118122return string(ret,24); //24 znaki z pominieciem ostatniego \n
    119123}
     124
Note: See TracChangeset for help on using the changeset viewer.