const struct string_comparator *ssc =
(const struct string_comparator *) cmptr;
int width = var_get_width (cmptr->var);
const struct string_comparator *ssc =
(const struct string_comparator *) cmptr;
int width = var_get_width (cmptr->var);
g_strchomp (text);
retval = (0 == regexec (&rec->re, text, 0, 0, 0));
g_strchomp (text);
retval = (0 == regexec (&rec->re, text, 0, 0, 0));
width = var_get_width (var);
fmt = var_get_write_format (var);
value_init (&vc->pattern, width);
width = var_get_width (var);
fmt = var_get_write_format (var);
value_init (&vc->pattern, width);
- if ( ! data_in (ss_cstr (target),
- LEGACY_NATIVE,
- fmt->type,
- 0, 0, 0,
- NULL,
- &vc->pattern, width) )
- {
- value_destroy (&vc->pattern, width);
- free (vc);
- return NULL;
- }
+ text_to_value (target, &vc->pattern, dict, *var_get_write_format (var) );
-regexp_comparator_create (const struct variable *var, const char *target,
+regexp_comparator_create (const struct variable *var, const PsppireDict *dict, const char *target,
-comparator_factory (const struct variable *var, const char *str,
+comparator_factory (const struct variable *var, const PsppireDict *dict, const char *str,
- return regexp_comparator_create (var, str, flags);
+ return regexp_comparator_create (var, dict, str, flags);
- return string_comparator_create (var, str, flags);
+ return string_comparator_create (var, dict, str, flags);
- comparator_factory (var, target_string, flags);
+ comparator_factory (var, fd->dict, target_string, flags);