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 = "undefined type (bug)"; break; in onig_error_code_to_format()
60 p = "internal parser error (bug)"; break; in onig_error_code_to_format()
62 p = "stack error (bug)"; break; in onig_error_code_to_format()
64 p = "undefined bytecode (bug)"; break; in onig_error_code_to_format()
66 p = "unexpected bytecode (bug)"; break; in onig_error_code_to_format()
68 p = "default multibyte-encoding is not setted"; break; in onig_error_code_to_format()
70 p = "can't convert to wide-char on specified multibyte-encoding"; break; in onig_error_code_to_format()
72 p = "invalid argument"; break; in onig_error_code_to_format()
74 p = "end pattern at left brace"; break; in onig_error_code_to_format()
76 p = "end pattern at left bracket"; break; in onig_error_code_to_format()
78 p = "empty char-class"; break; in onig_error_code_to_format()
80 p = "premature end of char-class"; break; in onig_error_code_to_format()
82 p = "end pattern at escape"; break; in onig_error_code_to_format()
84 p = "end pattern at meta"; break; in onig_error_code_to_format()
86 p = "end pattern at control"; break; in onig_error_code_to_format()
88 p = "illegal meta-code syntax"; break; in onig_error_code_to_format()
90 p = "illegal control-code syntax"; break; in onig_error_code_to_format()
92 p = "char-class value at end of range"; break; in onig_error_code_to_format()
94 p = "char-class value at start of range"; break; in onig_error_code_to_format()
96 p = "unmatched range specifier in char-class"; break; in onig_error_code_to_format()
98 p = "target of repeat operator is not specified"; break; in onig_error_code_to_format()
100 p = "target of repeat operator is invalid"; break; in onig_error_code_to_format()
102 p = "nested repeat operator"; break; in onig_error_code_to_format()
104 p = "unmatched close parenthesis"; break; in onig_error_code_to_format()
106 p = "end pattern with unmatched parenthesis"; break; in onig_error_code_to_format()
108 p = "end pattern in group"; break; in onig_error_code_to_format()
110 p = "undefined group option"; break; in onig_error_code_to_format()
112 p = "invalid POSIX bracket type"; break; in onig_error_code_to_format()
114 p = "invalid pattern in look-behind"; break; in onig_error_code_to_format()
116 p = "invalid repeat range {lower,upper}"; break; in onig_error_code_to_format()
118 p = "too big number"; break; in onig_error_code_to_format()
120 p = "too big number for repeat range"; break; in onig_error_code_to_format()
122 p = "upper is smaller than lower in repeat range"; break; in onig_error_code_to_format()
124 p = "empty range in char class"; break; in onig_error_code_to_format()
126 p = "mismatch multibyte code length in char-class range"; break; in onig_error_code_to_format()
128 p = "too many multibyte code ranges are specified"; break; in onig_error_code_to_format()
130 p = "too short multibyte code string"; break; in onig_error_code_to_format()
132 p = "too big backref number"; break; in onig_error_code_to_format()
135 p = "invalid backref number/name"; break; in onig_error_code_to_format()
137 p = "invalid backref number"; break; in onig_error_code_to_format()
140 p = "numbered backref/call is not allowed. (use name)"; break; in onig_error_code_to_format()
142 p = "too big wide-char value"; break; in onig_error_code_to_format()
144 p = "too long wide-char value"; break; in onig_error_code_to_format()
146 p = "invalid wide-char value"; break; in onig_error_code_to_format()
148 p = "group name is empty"; break; in onig_error_code_to_format()
150 p = "invalid group name <%n>"; break; in onig_error_code_to_format()
153 p = "invalid char in group name <%n>"; break; in onig_error_code_to_format()
155 p = "invalid char in group number <%n>"; break; in onig_error_code_to_format()
158 p = "undefined name <%n> reference"; break; in onig_error_code_to_format()
160 p = "undefined group <%n> reference"; break; in onig_error_code_to_format()
162 p = "multiplex defined name <%n>"; break; in onig_error_code_to_format()
164 p = "multiplex definition name <%n> call"; break; in onig_error_code_to_format()
166 p = "never ending recursion"; break; in onig_error_code_to_format()
168 p = "group number is too big for capture history"; break; in onig_error_code_to_format()
170 p = "invalid character property name {%n}"; break; in onig_error_code_to_format()
172 p = "not supported encoding combination"; break; in onig_error_code_to_format()
174 p = "invalid combination of options"; break; in onig_error_code_to_format()
176 p = "over thread pass limit count"; break; in onig_error_code_to_format()
179 p = "undefined error code"; break; in onig_error_code_to_format()
182 return (UChar* )p; in onig_error_code_to_format()
190 UChar *p; in to_ascii() local
194 p = s; in to_ascii()
196 while (p < end) { in to_ascii()
197 code = ONIGENC_MBC_TO_CODE(enc, p, end); in to_ascii()
212 p += enc_len(enc, p); in to_ascii()
216 *is_over = ((p < end) ? 1 : 0); in to_ascii()
241 UChar *p, *q; local
261 p = s;
266 xmemcpy(p, parbuf, len);
267 p += len;
269 xmemcpy(p, "...", 3);
270 p += 3;
279 *p++ = *q++;
282 *p = '\0';
283 len = p - s;
315 UChar *p, *s, *bp; local
329 p = pat;
330 while (p < pat_end) {
331 if (*p == MC_ESC(enc)) {
332 *s++ = *p++;
333 len = enc_len(enc, p);
334 while (len-- > 0) *s++ = *p++;
336 else if (*p == '/') {
338 *s++ = *p++;
340 else if (ONIGENC_IS_MBC_HEAD(enc, p)) {
341 len = enc_len(enc, p);
343 while (len-- > 0) *s++ = *p++;
349 sprintf((char* )bs, "\\%03o", *p++ & 0377);
356 else if (!ONIGENC_IS_CODE_PRINT(enc, *p) &&
357 !ONIGENC_IS_CODE_SPACE(enc, *p)) {
358 sprintf((char* )bs, "\\%03o", *p++ & 0377);
364 *s++ = *p++;