Home
last modified time | relevance | path

Searched refs:UChar (Results 1 – 14 of 14) sorted by relevance

/device/linaro/bootloader/edk2/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/
Dregenc.c55 extern UChar*
56 onigenc_get_right_adjust_char_head(OnigEncoding enc, const UChar* start, const UChar* s) in onigenc_get_right_adjust_char_head()
58 UChar* p = ONIGENC_LEFT_ADJUST_CHAR_HEAD(enc, start, s); in onigenc_get_right_adjust_char_head()
65 extern UChar*
67 const UChar* start, const UChar* s, const UChar** prev) in onigenc_get_right_adjust_char_head_with_prev()
69 UChar* p = ONIGENC_LEFT_ADJUST_CHAR_HEAD(enc, start, s); in onigenc_get_right_adjust_char_head_with_prev()
72 if (prev) *prev = (const UChar* )p; in onigenc_get_right_adjust_char_head_with_prev()
76 if (prev) *prev = (const UChar* )NULL; /* Sorry */ in onigenc_get_right_adjust_char_head_with_prev()
81 extern UChar*
82 onigenc_get_prev_char_head(OnigEncoding enc, const UChar* start, const UChar* s) in onigenc_get_prev_char_head()
[all …]
Dregenc.h100 UChar *name;
120 ONIG_EXTERN int onigenc_is_mbc_newline_0x0a P_((const UChar* p, const UChar* end));
124 …igenc_ascii_mbc_case_fold P_((OnigCaseFoldType flag, const UChar** p, const UChar* end, UChar* low…
125 ONIG_EXTERN int onigenc_single_byte_mbc_enc_len P_((const UChar* p));
126 ONIG_EXTERN OnigCodePoint onigenc_single_byte_mbc_to_code P_((const UChar* p, const UChar* end));
128 ONIG_EXTERN int onigenc_single_byte_code_to_mbc P_((OnigCodePoint code, UChar *buf));
129 ONIG_EXTERN UChar* onigenc_single_byte_left_adjust_char_head P_((const UChar* start, const UChar* s…
130 ONIG_EXTERN int onigenc_always_true_is_allowed_reverse_match P_((const UChar* s, const UChar* end));
131 ONIG_EXTERN int onigenc_always_false_is_allowed_reverse_match P_((const UChar* s, const UChar* end)…
134 ONIG_EXTERN OnigCodePoint onigenc_mbn_mbc_to_code P_((OnigEncoding enc, const UChar* p, const UChar
[all …]
Dreggnu.c50 UChar *p; in re_adjust_startpos()
51 UChar *s = (UChar* )string + startpos; in re_adjust_startpos()
54 p = onigenc_get_right_adjust_char_head(reg->enc, (UChar* )string, s); in re_adjust_startpos()
57 p = ONIGENC_LEFT_ADJUST_CHAR_HEAD(reg->enc, (UChar* )string, s); in re_adjust_startpos()
59 return (int)(p - (UChar* )string); in re_adjust_startpos()
69 return onig_match(reg, (UChar* )str, (UChar* )(str + size), in re_match()
70 (UChar* )(str + pos), regs, ONIG_OPTION_NONE); in re_match()
77 return onig_search(bufp, (UChar* )string, (UChar* )(string + size), in re_search()
78 (UChar* )(string + startpos), in re_search()
79 (UChar* )(string + startpos + range), in re_search()
[all …]
Dregerror.c48 extern UChar*
53 if (code >= 0) return (UChar* )0; in onig_error_code_to_format()
189 return (UChar* )p; in onig_error_code_to_format()
202 static int to_ascii(OnigEncoding enc, UChar *s, UChar *end, in to_ascii()
203 UChar buf[], int buf_size, int *is_over) in to_ascii()
206 UChar *p; in to_ascii()
232 buf[len++] = (UChar )code; in to_ascii()
256 onig_error_code_to_str(UChar* s, int code, ...) in onig_error_code_to_str()
259 UChar* s; in onig_error_code_to_str()
264 UChar *p, *q;
[all …]
Dregexec.c862 UChar* endp;\
872 endp = (UChar* )(UINTN)k->u.mem.end;\
903 UChar* endp;\
913 endp = (UChar* )(UINTN)k->u.mem.end;\
986 UChar* s1, UChar** ps2, int mblen) in string_cmp_ic()
988 UChar buf1[ONIGENC_MBC_CASE_FOLD_MAXLEN]; in string_cmp_ic()
989 UChar buf2[ONIGENC_MBC_CASE_FOLD_MAXLEN]; in string_cmp_ic()
990 UChar *p1, *p2, *end1, *s2, *end2; in string_cmp_ic()
1047 OnigStackType* stk_top, UChar* str, regex_t* reg) in make_capture_history_tree()
1087 static int mem_is_in_memp(int mem, int num, UChar* memp) in mem_is_in_memp()
[all …]
Dregparse.h164 UChar* s;
165 UChar* end;
168 UChar buf[NODE_STR_BUF_SIZE];
219 UChar* name;
220 UChar* name_end;
289 UChar* pattern;
290 UChar* pattern_end;
291 UChar* error;
292 UChar* error_end;
326 extern int onig_strncmp P_((const UChar* s1, const UChar* s2, int n));
[all …]
Dregparse.c209 onig_strncmp(const UChar* s1, const UChar* s2, int n) in onig_strncmp()
221 onig_strcpy(UChar* dest, const UChar* src, const UChar* end) in onig_strcpy()
226 dest[len] = (UChar )0; in onig_strcpy()
231 static UChar*
232 strdup_with_null(OnigEncoding enc, UChar* s, UChar* end) in strdup_with_null()
235 UChar *r; in strdup_with_null()
240 r = (UChar* )xmalloc(slen + term_len); in strdup_with_null()
245 r[slen + i] = (UChar )0; in strdup_with_null()
254 #define PFETCH_READY UChar* pfetch_prev
278 static UChar*
[all …]
Dregint.h215 #define NULL_UCHARP ((UChar* )0)
346 UChar* p;
355 (buf)->p = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
362 (buf)->p = (UChar* )xrealloc((buf)->p, (buf)->alloc, OldSize_);\
370 (buf)->p = (UChar* )xrealloc((buf)->p, new_alloc, (buf)->alloc);\
700 UChar *pcode; /* byte code position */
701 UChar *pstr; /* string position */
702 UChar *pstr_prev; /* previous char position of pstr */
709 UChar *pcode; /* byte code position (head of repeated target) */
717 UChar *pstr; /* start/end position */
[all …]
Dregposix.c43 UChar* tmps = (UChar* )(s); \
45 len = (int)(tmps - (UChar* )(s)); \
48 len = onigenc_str_bytelen_null(enc, (UChar* )s); \
156 r = onig_new(PONIG_C(reg), (UChar* )pattern, (UChar* )(pattern + len), in regcomp()
172 UChar* end; in regexec()
195 end = (UChar* )(str + len); in regexec()
196 r = onig_search(ONIG_C(reg), (UChar* )str, end, (UChar* )str, end, in regexec()
279 i_wrapper(const UChar* name, const UChar* name_end, int ng, int* gs, in i_wrapper()
Dregcomp.c54 static UChar*
55 str_dup(UChar* s, UChar* end) in str_dup()
60 UChar* r = (UChar* )xmalloc(len + 1); in str_dup()
63 r[len] = (UChar )0; in str_dup()
150 buf->p = (UChar* )xmalloc(size); in onig_bbuf_init()
286 add_bytes(regex_t* reg, UChar* bytes, int len) in add_bytes()
423 add_compile_string_length(UChar* s ARG_UNUSED, int mb_len, int str_len, in add_compile_string_length()
440 add_compile_string(UChar* s, int mb_len, int str_len, in add_compile_string()
466 UChar *p, *prev; in compile_length_string_node()
514 UChar *p, *prev, *end; in compile_string_node()
[all …]
DREADME79 If you want to disable UChar type (== unsigned char) definition
Doniguruma.h98 #define UChar OnigUChar macro
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/enc/
Dutf16_le.c58 utf16le_mbc_enc_len(const UChar* p) in utf16le_mbc_enc_len()
64 utf16le_is_mbc_newline(const UChar* p, const UChar* end) in utf16le_is_mbc_newline()
84 utf16le_mbc_to_code(const UChar* p, const UChar* end ARG_UNUSED) in utf16le_mbc_to_code()
87 UChar c0 = *p; in utf16le_mbc_to_code()
88 UChar c1 = *(p+1); in utf16le_mbc_to_code()
102 utf16le_code_to_mbc(OnigCodePoint code, UChar *buf) in utf16le_code_to_mbc()
104 UChar* p = buf; in utf16le_code_to_mbc()
112 *p++ = (UChar)(((plane & 0x03) << 6) + (high >> 2)); in utf16le_code_to_mbc()
113 *p++ = (UChar)((plane >> 2) + 0xd8); in utf16le_code_to_mbc()
114 *p++ = (UChar )(code & 0xff); in utf16le_code_to_mbc()
[all …]
Dunicode.c10491 { (UChar* )"NEWLINE", 0, 7 },
10492 { (UChar* )"Alpha", 1, 5 },
10493 { (UChar* )"Blank", 2, 5 },
10494 { (UChar* )"Cntrl", 3, 5 },
10495 { (UChar* )"Digit", 4, 5 },
10496 { (UChar* )"Graph", 5, 5 },
10497 { (UChar* )"Lower", 6, 5 },
10498 { (UChar* )"Print", 7, 5 },
10499 { (UChar* )"Punct", 8, 5 },
10500 { (UChar* )"Space", 9, 5 },
[all …]