svg.h revision 9932d3f124c047d557a978fb6b035214a09c086a
4812N/A * Lauris Kaplinski <lauris@kaplinski.com> 4812N/A * Copyright (C) 1999-2002 Lauris Kaplinski 4812N/A * Released under GNU GPL, read the file 'COPYING' for more information 4812N/A * These are very-very simple: 4812N/A * - they accept everything libc strtod accepts 4812N/A * - no valid end character checking 4812N/A * Return FALSE and let val untouched on error 4812N/A * No buffer overflow checking is done, so better wrap them if needed * Parse number with optional unit specifier: * - for px, pt, pc, mm, cm, computed is final value accrding to SVG spec * - for em, ex, and % computed is left untouched * - % is divided by 100 (i.e. 100% is 1.0) * !isalnum check is done at the end * Any return value pointer can be NULL /* NB! As paths can be long, we use here dynamic string */ c-file-style:"stroustrup" c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :