Searched defs:ch (Results 1 - 25 of 30) sorted by relevance

12

/bionic/libc/bionic/
H A Dstrchr.cpp32 char* strchr(const char* p, int ch) { argument
33 return __strchr_chk(p, ch, __BIONIC_FORTIFY_UNKNOWN_SIZE);
H A Dstrchrnul.cpp17 extern "C" const char* strchrnul(const char* s, int ch) { argument
18 while (*s && *s != ch) {
H A Dstrrchr.cpp32 char* strrchr(const char* p, int ch) { argument
33 return __strrchr_chk(p, ch, __BIONIC_FORTIFY_UNKNOWN_SIZE);
H A Dmbrtoc32.cpp57 uint8_t ch; local
58 if (mbsinit(state) && (((ch = static_cast<uint8_t>(*s)) & ~0x7f) == 0)) {
61 *pc32 = ch;
63 return (ch != '\0' ? 1 : 0);
82 ch = bytes_so_far > 0 ? mbstate_get_byte(state, 0) : static_cast<uint8_t>(*s);
83 if ((ch & 0x80) == 0) {
87 } else if ((ch & 0xe0) == 0xc0) {
91 } else if ((ch & 0xf0) == 0xe0) {
95 } else if ((ch & 0xf8) == 0xf0) {
H A Diconv.cpp301 void Out16(char* dst, char16_t ch, bool swap) { argument
302 if (swap) ch = __swap16(ch);
303 dst[0] = ch;
304 dst[1] = ch >> 8;
308 void Out32(char32_t ch, bool swap) { argument
309 if (swap) ch = __swap32(ch);
310 buf[0] = ch;
311 buf[1] = ch >>
[all...]
H A Dfortify.cpp278 char* __strchr_chk(const char* p, int ch, size_t s_len) { argument
283 if (*p == static_cast<char>(ch)) {
383 char* __strrchr_chk(const char* p, int ch, size_t s_len) { argument
388 if (*p == static_cast<char>(ch)) {
H A Dndk_cruft.cpp133 static inline int digitval(int ch) { argument
136 d = (unsigned)(ch - '0');
139 d = (unsigned)(ch - 'a');
142 d = (unsigned)(ch - 'A');
326 char* index(const char* str, int ch) { argument
327 return const_cast<char*>(strchr(str, ch));
/bionic/libm/
H A Ddigittoint.c32 __LIBC_HIDDEN__ int digittoint(char ch) { argument
33 int d = ch - '0';
37 d = ch - 'a';
41 d = ch - 'A';
/bionic/libm/upstream-netbsd/lib/libm/complex/
H A Dccosl.c41 long double ch, sh; local
43 _cchshl(cimagl(z), &ch, &sh); local
44 w = cosl(creall(z)) * ch - (sinl(creall(z)) * sh) * I;
H A Dcsinl.c41 long double ch, sh; local
43 _cchshl(cimagl(z), &ch, &sh); local
44 w = sinl(creall(z)) * ch + (cosl(creall(z)) * sh) * I;
/bionic/libc/private/
H A Dbionic_ctype.h32 static inline bool IsAlpha(int ch) { argument
33 return (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z');
36 static inline bool IsDigit(int ch) { argument
37 return (ch >= '0' && ch <= '9');
40 static inline bool IsSpace(int ch) { argument
41 return (ch
44 IsUpper(int ch) argument
48 IsXDigit(int ch) argument
[all...]
/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dfgetwc.c63 int ch = __sgetc(fp); local
65 if (ch == EOF) {
69 c = ch;
/bionic/libc/upstream-openbsd/lib/libc/net/
H A Dbase64.c195 int tarindex, state, ch; local
202 while ((ch = (unsigned char)*src++) != '\0') {
203 if (isspace(ch)) /* Skip whitespace anywhere. */
206 if (ch == Pad64)
209 pos = strchr(Base64, ch);
267 if (ch == Pad64) { /* We got a pad char. */
268 ch = (unsigned char)*src++; /* Skip it, get next. */
276 for (; ch != '\0'; ch = (unsigned char)*src++)
277 if (!isspace(ch))
[all...]
H A Dinet_pton.c76 int saw_digit, octets, ch; local
82 while ((ch = *src++) != '\0') {
85 if ((pch = strchr(digits, ch)) != NULL) {
96 } else if (ch == '.' && saw_digit) {
130 int ch, saw_xdigit, count_xdigit; local
143 while ((ch = *src++) != '\0') {
146 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL)
147 pch = strchr((xdigits = xdigits_u), ch);
159 if (ch == ':') {
178 if (ch
[all...]
/bionic/libc/arch-mips/string/
H A Dmemchr.c76 do_bytes (const op_t* w, unsigned char ch) argument
79 for (; *p != ch; ++p);
86 return do_bytes(in, ch); \
109 unsigned char ch = (unsigned char) c_in; local
115 if (*p == ch)
121 mask_c = ch | (ch << 8);
180 if (*p == ch)
H A Dstrchr.c57 if (a.b.B##i != ch) { \
67 return do_bytes(w + cnt, ch); \
72 do_bytes (const op_t* w, unsigned char ch) argument
99 const unsigned char ch = c; local
105 for ( ; *p != ch && ((size_t) p % op_size) != 0; p++)
109 if (*p != ch) {
112 mask_c = ch | (ch << 8);
/bionic/libc/dns/nameser/
H A Dns_ttl.c84 int ch; local
86 for (p = odst; (ch = *p) != '\0'; p++)
87 if (isascii(ch) && isupper(ch))
88 *p = tolower(ch);
99 int ch, digits, dirty; local
105 while ((ch = *src++) != '\0') {
106 if (!isascii(ch) || !isprint(ch))
108 if (isdigit(ch)) {
[all...]
H A Dns_name.c882 special(int ch) { argument
883 switch (ch) {
907 printable(int ch) { argument
908 return (ch > 0x20 && ch < 0x7f);
916 mklower(int ch) { argument
917 if (ch >= 0x41 && ch <= 0x5A)
918 return (ch + 0x20);
919 return (ch);
[all...]
/bionic/libc/dns/resolv/
H A Dres_comp.c172 int pch = PERIOD, ch = *dn++; local
174 while (ch != '\0') {
177 if (periodchar(ch)) {
180 if (!borderchar(ch))
183 if (!borderchar(ch))
186 if (!middlechar(ch))
189 pch = ch, ch = nch;
215 int ch, escaped = 0; local
222 while ((ch
243 int ch; local
[all...]
/bionic/libc/stdio/
H A Dvfprintf.cpp162 int ch; local
163 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) continue;
170 if (ch == '\0') goto done;
181 ch = *fmt++;
183 switch (ch) {
217 if ((ch = *fmt++) == '*') {
223 while (is_digit(ch)) {
224 APPEND_DIGIT(n, ch);
225 ch
[all...]
H A Dvfwprintf.cpp151 int ch; local
152 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) continue;
159 if (ch == '\0') goto done;
170 ch = *fmt++;
172 switch (ch) {
206 if ((ch = *fmt++) == '*') {
212 while (is_digit(ch)) {
213 APPEND_DIGIT(n, ch);
214 ch
[all...]
/bionic/libc/upstream-netbsd/lib/libc/regex/
H A Dengine.c134 static states step(struct re_guts *g, sopno start, sopno stop, states bef, int ch, states aft);
145 static void print(struct match *m, char *caption, states st, int ch, FILE *d);
151 static char *pchar(int ch);
955 == states bef, int ch, states aft);
972 int ch, /* character or NONCHAR code */
992 assert(!NONCHAR(ch) || ch != (char)OPND(s));
993 if (ch == (char)OPND(s))
997 if (ch == BOL || ch
967 step( struct re_guts *g, sopno start, sopno stop, states bef, int ch, states aft) argument
1091 print( struct match *m, char *caption, states st, int ch, FILE *d) argument
1165 pchar( int ch) argument
[all...]
/bionic/libc/async_safe/
H A Dasync_safe_log.cpp136 int ch = *p; local
137 unsigned d = static_cast<unsigned>(ch - '0');
161 char ch; local
163 ch = '0' + d;
165 ch = (caps ? 'A' : 'a') + (d - 10);
167 *p++ = ch;
182 char ch = buf[i]; local
184 buf[j] = ch;
209 static void SendRepeat(Out& o, char ch, int count) { argument
211 memset(pad, ch, sizeo
[all...]
/bionic/libc/kernel/uapi/sound/
H A Dhdspm.h141 struct hdspm_channelfader ch[HDSPM_MIXER_CHANNELS]; member in struct:hdspm_mixer
/bionic/libc/versioner-dependencies/common/kernel_uapi/sound/
H A Dhdspm.h141 struct hdspm_channelfader ch[HDSPM_MIXER_CHANNELS]; member in struct:hdspm_mixer

Completed in 380 milliseconds

12