StringUtils.pkg 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. $#include "StringUtils.h"
  2. bool ToBool(const String& source);
  3. bool ToBool(const char* source);
  4. float ToFloat(const String& source);
  5. float ToFloat(const char* source);
  6. int ToInt(const String& source);
  7. int ToInt(const char* source);
  8. unsigned ToUInt(const String& source);
  9. unsigned ToUInt(const char* source);
  10. Color ToColor(const String& source);
  11. Color ToColor(const char* source);
  12. IntRect ToIntRect(const String& source);
  13. IntRect ToIntRect(const char* source);
  14. IntVector2 ToIntVector2(const String& source);
  15. IntVector2 ToIntVector2(const char* source);
  16. Quaternion ToQuaternion(const String& source);
  17. Quaternion ToQuaternion(const char* source);
  18. Rect ToRect(const String& source);
  19. Rect ToRect(const char* source);
  20. Vector2 ToVector2(const String& source);
  21. Vector2 ToVector2(const char* source);
  22. Vector3 ToVector3(const String& source);
  23. Vector3 ToVector3(const char* source);
  24. Vector4 ToVector4(const String& source, bool allowMissingCoords = false);
  25. Vector4 ToVector4(const char* source, bool allowMissingCoords = false);
  26. String ToString(void* value);
  27. String ToStringHex(unsigned value);
  28. bool IsAlpha(unsigned ch);
  29. bool IsDigit(unsigned ch);