7 parse_dimen(String dim
)
11 while (i
> 0 && (isspace(s
[i
]) || isalpha(s
[i
])) ){
15 return convert_dimen(dim
.fvalue(), unit
);
18 const Real CM_TO_PT
=72/2.54;
21 convert_dimen(Real quant
, String unit
)
24 return quant
* CM_TO_PT
;
28 return quant
*CM_TO_PT
/10;
31 error ("unknown length unit: `" + unit
+"'");