null+****@clear*****
null+****@clear*****
2010年 7月 5日 (月) 14:08:59 JST
Kouhei Sutou 2010-07-05 05:08:59 +0000 (Mon, 05 Jul 2010)
New Revision: 43454cf449d40a9124cf8678af42752ae6124d03
Log:
export grn_str_len() and grn_text_unesc_tok() as API.
Modified files:
lib/str.h
Modified: lib/str.h (+4 -3)
===================================================================
--- lib/str.h 2010-07-05 05:02:58 +0000 (8614b81)
+++ lib/str.h 2010-07-05 05:08:59 +0000 (79b8536)
@@ -44,7 +44,7 @@ typedef struct {
grn_str_getopt_op op;
} grn_str_getopt_opt;
-size_t grn_str_len(grn_ctx *ctx, const char *str, grn_encoding encoding, const char **last);
+GRN_API size_t grn_str_len(grn_ctx *ctx, const char *str, grn_encoding encoding, const char **last);
#define GRN_STR_BLANK 0x80
#define GRN_STR_ISBLANK(c) (c & 0x80)
@@ -107,8 +107,9 @@ GRN_API const char *grn_text_cgidec(grn_ctx *ctx, grn_obj *buf,
#define GRN_TOK_STRING (0x02)
#define GRN_TOK_QUOTE (0x03)
-const char *grn_text_unesc_tok(grn_ctx *ctx, grn_obj *buf, const char *p, const char *e,
- char *tok_type);
+GRN_API const char *grn_text_unesc_tok(grn_ctx *ctx, grn_obj *buf,
+ const char *p, const char *e,
+ char *tok_type);
void grn_str_url_path_normalize(grn_ctx *ctx, const char *path, size_t path_len,
char *buf, size_t buf_len);