#include "exceptions.h"
#include "h_align.h"
+#include <algorithm>
using std::string;
HAlign
dcp::string_to_halign(string s)
{
- transform(s.begin(), s.end(), s.begin(), ::tolower);
+ std::transform(s.begin(), s.end(), s.begin(), ::tolower);
if (s == "left") {
return HAlign::LEFT;
#include "exceptions.h"
#include "v_align.h"
+#include <algorithm>
using std::string;
VAlign
dcp::string_to_valign (string s)
{
- transform(s.begin(), s.end(), s.begin(), ::tolower);
+ std::transform(s.begin(), s.end(), s.begin(), ::tolower);
if (s == "top") {
return VAlign::TOP;