Lines Matching refs:p
44 char *p; in onig_error_code_to_format() local
50 p = "mismatch"; break; in onig_error_code_to_format()
52 p = "no support in this configuration"; break; in onig_error_code_to_format()
54 p = "fail to memory allocation"; break; in onig_error_code_to_format()
56 p = "match-stack limit over"; break; in onig_error_code_to_format()
58 p = "parse depth limit over"; break; in onig_error_code_to_format()
60 p = "undefined type (bug)"; break; in onig_error_code_to_format()
62 p = "internal parser error (bug)"; break; in onig_error_code_to_format()
64 p = "stack error (bug)"; break; in onig_error_code_to_format()
66 p = "undefined bytecode (bug)"; break; in onig_error_code_to_format()
68 p = "unexpected bytecode (bug)"; break; in onig_error_code_to_format()
70 p = "default multibyte-encoding is not setted"; break; in onig_error_code_to_format()
72 p = "can't convert to wide-char on specified multibyte-encoding"; break; in onig_error_code_to_format()
74 p = "fail to initialize"; break; in onig_error_code_to_format()
76 p = "invalid argument"; break; in onig_error_code_to_format()
78 p = "end pattern at left brace"; break; in onig_error_code_to_format()
80 p = "end pattern at left bracket"; break; in onig_error_code_to_format()
82 p = "empty char-class"; break; in onig_error_code_to_format()
84 p = "premature end of char-class"; break; in onig_error_code_to_format()
86 p = "end pattern at escape"; break; in onig_error_code_to_format()
88 p = "end pattern at meta"; break; in onig_error_code_to_format()
90 p = "end pattern at control"; break; in onig_error_code_to_format()
92 p = "invalid meta-code syntax"; break; in onig_error_code_to_format()
94 p = "invalid control-code syntax"; break; in onig_error_code_to_format()
96 p = "char-class value at end of range"; break; in onig_error_code_to_format()
98 p = "char-class value at start of range"; break; in onig_error_code_to_format()
100 p = "unmatched range specifier in char-class"; break; in onig_error_code_to_format()
102 p = "target of repeat operator is not specified"; break; in onig_error_code_to_format()
104 p = "target of repeat operator is invalid"; break; in onig_error_code_to_format()
106 p = "nested repeat operator"; break; in onig_error_code_to_format()
108 p = "unmatched close parenthesis"; break; in onig_error_code_to_format()
110 p = "end pattern with unmatched parenthesis"; break; in onig_error_code_to_format()
112 p = "end pattern in group"; break; in onig_error_code_to_format()
114 p = "undefined group option"; break; in onig_error_code_to_format()
116 p = "invalid POSIX bracket type"; break; in onig_error_code_to_format()
118 p = "invalid pattern in look-behind"; break; in onig_error_code_to_format()
120 p = "invalid repeat range {lower,upper}"; break; in onig_error_code_to_format()
122 p = "too big number"; break; in onig_error_code_to_format()
124 p = "too big number for repeat range"; break; in onig_error_code_to_format()
126 p = "upper is smaller than lower in repeat range"; break; in onig_error_code_to_format()
128 p = "empty range in char class"; break; in onig_error_code_to_format()
130 p = "mismatch multibyte code length in char-class range"; break; in onig_error_code_to_format()
132 p = "too many multibyte code ranges are specified"; break; in onig_error_code_to_format()
134 p = "too short multibyte code string"; break; in onig_error_code_to_format()
136 p = "too big backref number"; break; in onig_error_code_to_format()
139 p = "invalid backref number/name"; break; in onig_error_code_to_format()
141 p = "invalid backref number"; break; in onig_error_code_to_format()
144 p = "numbered backref/call is not allowed. (use name)"; break; in onig_error_code_to_format()
146 p = "too many captures"; break; in onig_error_code_to_format()
148 p = "too big wide-char value"; break; in onig_error_code_to_format()
150 p = "too long wide-char value"; break; in onig_error_code_to_format()
152 p = "invalid code point value"; break; in onig_error_code_to_format()
154 p = "group name is empty"; break; in onig_error_code_to_format()
156 p = "invalid group name <%n>"; break; in onig_error_code_to_format()
159 p = "invalid char in group name <%n>"; break; in onig_error_code_to_format()
161 p = "invalid char in group number <%n>"; break; in onig_error_code_to_format()
164 p = "undefined name <%n> reference"; break; in onig_error_code_to_format()
166 p = "undefined group <%n> reference"; break; in onig_error_code_to_format()
168 p = "multiplex defined name <%n>"; break; in onig_error_code_to_format()
170 p = "multiplex definition name <%n> call"; break; in onig_error_code_to_format()
172 p = "never ending recursion"; break; in onig_error_code_to_format()
174 p = "group number is too big for capture history"; break; in onig_error_code_to_format()
176 p = "invalid character property name {%n}"; break; in onig_error_code_to_format()
178 p = "not supported encoding combination"; break; in onig_error_code_to_format()
180 p = "invalid combination of options"; break; in onig_error_code_to_format()
182 p = "library is not initialized"; break; in onig_error_code_to_format()
185 p = "undefined error code"; break; in onig_error_code_to_format()
188 return (UChar* )p; in onig_error_code_to_format()
205 UChar *p; in to_ascii() local
209 p = s; in to_ascii()
211 while (p < end) { in to_ascii()
212 code = ONIGENC_MBC_TO_CODE(enc, p, end); in to_ascii()
234 p += enclen(enc, p); in to_ascii()
238 *is_over = ((p < end) ? 1 : 0); in to_ascii()
263 UChar *p, *q; local
283 p = s;
288 xmemcpy(p, parbuf, len);
289 p += len;
291 xmemcpy(p, "...", 3);
292 p += 3;
301 *p++ = *q++;
304 *p = '\0';
305 len = p - s;
337 UChar *p, *s, *bp; local
351 p = pat;
352 while (p < pat_end) {
353 if (ONIGENC_IS_MBC_HEAD(enc, p)) {
354 len = enclen(enc, p);
356 while (len-- > 0) *s++ = *p++;
362 sprint_byte_with_x((char* )bs, (unsigned int )(*p++));
369 else if (*p == '\\') {
370 *s++ = *p++;
371 len = enclen(enc, p);
372 while (len-- > 0) *s++ = *p++;
374 else if (*p == '/') {
376 *s++ = *p++;
378 else if (!ONIGENC_IS_CODE_PRINT(enc, *p) &&
379 !ONIGENC_IS_CODE_SPACE(enc, *p)) {
380 sprint_byte_with_x((char* )bs, (unsigned int )(*p++));
386 *s++ = *p++;