MCPcopy Create free account
hub / github.com/apache/arrow / garrow_replace_substring_options_set_property

Function garrow_replace_substring_options_set_property

c_glib/arrow-glib/compute.cpp:9189–9212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9187 GARROW_TYPE_FUNCTION_OPTIONS)
9188
9189static void
9190garrow_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
9214static void
9215garrow_replace_substring_options_get_property(GObject *object,

Callers

nothing calls this directly

Tested by

no test coverage detected