summaryrefslogtreecommitdiff
path: root/doc/API
diff options
context:
space:
mode:
Diffstat (limited to 'doc/API')
-rw-r--r--doc/API25
1 files changed, 22 insertions, 3 deletions
diff --git a/doc/API b/doc/API
index f3b8875..9904a06 100644
--- a/doc/API
+++ b/doc/API
@@ -1,13 +1,19 @@
-Oniguruma API Version 5.9.2 2008/02/19
+Oniguruma API Version 6.0.0 2016/05/06
#include <oniguruma.h>
-# int onig_init(void)
+# int onig_initialize(OnigEncoding use_encodings[], int num_encodings)
Initialize library.
- You don't have to call it explicitly, because it is called in onig_new().
+ You have to call it explicitly.
+
+ * onig_init() is deprecated.
+
+ arguments
+ 1 use_encodings: array of encodings used in application.
+ 2 num_encodings: number of encodings.
# int onig_error_code_to_str(UChar* err_buf, int err_code, ...)
@@ -585,6 +591,19 @@ Oniguruma API Version 5.9.2 2008/02/19
normal return: ONIG_NORMAL
+# int onig_unicode_define_user_property(const char* name, OnigCodePoint* ranges))
+
+ Define new Unicode property.
+ (This function is not thread safe.)
+
+ arguments
+ 1 name: property name (ASCII only. character ' ', '-', '_' are ignored.)
+ 2 ranges: property code point ranges
+ (first element is number of ranges.)
+
+ normal return: ONIG_NORMAL
+
+
# int onig_end(void)
The use of this library is finished.