Home
last modified time | relevance | path

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

/unit/src/
H A Dnxt_file_name.c23 u_char ch, *p; in nxt_file_name_create() local
37 ch = *fmt++; in nxt_file_name_create()
39 if (ch != '%') { in nxt_file_name_create()
49 ch = *fmt++; in nxt_file_name_create()
51 switch (ch) { in nxt_file_name_create()
81 ch = *fmt++; in nxt_file_name_create()
126 ch = *fmt++; in nxt_file_name_create()
128 if (ch != '%') { in nxt_file_name_create()
138 ch = *fmt++; in nxt_file_name_create()
140 switch (ch) { in nxt_file_name_create()
[all …]
H A Dnxt_http_parse.c212 ch = *p; in nxt_http_parse_request_line()
219 if (ch == '_' || ch == '-') { in nxt_http_parse_request_line()
243 ch = *p; in nxt_http_parse_request_line()
488 ch = *p; in nxt_http_parse_unusual_target()
641 ch = *p; in nxt_http_parse_field_value()
643 if (ch != ' ' && ch != '\t') { in nxt_http_parse_field_value()
671 ch = *p; in nxt_http_parse_field_value()
673 if (nxt_fast_path(ch == '\r' || ch == '\n')) { in nxt_http_parse_field_value()
1046 if (ch >= '0' && ch <= '9') { in nxt_http_parse_complex_target()
1062 if (ch >= '0' && ch <= '9') { in nxt_http_parse_complex_target()
[all …]
H A Dnxt_string.c530 ch = *src++; in nxt_decode_uri()
547 *dst++ = ch; in nxt_decode_uri()
565 ch = *src++; in nxt_decode_uri_plus()
567 switch (ch) { in nxt_decode_uri_plus()
588 *dst++ = ch; in nxt_decode_uri_plus()
662 if (nxt_uri_escape[ch >> 5] & (1U << (ch & 0x1f))) { in nxt_encode_complex_uri()
681 ch = *src++; in nxt_encode_complex_uri()
683 if (nxt_uri_escape[ch >> 5] & (1U << (ch & 0x1f))) { in nxt_encode_complex_uri()
698 *dst++ = ch; in nxt_encode_complex_uri()
714 ch = *src; in nxt_is_complex_uri_encoded()
[all …]
H A Dnxt_fastcgi_record_parse.c23 u_char ch; in nxt_fastcgi_record_parse() local
98 ch = *fp->pos++; in nxt_fastcgi_record_parse()
100 nxt_thread_log_debug("fastcgi record byte: %02Xd", ch); in nxt_fastcgi_record_parse()
105 if (nxt_fast_path(ch == 1)) { in nxt_fastcgi_record_parse()
114 switch (ch) { in nxt_fastcgi_record_parse()
118 fp->type = ch; in nxt_fastcgi_record_parse()
128 if (nxt_fast_path(ch == 0)) { in nxt_fastcgi_record_parse()
137 if (nxt_fast_path(ch == 1)) { in nxt_fastcgi_record_parse()
146 fp->length = ch << 8; in nxt_fastcgi_record_parse()
151 fp->length |= ch; in nxt_fastcgi_record_parse()
[all …]
H A Dnxt_timer.c130 nxt_timer_change_t *ch; in nxt_timer_change() local
153 ch->change = change; in nxt_timer_change()
154 ch->time = time; in nxt_timer_change()
155 ch->timer = timer; in nxt_timer_change()
170 ch = timers->changes; in nxt_timer_changes_commit()
171 end = ch + timers->nchanges; in nxt_timer_changes_commit()
173 add = ch; in nxt_timer_changes_commit()
176 while (ch < end) { in nxt_timer_changes_commit()
177 timer = ch->timer; in nxt_timer_changes_commit()
179 switch (ch->change) { in nxt_timer_changes_commit()
[all …]
H A Dnxt_http_chunk_parse.c31 u_char c, ch; in nxt_http_chunk_parse() local
79 ch = *hcp->pos++; in nxt_http_chunk_parse()
86 c = ch - '0'; in nxt_http_chunk_parse()
93 c = (ch | 0x20) - 'a'; in nxt_http_chunk_parse()
104 c = ch - '0'; in nxt_http_chunk_parse()
107 c = (ch | 0x20) - 'a'; in nxt_http_chunk_parse()
112 } else if (nxt_fast_path(ch == '\r')) { in nxt_http_chunk_parse()
129 if (nxt_fast_path(ch == '\n')) { in nxt_http_chunk_parse()
144 if (nxt_fast_path(ch == '\r')) { in nxt_http_chunk_parse()
152 if (nxt_fast_path(ch == '\n')) { in nxt_http_chunk_parse()
H A Dnxt_conf.c1906 if (nxt_fast_path((ch >= '0' && ch <= '9') in nxt_conf_json_parse_string()
1907 || (ch >= 'A' && ch <= 'F') in nxt_conf_json_parse_string()
1908 || (ch >= 'a' && ch <= 'f'))) in nxt_conf_json_parse_string()
2087 ch = *s; in nxt_conf_json_parse_number()
2134 if (ch == 'e' || ch == 'E') { in nxt_conf_json_parse_number()
2141 if (ch == '-' || ch == '+') { in nxt_conf_json_parse_number()
2530 u_char ch; in nxt_conf_json_escape_length() local
2538 if (ch == '\\' || ch == '"') { in nxt_conf_json_escape_length()
2567 u_char ch; in nxt_conf_json_escape() local
2574 if (ch == '\\' || ch == '"') { in nxt_conf_json_escape()
[all …]
H A Dnxt_time_parse.c313 u_char c, ch; in nxt_term_parse() local
346 ch = *p++; in nxt_term_parse()
350 if (ch == ' ') { in nxt_term_parse()
360 c = ch - '0'; in nxt_term_parse()
375 switch (ch) { in nxt_term_parse()
H A Dnxt_var.c451 u_char *p, ch, c; in nxt_var_next_part() local
480 ch = *p; in nxt_var_next_part()
482 c = (u_char) (ch | 0x20); in nxt_var_next_part()
484 if ((c >= 'a' && c <= 'z') || ch == '_') { in nxt_var_next_part()
490 if (bracket && ch == '}') { in nxt_var_next_part()
H A Dnxt_http_request.c109 u_char *h, ch; in nxt_http_validate_host() local
128 ch = h[i]; in nxt_http_validate_host()
130 if (ch > ']') { in nxt_http_validate_host()
135 switch (ch) { in nxt_http_validate_host()
172 if (ch >= 'A' && ch <= 'Z') { in nxt_http_validate_host()
H A Dnxt_http_static.c757 u_char ch, *p, *end; in nxt_http_static_extract_extension() local
764 ch = *p; in nxt_http_static_extract_extension()
766 switch (ch) { in nxt_http_static_extract_extension()
H A Dnxt_main_process.c356 u_char *start, *p, ch; in nxt_main_start_process_handler() local
462 ch = app_conf->type.start[type_len]; in nxt_main_start_process_handler()
464 if (ch == ' ' || nxt_isdigit(ch)) { in nxt_main_start_process_handler()
H A Dnxt_unit.c1925 u_char ch; in nxt_unit_field_hash() local
1933 ch = *p; in nxt_unit_field_hash()
1934 hash = (hash << 4) + hash + nxt_lowcase(ch); in nxt_unit_field_hash()
/unit/go/
H A Dresponse.go21 ch chan int member
44 if r.ch == nil {
45 r.ch = make(chan int, 2)
48 wait_shm_ack(r.ch)