[Groonga-commit] groonga/groonga [master] Export grn_nfkc_ctype()

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Feb 1 17:17:06 JST 2013


Kouhei Sutou	2013-02-01 17:17:06 +0900 (Fri, 01 Feb 2013)

  New Revision: cbabc50fa7aeeea68bdd77db1c2a0eac0bac1ca8
  https://github.com/groonga/groonga/commit/cbabc50fa7aeeea68bdd77db1c2a0eac0bac1ca8

  Log:
    Export grn_nfkc_ctype()

  Modified files:
    include/groonga/nfkc.h
    lib/nfkc.c
    lib/normalizer.c
    lib/str.c

  Modified: include/groonga/nfkc.h (+4 -0)
===================================================================
--- include/groonga/nfkc.h    2013-02-01 17:12:12 +0900 (bb310ff)
+++ include/groonga/nfkc.h    2013-02-01 17:17:06 +0900 (2f3bbfc)
@@ -17,10 +17,14 @@
 #ifndef GRN_NFKC_H
 #define GRN_NFKC_H
 
+#include <groonga.h>
+
 #ifdef	__cplusplus
 extern "C" {
 #endif
 
+GRN_API grn_char_type grn_nfkc_ctype(const unsigned char *str);
+
 #ifdef __cplusplus
 }
 #endif

  Modified: lib/nfkc.c (+1 -2)
===================================================================
--- lib/nfkc.c    2013-02-01 17:12:12 +0900 (a39fd60)
+++ lib/nfkc.c    2013-02-01 17:17:06 +0900 (ee0af36)
@@ -21,12 +21,11 @@ don't edit this file by hand. it generated automatically by nfkc.rb
 #include "config.h"
 #endif /* HAVE_CONFIG_H */
 
-#include <groonga.h>
 #include <groonga/nfkc.h>
 
 #ifdef WITH_NFKC
 
-unsigned char
+grn_char_type
 grn_nfkc_ctype(const unsigned char *str)
 {
 switch (str[0]) {

  Modified: lib/normalizer.c (+0 -1)
===================================================================
--- lib/normalizer.c    2013-02-01 17:12:12 +0900 (3d05960)
+++ lib/normalizer.c    2013-02-01 17:17:06 +0900 (5cda116)
@@ -559,7 +559,6 @@ sjis_normalize(grn_ctx *ctx, grn_string *nstr)
 }
 
 #ifdef WITH_NFKC
-uint_least8_t grn_nfkc_ctype(const unsigned char *str);
 const char *grn_nfkc_map1(const unsigned char *str);
 const char *grn_nfkc_map2(const unsigned char *prefix, const unsigned char *suffix);
 

  Modified: lib/str.c (+0 -1)
===================================================================
--- lib/str.c    2013-02-01 17:12:12 +0900 (a6e78d9)
+++ lib/str.c    2013-02-01 17:17:06 +0900 (924c697)
@@ -418,7 +418,6 @@ normalize_euc(grn_ctx *ctx, grn_str *nstr)
 }
 
 #ifdef WITH_NFKC
-uint_least8_t grn_nfkc_ctype(const unsigned char *str);
 const char *grn_nfkc_map1(const unsigned char *str);
 const char *grn_nfkc_map2(const unsigned char *prefix, const unsigned char *suffix);
 
-------------- next part --------------
HTML����������������������������...
Download 



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