| 9212 | } |
| 9213 | |
| 9214 | static void |
| 9215 | garrow_replace_substring_options_get_property(GObject *object, |
| 9216 | guint prop_id, |
| 9217 | GValue *value, |
| 9218 | GParamSpec *pspec) |
| 9219 | { |
| 9220 | auto options = |
| 9221 | garrow_replace_substring_options_get_raw(GARROW_REPLACE_SUBSTRING_OPTIONS(object)); |
| 9222 | |
| 9223 | switch (prop_id) { |
| 9224 | case PROP_REPLACE_SUBSTRING_OPTIONS_PATTERN: |
| 9225 | g_value_set_string(value, options->pattern.c_str()); |
| 9226 | break; |
| 9227 | case PROP_REPLACE_SUBSTRING_OPTIONS_REPLACEMENT: |
| 9228 | g_value_set_string(value, options->replacement.c_str()); |
| 9229 | break; |
| 9230 | case PROP_REPLACE_SUBSTRING_OPTIONS_MAX_REPLACEMENTS: |
| 9231 | g_value_set_int64(value, options->max_replacements); |
| 9232 | break; |
| 9233 | default: |
| 9234 | G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); |
| 9235 | break; |
| 9236 | } |
| 9237 | } |
| 9238 | |
| 9239 | static void |
| 9240 | garrow_replace_substring_options_init(GArrowReplaceSubstringOptions *object) |
nothing calls this directly
no test coverage detected