[前][次][番号順一覧][スレッド一覧]

ruby-changes:43038

From: duerst <ko1@a...>
Date: Sun, 22 May 2016 14:45:52 +0900 (JST)
Subject: [ruby-changes:43038] duerst:r55112 (trunk): regenc.h/c: Define new function onigenc_not_support_case_map

duerst	2016-05-22 14:45:45 +0900 (Sun, 22 May 2016)

  New Revision: 55112

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55112

  Log:
    regenc.h/c: Define new function onigenc_not_support_case_map

  Modified files:
    trunk/ChangeLog
    trunk/regenc.c
    trunk/regenc.h
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55111)
+++ ChangeLog	(revision 55112)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun May 22 14:45:45 2016  Martin Duerst  <duerst@i...>
+
+        * regenc.h/c: Define new function onigenc_not_support_case_map
+
 Sun May 22 12:14:06 2016  NARUSE, Yui  <naruse@r...>
 
 	* include/ruby/ruby.h (rb_scan_args): use original rb_scan_args
Index: regenc.c
===================================================================
--- regenc.c	(revision 55111)
+++ regenc.c	(revision 55112)
@@ -576,6 +576,15 @@ onigenc_not_support_get_ctype_code_range https://github.com/ruby/ruby/blob/trunk/regenc.c#L576
   return ONIG_NO_SUPPORT_CONFIG;
 }
 
+#ifdef ONIG_CASE_MAPPING
+extern int
+onigenc_not_support_case_map (OnigCaseFoldType* flagP, const OnigUChar** pp, const OnigUChar* end, OnigUChar* to, OnigUChar* to_end, const struct OnigEncodingTypeST* enc)
+{
+    fprintf(stderr, "Unimplemented case mapping functionality: onigenc_not_support_case_map\n");
+    return ONIG_NO_SUPPORT_CONFIG;
+}
+#endif   /* ONIG_CASE_MAPPING */
+
 extern int
 onigenc_is_mbc_newline_0x0a(const UChar* p, const UChar* end, OnigEncoding enc ARG_UNUSED)
 {
Index: regenc.h
===================================================================
--- regenc.h	(revision 55111)
+++ regenc.h	(revision 55112)
@@ -132,6 +132,10 @@ ONIG_EXTERN int onigenc_get_case_fold_co https://github.com/ruby/ruby/blob/trunk/regenc.h#L132
 CONSTFUNC(ONIG_EXTERN int onigenc_not_support_get_ctype_code_range P_((OnigCtype ctype, OnigCodePoint* sb_out, const OnigCodePoint* ranges[], OnigEncoding enc)));
 PUREFUNC(ONIG_EXTERN int onigenc_is_mbc_newline_0x0a P_((const UChar* p, const UChar* end, OnigEncoding enc)));
 
+#ifdef ONIG_CASE_MAPPING
+  ONIG_EXTERN int    onigenc_not_support_case_map P_((OnigCaseFoldType* flagP, const OnigUChar** pp, const OnigUChar* end, OnigUChar* to, OnigUChar* to_end, const struct OnigEncodingTypeST* enc));
+#endif   /* ONIG_CASE_MAPPING */
+
 
 /* methods for single byte encoding */
 ONIG_EXTERN int onigenc_ascii_mbc_case_fold P_((OnigCaseFoldType flag, const UChar** p, const UChar* end, UChar* lower, OnigEncoding enc));
@@ -156,6 +160,10 @@ CONSTFUNC(ONIG_EXTERN int onigenc_mb4_co https://github.com/ruby/ruby/blob/trunk/regenc.h#L160
 ONIG_EXTERN int onigenc_mb4_code_to_mbc P_((OnigEncoding enc, OnigCodePoint code, UChar *buf));
 ONIG_EXTERN int onigenc_mb4_is_code_ctype P_((OnigEncoding enc, OnigCodePoint code, unsigned int ctype));
 
+#ifdef ONIG_CASE_MAPPING
+  ONIG_EXTERN int    onigenc_unicode_case_map P_((OnigCaseFoldType* flagP, const OnigUChar** pp, const OnigUChar* end, OnigUChar* to, OnigUChar* to_end, const struct OnigEncodingTypeST* enc));
+#endif   /* ONIG_CASE_MAPPING */
+
 
 /* in enc/unicode.c */
 ONIG_EXTERN int onigenc_unicode_is_code_ctype P_((OnigCodePoint code, unsigned int ctype, OnigEncoding enc));

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]