]> granicus.if.org Git - onig/commitdiff
fix typo
authorkosako <kosako@sofnec.co.jp>
Thu, 20 Oct 2016 04:03:30 +0000 (13:03 +0900)
committerkosako <kosako@sofnec.co.jp>
Thu, 20 Oct 2016 04:03:30 +0000 (13:03 +0900)
HISTORY
doc/API
doc/API.ja
doc/RE.ja
src/onigposix.h
src/regcomp.c
src/regenc.h
src/regexec.c
src/regint.h
src/regparse.c

diff --git a/HISTORY b/HISTORY
index 9894c7d277eb5b15ebd052a1f7b528d43f96615b..3595baa6790b5aa74d058dadee3a570808922644 100644 (file)
--- a/HISTORY
+++ b/HISTORY
@@ -338,7 +338,7 @@ History
 2006/10/10: [impl] remove OP_WORD_SB and OP_WORD_MB.
 2006/10/10: [impl] remove OP_EXACT1_IC and OP_EXACTN_IC from match_at().
 2006/10/10: [impl] should free new_str in expand_case_fold_string().
-2006/10/06: [dist] add test entrys to sample/encode.c.
+2006/10/06: [dist] add test entries to sample/encode.c.
 2006/10/06: [impl] re-implement caseless match (case-fold).
 2006/10/06: [impl] expand string node by case fold variations.
                    add expand_case_fold_string().
@@ -907,7 +907,7 @@ History
 2004/11/16: [impl] add get_type_cc_node method to OnigEncodingType.
 2004/11/15: [impl] add st.h and st.c from Ruby 1.9.
                    use st-hash always.
-2004/11/12: [impl] change menber 'not' of CClassNode to 'flags'.
+2004/11/12: [impl] change member 'not' of CClassNode to 'flags'.
                    add flags FLAG_CCLASS_NOT and FLAG_CCLASS_SHARE.
 2004/11/12: [impl] add onig_is_in_code_range_array() to enc/unicode.c.
 2004/11/12: [impl] fix CRWord in enc/unicode.c and MBWord in enc/utf8.c.
@@ -952,7 +952,7 @@ History
 2004/10/18: [impl] (thanks Imai Yasumasa)
                    enclose #include <sys/types.h> by #ifndef __BORLANDC__.
 2004/10/18: [bug]  (thanks Imai Yasumasa)
-                   memory acess violation in select_opt_exact_info().
+                   memory access violation in select_opt_exact_info().
 2004/09/25: [dist] fix doc/API and doc/API.ja.
 2004/09/25: [bug]  fix OP_SEMI_END_BUF process in match_at() for
                    the case USE_NEWLINE_AT_END_OF_STRING_HAS_EMPTY_LINE
@@ -1163,7 +1163,7 @@ History
 2004/04/15: [new]  add onig_get_ambig_flag().
 2004/04/14: [bug]  (thanks Isao Sonobe)
                    undefined bytecode error happens if ONIG_OPTION_FIND_LONGEST
-                   is setted.
+                   is set.
                    should finish matching process if find-condition
                    is fail at OP_END in match_at().
 2004/04/12: [impl] add ambig_flag to regex_t.
@@ -1721,7 +1721,7 @@ History
 2003/03/12: [spec] change named backref and subexp call format.
                    backref: \k<name>, call: \g<name>     (thanks akr)
 2003/03/11: [inst] add regparse.[ch] in win32/Makefile.
-2003/03/11: [bug]  if UNALIGNED_WORD_ACCESS isn't setted
+2003/03/11: [bug]  if UNALIGNED_WORD_ACCESS isn't set,
                    then compile error in unset_addr_list_fix().  (thanks knu)
 2003/03/10: [impl] divide regcomp.c to regcomp.c, regparse.c and regparse.h.
 2003/03/10: [bug]  should handle multi-byte code name in fetch_name().
@@ -1788,7 +1788,7 @@ History
 2003/02/28: [impl] add opcode OP_CALL, OP_RETURN.
                    add stack type STK_CALL_FRAME, STK_RETURN, STK_MEM_END.
 2003/02/26: [spec] add new syntax behavior REG_SYN_STRICT_CHECK_BACKREF_NUMBER.
-                   if it is setted, then error /(\1)/, /\1(..)/ etc...
+                   if it is set, then error /(\1)/, /\1(..)/ etc...
 2003/02/26: [spec] if backref number is greater than max group number,
                    then return compile error. (REGERR_INVALID_BACKREF_NUMBER)
 2003/02/26: [tune] bad implemented N_ALT case in get_min_match_length().
