PolyUtil.h 671 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * PolyUtil.h
  3. * Poly
  4. *
  5. * Created by Ivan Safrin on 9/23/08.
  6. * Copyright 2008 __MyCompanyName__. All rights reserved.
  7. *
  8. */
  9. // @package Services
  10. #pragma once
  11. #include "PolyGlobals.h"
  12. #include <string>
  13. #include <vector>
  14. #include <algorithm>
  15. #include <cctype>
  16. using std::string;
  17. using std::vector;
  18. namespace Polycode {
  19. class _PolyExport StringUtil {
  20. public:
  21. static string toLowerCase(const std::string &str);
  22. static vector<std::string> split(const std::string &str, const std::string &delims);
  23. static string replace(const std::string &str, const std::string &what, const std::string &withWhat);
  24. static string floatToString(float value);
  25. };
  26. }