Lines Matching refs:p

56   UChar* p = ONIGENC_LEFT_ADJUST_CHAR_HEAD(enc, start, s);  in onigenc_get_right_adjust_char_head()  local
57 if (p < s) { in onigenc_get_right_adjust_char_head()
58 p += enclen(enc, p); in onigenc_get_right_adjust_char_head()
60 return p; in onigenc_get_right_adjust_char_head()
67 UChar* p = ONIGENC_LEFT_ADJUST_CHAR_HEAD(enc, start, s); in onigenc_get_right_adjust_char_head_with_prev() local
69 if (p < s) { in onigenc_get_right_adjust_char_head_with_prev()
70 if (prev) *prev = (const UChar* )p; in onigenc_get_right_adjust_char_head_with_prev()
71 p += enclen(enc, p); in onigenc_get_right_adjust_char_head_with_prev()
76 return p; in onigenc_get_right_adjust_char_head_with_prev()
101 onigenc_step(OnigEncoding enc, const UChar* p, const UChar* end, int n) in onigenc_step() argument
103 UChar* q = (UChar* )p; in onigenc_step()
111 onigenc_strlen(OnigEncoding enc, const UChar* p, const UChar* end) in onigenc_strlen() argument
114 UChar* q = (UChar* )p; in onigenc_strlen()
127 UChar* p = (UChar* )s; in onigenc_strlen_null() local
130 if (*p == '\0') { in onigenc_strlen_null()
135 q = p + 1; in onigenc_strlen_null()
143 p += ONIGENC_MBC_ENC_LEN(enc, p); in onigenc_strlen_null()
152 UChar* p = (UChar* )s; in onigenc_str_bytelen_null() local
155 if (*p == '\0') { in onigenc_str_bytelen_null()
159 if (len == 1) return (int )(p - start); in onigenc_str_bytelen_null()
160 q = p + 1; in onigenc_str_bytelen_null()
166 if (len == 1) return (int )(p - start); in onigenc_str_bytelen_null()
168 p += ONIGENC_MBC_ENC_LEN(enc, p); in onigenc_str_bytelen_null()
417 const OnigUChar* p, const OnigUChar* end ARG_UNUSED, in onigenc_ascii_get_case_fold_codes_by_str() argument
420 if (0x41 <= *p && *p <= 0x5a) { in onigenc_ascii_get_case_fold_codes_by_str()
423 items[0].code[0] = (OnigCodePoint )(*p + 0x20); in onigenc_ascii_get_case_fold_codes_by_str()
426 else if (0x61 <= *p && *p <= 0x7a) { in onigenc_ascii_get_case_fold_codes_by_str()
429 items[0].code[0] = (OnigCodePoint )(*p - 0x20); in onigenc_ascii_get_case_fold_codes_by_str()
477 const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) in onigenc_get_case_fold_codes_by_str_with_map() argument
479 if (0x41 <= *p && *p <= 0x5a) { in onigenc_get_case_fold_codes_by_str_with_map()
482 items[0].code[0] = (OnigCodePoint )(*p + 0x20); in onigenc_get_case_fold_codes_by_str_with_map()
483 if (*p == 0x53 && ess_tsett_flag != 0 && end > p + 1 in onigenc_get_case_fold_codes_by_str_with_map()
484 && (*(p+1) == 0x53 || *(p+1) == 0x73)) { in onigenc_get_case_fold_codes_by_str_with_map()
494 else if (0x61 <= *p && *p <= 0x7a) { in onigenc_get_case_fold_codes_by_str_with_map()
497 items[0].code[0] = (OnigCodePoint )(*p - 0x20); in onigenc_get_case_fold_codes_by_str_with_map()
498 if (*p == 0x73 && ess_tsett_flag != 0 && end > p + 1 in onigenc_get_case_fold_codes_by_str_with_map()
499 && (*(p+1) == 0x73 || *(p+1) == 0x53)) { in onigenc_get_case_fold_codes_by_str_with_map()
509 else if (*p == 0xdf && ess_tsett_flag != 0) { in onigenc_get_case_fold_codes_by_str_with_map()
536 if (*p == map[i].from) { in onigenc_get_case_fold_codes_by_str_with_map()
542 else if (*p == map[i].to) { in onigenc_get_case_fold_codes_by_str_with_map()
564 onigenc_is_mbc_newline_0x0a(const UChar* p, const UChar* end) in onigenc_is_mbc_newline_0x0a() argument
566 if (p < end) { in onigenc_is_mbc_newline_0x0a()
567 if (*p == 0x0a) return 1; in onigenc_is_mbc_newline_0x0a()
574 onigenc_ascii_mbc_case_fold(OnigCaseFoldType flag ARG_UNUSED, const UChar** p, in onigenc_ascii_mbc_case_fold() argument
577 *lower = ONIGENC_ASCII_CODE_TO_LOWER_CASE(**p); in onigenc_ascii_mbc_case_fold()
579 (*p)++; in onigenc_ascii_mbc_case_fold()
588 const UChar* p = *pp;
591 return ONIGENC_IS_ASCII_CODE_CASE_AMBIG(*p);
596 onigenc_single_byte_mbc_enc_len(const UChar* p ARG_UNUSED) in onigenc_single_byte_mbc_enc_len()
602 onigenc_single_byte_mbc_to_code(const UChar* p, const UChar* end ARG_UNUSED) in onigenc_single_byte_mbc_to_code() argument
604 return (OnigCodePoint )(*p); in onigenc_single_byte_mbc_to_code()
642 onigenc_mbn_mbc_to_code(OnigEncoding enc, const UChar* p, const UChar* end) in onigenc_mbn_mbc_to_code() argument
647 len = enclen(enc, p); in onigenc_mbn_mbc_to_code()
648 n = (OnigCodePoint )(*p++); in onigenc_mbn_mbc_to_code()
652 if (p >= end) break; in onigenc_mbn_mbc_to_code()
653 c = *p++; in onigenc_mbn_mbc_to_code()
665 const UChar *p = *pp; in onigenc_mbn_mbc_case_fold() local
667 if (ONIGENC_IS_MBC_ASCII(p)) { in onigenc_mbn_mbc_case_fold()
668 *lower = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p); in onigenc_mbn_mbc_case_fold()
675 len = enclen(enc, p); in onigenc_mbn_mbc_case_fold()
677 *lower++ = *p++; in onigenc_mbn_mbc_case_fold()
689 const UChar* p = *pp;
691 if (ONIGENC_IS_MBC_ASCII(p)) {
693 return ONIGENC_IS_ASCII_CODE_CASE_AMBIG(*p);
696 (*pp) += enclen(enc, p);
720 UChar *p = buf; in onigenc_mb2_code_to_mbc() local
723 *p++ = (UChar )((code >> 8) & 0xff); in onigenc_mb2_code_to_mbc()
725 *p++ = (UChar )(code & 0xff); in onigenc_mb2_code_to_mbc()
728 if (enclen(enc, buf) != (p - buf)) in onigenc_mb2_code_to_mbc()
731 return p - buf; in onigenc_mb2_code_to_mbc()
737 UChar *p = buf; in onigenc_mb4_code_to_mbc() local
740 *p++ = (UChar )((code >> 24) & 0xff); in onigenc_mb4_code_to_mbc()
742 if ((code & 0xff0000) != 0 || p != buf) { in onigenc_mb4_code_to_mbc()
743 *p++ = (UChar )((code >> 16) & 0xff); in onigenc_mb4_code_to_mbc()
745 if ((code & 0xff00) != 0 || p != buf) { in onigenc_mb4_code_to_mbc()
746 *p++ = (UChar )((code >> 8) & 0xff); in onigenc_mb4_code_to_mbc()
748 *p++ = (UChar )(code & 0xff); in onigenc_mb4_code_to_mbc()
751 if (enclen(enc, buf) != (p - buf)) in onigenc_mb4_code_to_mbc()
754 return p - buf; in onigenc_mb4_code_to_mbc()
758 onigenc_minimum_property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end) in onigenc_minimum_property_name_to_ctype() argument
781 len = onigenc_strlen(enc, p, end); in onigenc_minimum_property_name_to_ctype()
784 onigenc_with_ascii_strncmp(enc, p, end, pb->name, pb->len) == 0) in onigenc_minimum_property_name_to_ctype()
822 onigenc_with_ascii_strncmp(OnigEncoding enc, const UChar* p, const UChar* end, in onigenc_with_ascii_strncmp() argument
828 if (p >= end) return (int )(*sascii); in onigenc_with_ascii_strncmp()
830 c = (int )ONIGENC_MBC_TO_CODE(enc, p, end); in onigenc_with_ascii_strncmp()
835 p += enclen(enc, p); in onigenc_with_ascii_strncmp()