Lines Matching defs:str

23 static unsigned sp_svg_length_read_lff(gchar const *str, SVGLength::Unit *unit, float *val, float *computed, char **next);
29 unsigned int sp_svg_number_read_f(gchar const *str, float *val)
31 if (!str) {
36 float const v = g_ascii_strtod(str, &e);
37 if ((gchar const *) e == str) {
45 unsigned int sp_svg_number_read_d(gchar const *str, double *val)
47 if (!str) {
52 double const v = g_ascii_strtod(str, &e);
53 if ((gchar const *) e == str) {
181 bool SVGLength::read(gchar const *str)
183 if (!str) {
190 if (!sp_svg_length_read_lff(str, &u, &v, &c, NULL)) {
207 bool SVGLength::readAbsolute(gchar const *str)
209 if (!str) {
216 if (!sp_svg_length_read_lff(str, &u, &v, &c, NULL)) {
233 unsigned int sp_svg_length_read_computed_absolute(gchar const *str, float *length)
235 if (!str) {
241 if (!sp_svg_length_read_lff(str, &unit, NULL, &computed, NULL)) {
255 std::vector<SVGLength> sp_svg_length_list_read(gchar const *str)
257 if (!str) {
264 char *next = (char *) str;
291 static unsigned sp_svg_length_read_lff(gchar const *str, SVGLength::Unit *unit, float *val, float *computed, char **next)
297 if (!str) {
302 float const v = g_ascii_strtod(str, (char **) &e);
303 if (e == str) {
442 unsigned int sp_svg_length_read_ldd(gchar const *str, SVGLength::Unit *unit, double *value, double *computed)
446 unsigned int r = sp_svg_length_read_lff(str, unit, &a, &b, NULL);
530 double sp_svg_read_percentage(char const *str, double def)
532 if (str == NULL) {
537 double v = g_ascii_strtod(str, &u);
580 return os.str();
584 void SVGLength::readOrUnset(gchar const *str, Unit u, float v, float c)
586 if (!read(str)) {