[Groonga-commit] groonga/groonga at 7bd20aa [master] token_cursor: export the current cursor for internal use

Back to archive index

Kouhei Sutou null+****@clear*****
Wed May 9 14:18:28 JST 2018


Kouhei Sutou	2018-05-09 14:18:28 +0900 (Wed, 09 May 2018)

  New Revision: 7bd20aad4f1f104b409c4aebddec30557db456c0
  https://github.com/groonga/groonga/commit/7bd20aad4f1f104b409c4aebddec30557db456c0

  Message:
    token_cursor: export the current cursor for internal use

  Modified files:
    lib/grn_token_cursor.h
    lib/token_cursor.c

  Modified: lib/grn_token_cursor.h (+3 -0)
===================================================================
--- lib/grn_token_cursor.h    2018-05-09 14:18:11 +0900 (352e39563)
+++ lib/grn_token_cursor.h    2018-05-09 14:18:28 +0900 (4ddb0b08c)
@@ -76,6 +76,9 @@ GRN_API grn_token_cursor *grn_token_cursor_open(grn_ctx *ctx, grn_obj *table,
 GRN_API grn_id grn_token_cursor_next(grn_ctx *ctx, grn_token_cursor *token_cursor);
 GRN_API grn_rc grn_token_cursor_close(grn_ctx *ctx, grn_token_cursor *token_cursor);
 
+GRN_API grn_token *
+grn_token_cursor_get_token(grn_ctx *ctx, grn_token_cursor *token_cursor);
+
 #ifdef __cplusplus
 }
 #endif

  Modified: lib/token_cursor.c (+6 -0)
===================================================================
--- lib/token_cursor.c    2018-05-09 14:18:11 +0900 (fc21294f3)
+++ lib/token_cursor.c    2018-05-09 14:18:28 +0900 (f882c3f2f)
@@ -422,3 +422,9 @@ grn_token_cursor_close(grn_ctx *ctx, grn_token_cursor *token_cursor)
     return GRN_INVALID_ARGUMENT;
   }
 }
+
+grn_token *
+grn_token_cursor_get_token(grn_ctx *ctx, grn_token_cursor *token_cursor)
+{
+  return &(token_cursor->tokenizer.current_token);
+}
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180509/25fa6996/attachment.htm 



More information about the Groonga-commit mailing list
Back to archive index