Lines Matching refs:p

67   UChar* p = ONIGENC_LEFT_ADJUST_CHAR_HEAD(enc, start, s);  in onigenc_get_right_adjust_char_head()  local
68 if (p < s) { in onigenc_get_right_adjust_char_head()
69 p += enclen(enc, p); in onigenc_get_right_adjust_char_head()
71 return p; in onigenc_get_right_adjust_char_head()
78 UChar* p = ONIGENC_LEFT_ADJUST_CHAR_HEAD(enc, start, s); in onigenc_get_right_adjust_char_head_with_prev() local
80 if (p < s) { in onigenc_get_right_adjust_char_head_with_prev()
81 if (prev) *prev = (const UChar* )p; in onigenc_get_right_adjust_char_head_with_prev()
82 p += enclen(enc, p); in onigenc_get_right_adjust_char_head_with_prev()
87 return p; in onigenc_get_right_adjust_char_head_with_prev()
113 onigenc_mbc_enc_len_end(OnigEncoding enc, const UChar* p, const UChar* end)
118 len = ONIGENC_MBC_ENC_LEN(enc, p);
119 n = (int )(end - p);
126 onigenc_step(OnigEncoding enc, const UChar* p, const UChar* end, int n) in onigenc_step() argument
128 UChar* q = (UChar* )p; in onigenc_step()
136 onigenc_strlen(OnigEncoding enc, const UChar* p, const UChar* end) in onigenc_strlen() argument
139 UChar* q = (UChar* )p; in onigenc_strlen()
152 UChar* p = (UChar* )s; in onigenc_strlen_null() local
155 if (*p == '\0') { in onigenc_strlen_null()
160 q = p + 1; in onigenc_strlen_null()
168 p += ONIGENC_MBC_ENC_LEN(enc, p); in onigenc_strlen_null()
177 UChar* p = (UChar* )s; in onigenc_str_bytelen_null() local
180 if (*p == '\0') { in onigenc_str_bytelen_null()
184 if (len == 1) return (int )(p - start); in onigenc_str_bytelen_null()
185 q = p + 1; in onigenc_str_bytelen_null()
191 if (len == 1) return (int )(p - start); in onigenc_str_bytelen_null()
193 p += ONIGENC_MBC_ENC_LEN(enc, p); in onigenc_str_bytelen_null()
442 const OnigUChar* p, const OnigUChar* end ARG_UNUSED, in onigenc_ascii_get_case_fold_codes_by_str() argument
445 if (0x41 <= *p && *p <= 0x5a) { in onigenc_ascii_get_case_fold_codes_by_str()
448 items[0].code[0] = (OnigCodePoint )(*p + 0x20); in onigenc_ascii_get_case_fold_codes_by_str()
451 else if (0x61 <= *p && *p <= 0x7a) { in onigenc_ascii_get_case_fold_codes_by_str()
454 items[0].code[0] = (OnigCodePoint )(*p - 0x20); in onigenc_ascii_get_case_fold_codes_by_str()
502 const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) in onigenc_get_case_fold_codes_by_str_with_map() argument
504 if (0x41 <= *p && *p <= 0x5a) { in onigenc_get_case_fold_codes_by_str_with_map()
507 items[0].code[0] = (OnigCodePoint )(*p + 0x20); in onigenc_get_case_fold_codes_by_str_with_map()
508 if (*p == 0x53 && ess_tsett_flag != 0 && end > p + 1 in onigenc_get_case_fold_codes_by_str_with_map()
509 && (*(p+1) == 0x53 || *(p+1) == 0x73)) { in onigenc_get_case_fold_codes_by_str_with_map()
519 else if (0x61 <= *p && *p <= 0x7a) { in onigenc_get_case_fold_codes_by_str_with_map()
522 items[0].code[0] = (OnigCodePoint )(*p - 0x20); in onigenc_get_case_fold_codes_by_str_with_map()
523 if (*p == 0x73 && ess_tsett_flag != 0 && end > p + 1 in onigenc_get_case_fold_codes_by_str_with_map()
524 && (*(p+1) == 0x73 || *(p+1) == 0x53)) { in onigenc_get_case_fold_codes_by_str_with_map()
534 else if (*p == 0xdf && ess_tsett_flag != 0) { in onigenc_get_case_fold_codes_by_str_with_map()
561 if (*p == map[i].from) { in onigenc_get_case_fold_codes_by_str_with_map()
567 else if (*p == map[i].to) { in onigenc_get_case_fold_codes_by_str_with_map()
589 onigenc_is_mbc_newline_0x0a(const UChar* p, const UChar* end) in onigenc_is_mbc_newline_0x0a() argument
591 if (p < end) { in onigenc_is_mbc_newline_0x0a()
592 if (*p == 0x0a) return 1; in onigenc_is_mbc_newline_0x0a()
599 onigenc_ascii_mbc_case_fold(OnigCaseFoldType flag ARG_UNUSED, const UChar** p, in onigenc_ascii_mbc_case_fold() argument
602 *lower = ONIGENC_ASCII_CODE_TO_LOWER_CASE(**p); in onigenc_ascii_mbc_case_fold()
604 (*p)++; in onigenc_ascii_mbc_case_fold()
613 const UChar* p = *pp;
616 return ONIGENC_IS_ASCII_CODE_CASE_AMBIG(*p);
621 onigenc_single_byte_mbc_enc_len(const UChar* p ARG_UNUSED) in onigenc_single_byte_mbc_enc_len()
627 onigenc_single_byte_mbc_to_code(const UChar* p, const UChar* end ARG_UNUSED) in onigenc_single_byte_mbc_to_code() argument
629 return (OnigCodePoint )(*p); in onigenc_single_byte_mbc_to_code()
675 const UChar* p, const UChar* end) in onigenc_length_check_is_valid_mbc_string() argument
677 while (p < end) { in onigenc_length_check_is_valid_mbc_string()
678 p += enclen(enc, p); in onigenc_length_check_is_valid_mbc_string()
681 if (p != end) in onigenc_length_check_is_valid_mbc_string()
694 onigenc_mbn_mbc_to_code(OnigEncoding enc, const UChar* p, const UChar* end) in onigenc_mbn_mbc_to_code() argument
699 len = enclen(enc, p); in onigenc_mbn_mbc_to_code()
700 n = (OnigCodePoint )(*p++); in onigenc_mbn_mbc_to_code()
704 if (p >= end) break; in onigenc_mbn_mbc_to_code()
705 c = *p++; in onigenc_mbn_mbc_to_code()
717 const UChar *p = *pp; in onigenc_mbn_mbc_case_fold() local
719 if (ONIGENC_IS_MBC_ASCII(p)) { in onigenc_mbn_mbc_case_fold()
720 *lower = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p); in onigenc_mbn_mbc_case_fold()
727 len = enclen(enc, p); in onigenc_mbn_mbc_case_fold()
729 *lower++ = *p++; in onigenc_mbn_mbc_case_fold()
741 const UChar* p = *pp;
743 if (ONIGENC_IS_MBC_ASCII(p)) {
745 return ONIGENC_IS_ASCII_CODE_CASE_AMBIG(*p);
748 (*pp) += enclen(enc, p);
772 UChar *p = buf; in onigenc_mb2_code_to_mbc() local
775 *p++ = (UChar )((code >> 8) & 0xff); in onigenc_mb2_code_to_mbc()
777 *p++ = (UChar )(code & 0xff); in onigenc_mb2_code_to_mbc()
780 if (enclen(enc, buf) != (p - buf)) in onigenc_mb2_code_to_mbc()
783 return p - buf; in onigenc_mb2_code_to_mbc()
789 UChar *p = buf; in onigenc_mb4_code_to_mbc() local
792 *p++ = (UChar )((code >> 24) & 0xff); in onigenc_mb4_code_to_mbc()
794 if ((code & 0xff0000) != 0 || p != buf) { in onigenc_mb4_code_to_mbc()
795 *p++ = (UChar )((code >> 16) & 0xff); in onigenc_mb4_code_to_mbc()
797 if ((code & 0xff00) != 0 || p != buf) { in onigenc_mb4_code_to_mbc()
798 *p++ = (UChar )((code >> 8) & 0xff); in onigenc_mb4_code_to_mbc()
800 *p++ = (UChar )(code & 0xff); in onigenc_mb4_code_to_mbc()
803 if (enclen(enc, buf) != (p - buf)) in onigenc_mb4_code_to_mbc()
806 return p - buf; in onigenc_mb4_code_to_mbc()
810 onigenc_minimum_property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end) in onigenc_minimum_property_name_to_ctype() argument
833 len = onigenc_strlen(enc, p, end); in onigenc_minimum_property_name_to_ctype()
836 onigenc_with_ascii_strncmp(enc, p, end, pb->name, pb->len) == 0) in onigenc_minimum_property_name_to_ctype()
874 onigenc_with_ascii_strncmp(OnigEncoding enc, const UChar* p, const UChar* end, in onigenc_with_ascii_strncmp() argument
880 if (p >= end) return (int )(*sascii); in onigenc_with_ascii_strncmp()
882 c = (int )ONIGENC_MBC_TO_CODE(enc, p, end); in onigenc_with_ascii_strncmp()
887 p += enclen(enc, p); in onigenc_with_ascii_strncmp()