Lines Matching refs:value
24 * @param value ascii representation of the number
31 inline double helperfns_read_number(gchar const *value, bool warning = true) {
32 if (!value) {
33 g_warning("Called helperfns_read_number with value==null_ptr, this can lead to unexpected behaviour.");
37 double ret = g_ascii_strtod(value, &end);
40 g_warning("helper-fns::helperfns_read_number() Unable to convert \"%s\" to number", value);
49 inline bool helperfns_read_bool(gchar const *value, bool default_value){
50 if (!value) return default_value;
51 switch(value[0]){
53 if (strncmp(value, "true", 4) == 0) return true;
56 if (strncmp(value, "false", 5) == 0) return false;
65 * @param value ascii representation of the number
68 inline std::vector<gdouble> helperfns_read_vector(const gchar* value){
71 gchar const* beg = value;