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 = "invalid meta-code syntax"; break; in onig_error_code_to_format()
90 p = "invalid 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 code point 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()
199 UChar *p; in to_ascii() local
203 p = s; in to_ascii()
205 while (p < end) { in to_ascii()
206 code = ONIGENC_MBC_TO_CODE(enc, p, end); in to_ascii()
228 p += enclen(enc, p); in to_ascii()
232 *is_over = ((p < end) ? 1 : 0); in to_ascii()
257 UChar *p, *q; local
277 p = s;
282 xmemcpy(p, parbuf, len);
283 p += len;
285 xmemcpy(p, "...", 3);
286 p += 3;
295 *p++ = *q++;
298 *p = '\0';
299 len = p - s;
331 UChar *p, *s, *bp; local
345 p = pat;
346 while (p < pat_end) {
347 if (*p == '\\') {
348 *s++ = *p++;
349 len = enclen(enc, p);
350 while (len-- > 0) *s++ = *p++;
352 else if (*p == '/') {
354 *s++ = *p++;
356 else if (ONIGENC_IS_MBC_HEAD(enc, p)) {
357 len = enclen(enc, p);
359 while (len-- > 0) *s++ = *p++;
365 sprint_byte_with_x((char* )bs, (unsigned int )(*p++));
372 else if (!ONIGENC_IS_CODE_PRINT(enc, *p) &&
373 !ONIGENC_IS_CODE_SPACE(enc, *p)) {
374 sprint_byte_with_x((char* )bs, (unsigned int )(*p++));
380 *s++ = *p++;