7.26.17. grn_inspect#

7.26.17.1. Summary#

There are two kind of functions to inspect grn_obj. One is grn_inspect function, The other is grn_p function.

Here is the list of grn_inspect function series. It sets inspected text into specified object.

  • grn_inspect()

  • grn_inspect_indented()

  • grn_inspect_limited()

  • grn_inspect_name()

  • grn_inspect_encoding()

  • grn_inspect_type()

  • grn_inspect_query_log_flags()

Here is the list of grn_p function series. It prints inspected text into console.

  • grn_p()

  • grn_p_geo_point()

  • grn_p_ii_values()

7.26.17.2. Example#

Here is an example which inspects specified target object.

grn_obj buffer;
GRN_TEXT_INIT(&buffer, 0);
grn_inspect(&context, &buffer, obj);
/* equivalent to grn_p(ctx, obj); */
printf("inspected: <%.*s>\n", (int)GRN_TEXT_LEN(&buffer), GRN_TEXT_VALUE(&buffer));

7.26.17.3. Reference#

Note

We are currently switching to automatic generation using Doxygen.