/haiku/src/libs/iconv/ |
H A D | iso2022_jp2.h | 151 unsigned char buf = s[2]+0x80; local 152 int ret = iso8859_1_mbtowc(conv,pwc,&buf,1); 163 unsigned char buf = s[2]+0x80; local 164 int ret = iso8859_7_mbtowc(conv,pwc,&buf,1); 209 unsigned char buf = c+0x80; local 210 int ret = jisx0201_mbtowc(conv,pwc,&buf,1); 306 unsigned char buf[2]; local 401 ret = ascii_wctomb(conv,buf,wc,1); 404 if (buf[0] < 0x80) { 415 r[0] = buf[ [all...] |
H A D | iso2022_jp3.h | 142 unsigned char buf = c+0x80; local 143 int ret = jisx0201_mbtowc(conv,pwc,&buf,1); 263 unsigned char buf[2]; local 340 ret = ascii_wctomb(conv,buf,wc,1); 343 if (buf[0] < 0x80) { 354 r[0] = buf[0]; 362 ret = jisx0201_wctomb(conv,buf,wc,1); 365 if (buf[0] < 0x80) { 376 r[0] = buf[0]; 386 ret = jisx0208_wctomb(conv,buf,w [all...] |
H A D | iso2022_kr.h | 139 unsigned char buf[2]; local 143 ret = ascii_wctomb(conv,buf,wc,1); 146 if (buf[0] < 0x80) { 155 r[0] = buf[0]; 165 ret = ksc5601_wctomb(conv,buf,wc,2); 168 if (buf[0] < 0x80 && buf[1] < 0x80) { 185 r[0] = buf[0]; 186 r[1] = buf[1];
|
H A D | isoir165.h | 93 unsigned char buf[2]; local 94 buf[0] = 0x2b; 95 buf[1] = c2; 96 ret = isoir165ext_mbtowc(conv,pwc,buf,2); 127 unsigned char buf[2]; local 131 ret = gb2312_wctomb(conv,buf,wc,2); 134 if (!(buf[0] == 0x28 && buf[1] >= 0x21 && buf[1] <= 0x40)) { 136 r[0] = buf[ [all...] |
H A D | johab.h | 77 unsigned char buf[2]; local 78 buf[0] = t1 + (t2 < 0x5e ? 0 : 1) + 0x21; 79 buf[1] = (t2 < 0x5e ? t2 : t2-0x5e) + 0x21; 80 return ksc5601_mbtowc(conv,pwc,buf,2); 91 unsigned char buf[2]; local 109 ret = johab_hangul_wctomb(conv,buf,wc,2); 114 r[0] = buf[0]; 115 r[1] = buf[1]; 120 ret = ksc5601_wctomb(conv,buf,wc,2); 126 c1 = buf[ [all...] |
H A D | johab_hangul.h | 235 unsigned char buf[2]; local 236 int ret = johab_hangul_wctomb(conv,buf,wc,2); 238 unsigned int hangul = (buf[0] << 8) | buf[1];
|
H A D | localcharset.c | 307 static char buf[2 + 10 + 1]; local 331 if (modifier - dot < sizeof (buf)) 333 memcpy (buf, dot, modifier - dot); 334 buf [modifier - dot] = '\0'; 335 return buf; 341 sprintf (buf, "CP%u", GetACP ()); 342 codeset = buf; 378 static char buf[2 + 10 + 1]; local 381 sprintf (buf, "CP%u", GetACP ()); 382 codeset = buf; 387 static char buf[2 + 10 + 1]; local [all...] |
H A D | loop_unicode.h | 31 ucs4_t buf[3]; local 32 int ret = johab_hangul_decompose(cd,buf,wc); 44 sub_outcount = cd->ofuncs.xxx_wctomb(cd,outptr,buf[i],outleft); 72 ucs4_t buf[2]; local 77 buf[0] = variant; buf[1] = 0x303e; 88 sub_outcount = cd->ofuncs.xxx_wctomb(cd,outptr,buf[i],outleft); 165 static void uc_to_mb_write_replacement (const char *buf, size_t buflen, argument 176 memcpy(plocals->l_outbuf, buf, buflen); 190 static void mb_to_uc_write_replacement (const unsigned int *buf, size_ argument [all...] |
H A D | loop_wchar.h | 72 static void wc_to_mb_write_replacement (const char *buf, size_t buflen, 81 const char* bufptr = buf; 88 /* Invalid buf contents. */ 112 static void wc_to_mb_write_replacement (const char *buf, size_t buflen, argument 123 memcpy(plocals->l_outbuf, buf, buflen); 143 char buf[BUF_SIZE]; local 148 size_t count = wcrtomb(buf+bufcount,*inptr,&state); 156 /* Drop the contents of buf[] accumulated so far, and instead 199 const char* bufptr = buf; 246 char buf[BUF_SIZ local 296 mb_to_wc_write_replacement(const wchar_t *buf, size_t buflen, void* callback_arg) argument 327 char buf[BUF_SIZE]; local [all...] |
H A D | sjis.h | 62 unsigned char buf[2]; local 63 buf[0] = 2*t1 + (t2 < 0x5e ? 0 : 1) + 0x21; 64 buf[1] = (t2 < 0x5e ? t2 : t2-0x5e) + 0x21; 65 return jisx0208_mbtowc(conv,pwc,buf,2); 85 unsigned char buf[2]; local 89 ret = jisx0201_wctomb(conv,buf,wc,1); 93 c = buf[0]; 101 ret = jisx0208_wctomb(conv,buf,wc,2); 107 c1 = buf[0]; 108 c2 = buf[ [all...] |
/haiku/src/libs/libtelnet/ |
H A D | auth.c | 593 auth_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) argument 598 (*ap->printsub)(data, cnt, buf, buflen); 600 auth_gen_printsub(data, cnt, buf, buflen); 604 auth_gen_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) argument 611 buf[buflen-1] = '\0'; 612 buf[buflen-2] = '*'; 617 *buf++ = *cp++; 621 *buf = '\0';
|
H A D | enc_des.c | 443 fb64_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen, const char *type) argument 449 buf[buflen-1] = '\0'; /* make sure it's NULL terminated */ 472 for (; (buflen > 0) && (*buf = *cp++); buf++) 476 for (cp = lbuf; (buflen > 0) && (*buf = *cp++); buf++) 484 cfb64_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) argument 486 fb64_printsub(data, cnt, buf, buflen, "CFB64"); 490 ofb64_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) argument 492 fb64_printsub(data, cnt, buf, bufle [all...] |
H A D | encrypt.c | 920 encrypt_gen_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) argument 926 buf[buflen-1] = '\0'; 927 buf[buflen-2] = '*'; 932 *buf++ = *cp++; 936 *buf = '\0'; 940 encrypt_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) argument 949 (*ep->printsub)(data, cnt, buf, buflen); 951 encrypt_gen_printsub(data, cnt, buf, buflen);
|
H A D | kerberos.c | 416 #define BUMP(buf, len) while (*(buf)) {++(buf), --(len);} 417 #define ADDC(buf, len, c) if ((len) > 0) {*(buf)++ = (c); --(len);} 420 kerberos4_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) argument 425 buf[buflen-1] = '\0'; /* make sure its NULL terminated */ 430 strncpy((char *)buf, " REJECT ", buflen); 434 strncpy((char *)buf, " ACCEPT ", buflen); 436 BUMP(buf, bufle [all...] |
H A D | kerberos5.c | 675 #define BUMP(buf, len) while (*(buf)) {++(buf), --(len);} 676 #define ADDC(buf, len, c) if ((len) > 0) {*(buf)++ = (c); --(len);} 679 kerberos5_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) argument 683 buf[buflen-1] = '\0'; /* make sure its NULL terminated */ 688 strlcpy((char *)buf, " REJECT ", buflen); 692 strlcpy((char *)buf, " ACCEPT ", buflen); 694 BUMP(buf, bufle [all...] |
H A D | krb4encpwd.c | 350 #define BUMP(buf, len) while (*(buf)) {++(buf), --(len);} 351 #define ADDC(buf, len, c) if ((len) > 0) {*(buf)++ = (c); --(len);} 354 krb4encpwd_printsub(data, cnt, buf, buflen) 355 unsigned char *data, *buf; 361 buf[buflen-1] = '\0'; /* make sure its NULL terminated */ 366 strncpy((char *)buf, " REJECT ", buflen); 370 strncpy((char *)buf, " ACCEP [all...] |
H A D | pk.c | 222 char buf[256]; local 228 memset(buf,0,sizeof(buf)); 231 des_cbc_encrypt(in,buf,deslen, k,&i,DES_ENCRYPT); 233 out[op++] = hextab[(buf[l] & 0xf0) >> 4]; 234 out[op++] = hextab[(buf[l] & 0x0f)]; 243 char buf[256]; local 250 memset(buf,0,sizeof(buf)); 260 buf[ [all...] |
H A D | rsaencpwd.c | 397 #define BUMP(buf, len) while (*(buf)) {++(buf), --(len);} 398 #define ADDC(buf, len, c) if ((len) > 0) {*(buf)++ = (c); --(len);} 401 rsaencpwd_printsub(data, cnt, buf, buflen) 402 unsigned char *data, *buf; 408 buf[buflen-1] = '\0'; /* make sure its NULL terminated */ 413 strncpy((char *)buf, " REJECT ", buflen); 417 strncpy((char *)buf, " ACCEP [all...] |
H A D | sra.c | 354 #define BUMP(buf, len) while (*(buf)) {++(buf), --(len);} 355 #define ADDC(buf, len, c) if ((len) > 0) {*(buf)++ = (c); --(len);} 358 sra_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) argument 363 buf[buflen-1] = '\0'; /* make sure its NULL terminated */ 369 strncpy((char *)buf, " CONTINUE ", buflen); 373 strncpy((char *)buf, " REJECT ", buflen); 377 strncpy((char *)buf, " ACCEP [all...] |
/haiku/src/libs/mapm/ |
H A D | mapm_set.c | 105 char *p, *buf, ch, buf2[64]; local 116 buf = buf2; 121 buf++; /* get past '-' sign */ 128 len = strlen(buf); 135 buf[len] = '0'; 142 if (buf[--len] != '0') 149 p = buf;
|
H A D | mapmgues.c | 95 char buf[48]; local 98 m_apm_to_string(buf, 15, a); 99 dd = atof(buf); /* sqrt algorithm actually finds 1/sqrt */ 114 char buf[48]; local 117 m_apm_to_string(buf, 15, a); 118 dd = atof(buf); 125 char buf[48]; local 128 m_apm_to_string(buf, 15, a); 129 dd = atof(buf); 140 char buf[4 local 150 char buf[48]; local 163 char *cp, *p, *ps, buf[64]; local [all...] |
/haiku/src/libs/stdc++/legacy/ |
H A D | builtinbuf.cc | 36 streamsize builtinbuf::xsgetn(char* buf, streamsize n) argument 37 { return _IO_XSGETN (this, buf, n); } 39 streamsize builtinbuf::xsputn(const char* buf, streamsize n) argument 40 { return _IO_XSPUTN (this, buf, n); } 48 streambuf* builtinbuf::setbuf(char *buf, int n) argument 49 { return (streambuf*)_IO_SETBUF (this, buf, n); } 64 streamsize builtinbuf::sys_read(char* buf, streamsize size) argument 65 { return _IO_SYSREAD (this, buf, size); } 70 streamsize builtinbuf::sys_write(const char* buf, streamsize size) argument 71 { return _IO_SYSWRITE (this, buf, siz 73 sys_stat(void* buf) argument [all...] |
H A D | editbuf.cc | 620 struct edit_buffer *buf = str->buffer; local 621 chain = buf->start_mark.chain; 622 buf->start_mark.chain = this; 623 mark_pointer size1 = buf->size1() << 1; 624 int gap_size = buf->gap_size() << 1; 653 struct edit_buffer *buf = buffer(); local 654 if (this == &buf->start_mark || this == &buf->end_mark) abort(); 656 for (ptr = &buf->start_mark.chain; *ptr != this; ptr = &(*ptr)->chain) ;
|
H A D | filebuf.cc | 186 streamsize filebuf::sys_read(char* buf, streamsize size) argument 188 return _IO_file_read(this, buf, size); 196 streamsize filebuf::sys_write(const char *buf, streamsize n) argument 198 return _IO_file_write (this, buf, n);
|
H A D | iostream.cc | 509 char buf[WRITE_BUF_SIZE]; local 510 register char *buf_ptr = buf+WRITE_BUF_SIZE; // End of buf. 515 // Now do the actual conversion, placing the result at the *end* of buf. 558 int buf_len = buf+WRITE_BUF_SIZE - buf_ptr; 747 char buf[BUF]; 749 char *cp = buf; 754 format_char, cp, buf + sizeof(buf));
|