* garrow_function_doc_get_arg_names: * @doc: A #GArrowFunctionDoc. * * Returns: (array zero-terminated=1) (element-type utf8) (transfer full): * Symbolic names (identifiers) for the function arguments. * * It's a %NULL-terminated string array. It must be freed with * g_strfreev() when no longer needed. * * Since: 6.0.0 */
| 668 | * Since: 6.0.0 |
| 669 | */ |
| 670 | gchar ** |
| 671 | garrow_function_doc_get_arg_names(GArrowFunctionDoc *doc) |
| 672 | { |
| 673 | auto arrow_doc = garrow_function_doc_get_raw(doc); |
| 674 | const auto &arrow_arg_names = arrow_doc->arg_names; |
| 675 | auto n = arrow_arg_names.size(); |
| 676 | auto arg_names = g_new(gchar *, n + 1); |
| 677 | for (size_t i = 0; i < n; ++i) { |
| 678 | arg_names[i] = g_strndup(arrow_arg_names[i].data(), arrow_arg_names[i].size()); |
| 679 | } |
| 680 | arg_names[n] = NULL; |
| 681 | return arg_names; |
| 682 | } |
| 683 | |
| 684 | /** |
| 685 | * garrow_function_doc_get_options_class_name: |
nothing calls this directly
no test coverage detected