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

Function garrow_match_substring_options_class_init

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

Source from the content-addressed store, hash-verified

4212}
4213
4214static void
4215garrow_match_substring_options_class_init(GArrowMatchSubstringOptionsClass *klass)
4216{
4217 auto gobject_class = G_OBJECT_CLASS(klass);
4218 gobject_class->set_property = garrow_match_substring_options_set_property;
4219 gobject_class->get_property = garrow_match_substring_options_get_property;
4220
4221 arrow::compute::MatchSubstringOptions options;
4222
4223 GParamSpec *spec;
4224 /**
4225 * GArrowMatchSubstringOptions:pattern:
4226 *
4227 * The exact substring (or regex, depending on kernel) to look for
4228 * inside input values.
4229 *
4230 * Since: 12.0.0
4231 */
4232 spec = g_param_spec_string("pattern",
4233 "Pattern",
4234 "The pattern to be looked for",
4235 NULL,
4236 static_cast<GParamFlags>(G_PARAM_READWRITE));
4237 g_object_class_install_property(gobject_class,
4238 PROP_MATCH_SUBSTRING_OPTIONS_PATTERN,
4239 spec);
4240
4241 /**
4242 * GArrowMatchSubstringOptions:ignore-case:
4243 *
4244 * Whether to perform a case-insensitive match.
4245 *
4246 * Since: 12.0.0
4247 */
4248 spec = g_param_spec_boolean("ignore-case",
4249 "Ignore case",
4250 "Whether to perform a case-insensitive match",
4251 options.ignore_case,
4252 static_cast<GParamFlags>(G_PARAM_READWRITE));
4253 g_object_class_install_property(gobject_class,
4254 PROP_MATCH_SUBSTRING_OPTIONS_IGNORE_CASE,
4255 spec);
4256}
4257
4258/**
4259 * garrow_match_substring_options_new:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected