[Groonga-commit] groonga/groonga at 1287804 [master] db: add a comment to tokenize

Back to archive index

Susumu Yata null+****@clear*****
Fri Mar 4 12:12:56 JST 2016


Susumu Yata	2016-03-04 12:12:56 +0900 (Fri, 04 Mar 2016)

  New Revision: 1287804c3d3bb512e4e65f4e531fd16977b5d0f6
  https://github.com/groonga/groonga/commit/1287804c3d3bb512e4e65f4e531fd16977b5d0f6

  Message:
    db: add a comment to tokenize

  Modified files:
    lib/db.c

  Modified: lib/db.c (+8 -1)
===================================================================
--- lib/db.c    2016-03-04 11:52:05 +0900 (a9cdad5)
+++ lib/db.c    2016-03-04 12:12:56 +0900 (3a8e9f5)
@@ -12147,8 +12147,15 @@ grn_column_get_all_index_data(grn_ctx *ctx,
 }
 
 /* todo : refine */
+/*
+ * tokenize splits a string into at most buf_size tokens and returns the number
+ * of tokens. The ending address of each token is written into tokbuf.
+ * Delimiters are ' ' and ','.
+ * Then, the address to the remaining is set to rest.
+ */
 static int
-tokenize(const char *str, size_t str_len, const char **tokbuf, int buf_size, const char **rest)
+tokenize(const char *str, size_t str_len,
+         const char **tokbuf, int buf_size, const char **rest)
 {
   const char **tok = tokbuf, **tok_end = tokbuf + buf_size;
   if (buf_size > 0) {
-------------- next part --------------
HTML����������������������������...
Download 



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