| 9187 | GARROW_TYPE_FUNCTION_OPTIONS) |
| 9188 | |
| 9189 | static void |
| 9190 | garrow_replace_substring_options_set_property(GObject *object, |
| 9191 | guint prop_id, |
| 9192 | const GValue *value, |
| 9193 | GParamSpec *pspec) |
| 9194 | { |
| 9195 | auto options = |
| 9196 | garrow_replace_substring_options_get_raw(GARROW_REPLACE_SUBSTRING_OPTIONS(object)); |
| 9197 | |
| 9198 | switch (prop_id) { |
| 9199 | case PROP_REPLACE_SUBSTRING_OPTIONS_PATTERN: |
| 9200 | options->pattern = g_value_get_string(value); |
| 9201 | break; |
| 9202 | case PROP_REPLACE_SUBSTRING_OPTIONS_REPLACEMENT: |
| 9203 | options->replacement = g_value_get_string(value); |
| 9204 | break; |
| 9205 | case PROP_REPLACE_SUBSTRING_OPTIONS_MAX_REPLACEMENTS: |
| 9206 | options->max_replacements = g_value_get_int64(value); |
| 9207 | break; |
| 9208 | default: |
| 9209 | G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); |
| 9210 | break; |
| 9211 | } |
| 9212 | } |
| 9213 | |
| 9214 | static void |
| 9215 | garrow_replace_substring_options_get_property(GObject *object, |
nothing calls this directly
no test coverage detected