Lines Matching refs:ptr
315 gchar *ptr = (gchar *) str + 4;
317 gchar *e; // ptr after read
319 double h = g_ascii_strtod(ptr, &e); // Read h (0-360)
320 if (ptr == e) return def; // Read failed
321 ptr = e;
323 while (*ptr && g_ascii_isspace(*ptr)) ptr += 1; // Remove any white space
324 if (*ptr != ',') return def; // Need comma
325 ptr += 1;
326 while (*ptr && g_ascii_isspace(*ptr)) ptr += 1; // Remove any white space
328 double s = g_ascii_strtod(ptr, &e); // Read s (percent)
329 if (ptr == e) return def; // Read failed
330 ptr = e;
331 while (*ptr && g_ascii_isspace(*ptr)) ptr += 1; // Remove any white space
332 if (*ptr != '%') return def; // Need %
333 ptr += 1;
335 while (*ptr && g_ascii_isspace(*ptr)) ptr += 1; // Remove any white space
336 if (*ptr != ',') return def; // Need comma
337 ptr += 1;
338 while (*ptr && g_ascii_isspace(*ptr)) ptr += 1; // Remove any white space
340 double l = g_ascii_strtod(ptr, &e); // Read l (percent)
341 if (ptr == e) return def; // Read failed
342 ptr = e;
343 while (*ptr && g_ascii_isspace(*ptr)) ptr += 1; // Remove any white space
344 if (*ptr != '%') return def; // Need %
345 ptr += 1;
348 *end_ptr = ptr;