Skip to content

Commit

Permalink
Merge pull request #30 from k-takata/fix-typo
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
kkos authored Oct 19, 2016
2 parents fc91494 + 76c42ac commit d5e9cc2
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 22 deletions.
12 changes: 6 additions & 6 deletions HISTORY
Original file line number Diff line number Diff line change
Expand Up @@ -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().
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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().
Expand Down Expand Up @@ -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().
Expand Down
8 changes: 4 additions & 4 deletions doc/API
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion doc/API.ja
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@
2 op, op2, behavior, options: ���Ǥ���


# void onig_copy_encoding(OnigEncoding to, OnigOnigEncoding from)
# void onig_copy_encoding(OnigEncoding to, OnigEncoding from)

ʸ�����󥳡��ǥ��󥰤򥳥ԡ����롣

Expand Down
2 changes: 1 addition & 1 deletion doc/RE.ja
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@
���򽤾����ʤ���Фʤ�ʤ�)
+ ̾���դ���ͼ�����ȡ���ʬ���ƽФ���ǽ�ɲ�
+ ¿�Х���ʸ�������ɤ����ꤵ��Ƥ���Ȥ���
ʸ����������Ȭ�ʿ��ޤ��Ͻ�ϻ�ʿ�ɽ����Ϣ³�ϡ�¿�Х�������ɽ�����줿
ʸ����������Ȭ�ʿ��ޤ��Ͻ�ϻ�ʿ�ɽ����Ϣ³�ϡ�¿�Х�������ɽ�����줿
��Ĥ�ʸ���Ȳ�ᤵ���
(��. [\xa1\xa2], [\xa1\xa7-\xa4\xa1])
+ ʸ���������ǡ���Х���ʸ����¿�Х���ʸ�����ϰϻ���ϵ�����롣
Expand Down
2 changes: 1 addition & 1 deletion src/onigposix.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
6 changes: 3 additions & 3 deletions src/regcomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3913,7 +3913,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)
Expand Down Expand Up @@ -4641,7 +4641,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);
Expand Down Expand Up @@ -5133,7 +5133,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, "]");
Expand Down
2 changes: 1 addition & 1 deletion src/regenc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 UTS #18 */


#define ONIG_ENCODING_INIT_DEFAULT ONIG_ENCODING_ASCII
Expand Down
2 changes: 1 addition & 1 deletion src/regexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -3707,7 +3707,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)
Expand Down
2 changes: 1 addition & 1 deletion src/regint.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions src/regparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,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);
Expand Down Expand Up @@ -2520,7 +2520,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
Expand Down Expand Up @@ -3000,7 +3000,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)) {
Expand Down

0 comments on commit d5e9cc2

Please sign in to comment.