diff --git a/doc/API b/doc/API
index 8e824f5a336bd4367a801c3d3ab0045e48ae40ce..c639432e15b2d6de25b9fa3cbdca70e143ab0fd5 100644 (file)
--- a/doc/API
+++ b/doc/API
@@ -432,9 +432,9 @@ Oniguruma API  Version 6.1.0  2016/08/22
   1 region:  match region data.
   2 at:      callback position.
 
-    ONIG_TRAVERSE_CALLBACK_AT_FIRST: callback first, then traverse childs.
-    ONIG_TRAVERSE_CALLBACK_AT_LAST:  traverse childs first, then callback.
-    ONIG_TRAVERSE_CALLBACK_AT_BOTH:  callback first, then traverse childs,
+    ONIG_TRAVERSE_CALLBACK_AT_FIRST: callback first, then traverse children.
+    ONIG_TRAVERSE_CALLBACK_AT_LAST:  traverse children first, then callback.
+    ONIG_TRAVERSE_CALLBACK_AT_BOTH:  callback first, then traverse children,
                                      and at last callback again.
 
   3 func:    callback function.
@@ -553,7 +553,7 @@ Oniguruma API  Version 6.1.0  2016/08/22
   2 op, op2, behavior, options: value of element.
 
 
-# void onig_copy_encoding(OnigEncoding to, OnigOnigEncoding from)
+# void onig_copy_encoding(OnigEncoding to, OnigEncoding from)
 
   Copy encoding.
 
index f617a1c926af438d29d9979a3db8714d5b0e5869..25975100aabc2264ef1c4309a7beb41cad38de89 100644 (file)
   2 op, op2, behavior, options: Í×ÁǤÎÃÍ
 
 
-# void onig_copy_encoding(OnigEncoding to, OnigOnigEncoding from)
+# void onig_copy_encoding(OnigEncoding to, OnigEncoding from)
 
   Ê¸»ú¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤ò¥³¥Ô¡¼¤¹¤ë¡£
 
index bc877f203f4321d2ae4ff8e47fc7620ee741523a..cf89c8fcba1ec1338eb703da533422def4cb9e96 100644 (file)
--- a/doc/RE.ja
+++ b/doc/RE.ja
       ÂàÈò½¤¾þ¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤)
    + Ì¾Á°ÉÕ¤­Êá³Í¼°½¸¹ç¤È¡¢Éôʬ¼°¸Æ½Ð¤·µ¡Ç½ÄɲÃ
    + Â¿¥Ð¥¤¥Èʸ»ú¥³¡¼¥É¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¤È¤­¡¢
-     Ê¸»ú½¸¹ç¤ÎÃæ¤ÇȬ¿Ê¿ô¤Þ¤¿¤Ï½½Ï»¿Ê¿ôɽ¸½¤ÎϢ³¤Ï¡¢Â¿¥Ð¥¤¥ÈÉä¹ç¤Çɽ¸½¤µ¤ì¤¿
+     Ê¸»ú½¸¹ç¤ÎÃæ¤ÇȬ¿Ê¿ô¤Þ¤¿¤Ï½½Ï»¿Ê¿ôɽ¸½¤ÎϢ³¤Ï¡¢Â¿¥Ð¥¤¥ÈÉä¹æ¤Çɽ¸½¤µ¤ì¤¿
      °ì¸Ä¤Îʸ»ú¤È²ò¼á¤µ¤ì¤ë
      (Îã. [\xa1\xa2], [\xa1\xa7-\xa4\xa1])
    + Ê¸»ú½¸¹ç¤ÎÃæ¤Ç¡¢°ì¥Ð¥¤¥Èʸ»ú¤È¿¥Ð¥¤¥Èʸ»ú¤ÎÈÏ°Ï»ØÄê¤Ïµö¤µ¤ì¤ë¡£
index 6c415375e0ec0a8a9e221257f3ae7bbdaac5899d..2af371751c927f7210df30763b5394a4f2b78d44 100644 (file)
@@ -39,7 +39,7 @@ extern "C" {
 #define REG_NEWLINE        (1<<1)
 #define REG_NOTBOL         (1<<2)
 #define REG_NOTEOL         (1<<3)
-#define REG_EXTENDED       (1<<4) /* if not setted, Basic Onigular Expression */
+#define REG_EXTENDED       (1<<4) /* if not set, Basic Onigular Expression */
 #define REG_NOSUB          (1<<5)
 
 /* POSIX error codes */
index 4f6871efb0555be85e38a2de0cd17d93c3845b05..8d9d5ff3754e2d26b41a251dc2ed8688012b7faa 100644 (file)
@@ -3928,7 +3928,7 @@ setup_tree(Node* node, regex_t* reg, int state, ScanEnv* env)
   return r;
 }
 
