bool parseMargins(const char* s)
parseMargins(const char* s)
bool parseMargins(const char* s){  assert(s != NULL);  char* nptr;  double x = strtod(s, &nptr);  if (nptr == s) return false;  if (nptr == NULL || *nptr != 'x') return false;    s = nptr + 1;  double y = strtod(s, &nptr);  if (nptr == s) return false;  xMargin = x;  yMargin = y;  return true;}