-/* set skip map for Boyer-Moor search */
+/* set skip map for Boyer-Moore search */
 static int
 set_bm_skip(UChar* s, UChar* end, OnigEncoding enc ARG_UNUSED,
            UChar skip[], int** int_skip)
@@ -4656,7 +4656,7 @@ optimize_node_left(Node* node, NodeOptInfo* opt, OptEnv* env)
       int i, z;
       CClassNode* cc = NCCLASS(node);
 
-      /* no need to check ignore case. (setted in setup_tree()) */
+      /* no need to check ignore case. (set in setup_tree()) */
 
       if (IS_NOT_NULL(cc->mbuf) || IS_NCCLASS_NOT(cc)) {
         OnigLen min = ONIGENC_MBC_MINLEN(env->enc);
@@ -5151,7 +5151,7 @@ print_anchor(FILE* f, int anchor)
   }
   if (anchor & ANCHOR_ANYCHAR_STAR_ML) {
     if (q) fprintf(f, ", ");
-    fprintf(f, "anychar-star-pl");
+    fprintf(f, "anychar-star-ml");
   }
 
   fprintf(f, "]");
index 49227fa92d39917c7345b7392811d7b138ccbe81..e119dab5a6f03a7b72205ce2dfa4c5409c3b214a 100644 (file)
@@ -110,7 +110,7 @@ struct PropertyNameCtype {
 /* #define USE_CRNL_AS_LINE_TERMINATOR */
 #define USE_UNICODE_PROPERTIES
 /* #define USE_UNICODE_CASE_FOLD_TURKISH_AZERI */
-/* #define USE_UNICODE_ALL_LINE_TERMINATORS */  /* see Unicode.org UTF#18 */
+/* #define USE_UNICODE_ALL_LINE_TERMINATORS */  /* see Unicode.org UT#18 */
 
 
 #define ONIG_ENCODING_INIT_DEFAULT           ONIG_ENCODING_ASCII
index c96cc8638bd1935757d825a611a17bb163619adf..7e8d3d15c82530eabdaada738f989c8ec2d4b181 100644 (file)
@@ -3722,7 +3722,7 @@ onig_search(regex_t* reg, const UChar* str, const UChar* end,
   MATCH_ARG_FREE(msa);
 
   /* If result is mismatch and no FIND_NOT_EMPTY option,
-     then the region is not setted in match_at(). */
+     then the region is not set in match_at(). */
   if (IS_FIND_NOT_EMPTY(reg->options) && region
 #ifdef USE_POSIX_API_REGION_OPTION
       && !IS_POSIX_REGION(option)
index d320e269b43bb8bad82a29be79532e80d41176b1..7a3283dfd89f2bd76066ec4ddcc9a92212ac6760 100644 (file)
@@ -685,7 +685,7 @@ typedef struct _OnigStackType {
     struct {
       int num;           /* memory num */
       UChar *pstr;       /* start/end position */
-      /* Following information is setted, if this stack type is MEM-START */
+      /* Following information is set, if this stack type is MEM-START */
       OnigStackIndex start;  /* prev. info (for backtrack  "(...)*" ) */
       OnigStackIndex end;    /* prev. info (for backtrack  "(...)*" ) */
     } mem;
index fd491a00eaf78e681dc8a352bdb082143d28c02b..8f1d1cbf3b726a452290b8d5675c769a07db6a93 100644 (file)
@@ -1459,7 +1459,7 @@ str_node_split_last_char(StrNode* sn, OnigEncoding enc)
 
   if (sn->end > sn->s) {
     p = onigenc_get_prev_char_head(enc, sn->s, sn->end);
-    if (p && p > sn->s) { /* can be splitted. */
+    if (p && p > sn->s) { /* can be split. */
       n = node_new_str(p, sn->end);
       if ((sn->flag & NSTR_RAW) != 0)
         NSTRING_SET_RAW(n);
@@ -2530,7 +2530,7 @@ fetch_name_with_level(OnigCodePoint start_code, UChar** src, UChar* end,
 #endif /* USE_BACKREF_WITH_LEVEL */
 
 /*
-  def: 0 -> define name    (don't allow number name)
+  ref: 0 -> define name    (don't allow number name)
        1 -> reference name (allow number name)
 */
 static int
@@ -3010,7 +3010,7 @@ fetch_token_in_cc(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
   else if (c == '[') {
     if (IS_SYNTAX_OP(syn, ONIG_SYN_OP_POSIX_BRACKET) && (PPEEK_IS(':'))) {
       OnigCodePoint send[] = { (OnigCodePoint )':', (OnigCodePoint )']' };
-      tok->backp = p; /* point at '[' is readed */
+      tok->backp = p; /* point at '[' is read */
       PINC;
       if (str_exist_check_with_esc(send, 2, p, end,
                                    (OnigCodePoint )']', enc, syn)) {