Searched refs:sb (Results 1 - 25 of 865) sorted by relevance

1234567891011>>

/external/libcxx/test/depr/depr.str.strstreams/depr.strstreambuf/depr.strstreambuf.cons/
H A Dcp_size_cp.pass.cpp23 std::strstreambuf sb(buf, sizeof(buf));
24 assert(sb.sgetc() == 'a');
25 assert(sb.snextc() == 'b');
26 assert(sb.snextc() == 'c');
27 assert(sb.snextc() == 'd');
28 assert(sb.snextc() == 0);
29 assert(sb.snextc() == EOF);
33 std::strstreambuf sb(buf, 0);
34 assert(sb.sgetc() == 'a');
35 assert(sb
[all...]
H A Dscp_size_scp.pass.cpp23 std::strstreambuf sb(buf, sizeof(buf));
24 assert(sb.sgetc() == 'a');
25 assert(sb.snextc() == 'b');
26 assert(sb.snextc() == 'c');
27 assert(sb.snextc() == 'd');
28 assert(sb.snextc() == 0);
29 assert(sb.snextc() == EOF);
33 std::strstreambuf sb(buf, 0);
34 assert(sb.sgetc() == 'a');
35 assert(sb
[all...]
H A Ducp_size_ucp.pass.cpp23 std::strstreambuf sb(buf, sizeof(buf));
24 assert(sb.sgetc() == 'a');
25 assert(sb.snextc() == 'b');
26 assert(sb.snextc() == 'c');
27 assert(sb.snextc() == 'd');
28 assert(sb.snextc() == 0);
29 assert(sb.snextc() == EOF);
33 std::strstreambuf sb(buf, 0);
34 assert(sb.sgetc() == 'a');
35 assert(sb
[all...]
H A Dccp_size.pass.cpp23 std::strstreambuf sb(buf, sizeof(buf));
24 assert(sb.sgetc() == 'a');
25 assert(sb.snextc() == 'b');
26 assert(sb.snextc() == 'c');
27 assert(sb.snextc() == 'd');
28 assert(sb.snextc() == 0);
29 assert(sb.snextc() == EOF);
33 std::strstreambuf sb(buf, 0);
34 assert(sb.sgetc() == 'a');
35 assert(sb
[all...]
H A Dcscp_size.pass.cpp23 std::strstreambuf sb(buf, sizeof(buf));
24 assert(sb.sgetc() == 'a');
25 assert(sb.snextc() == 'b');
26 assert(sb.snextc() == 'c');
27 assert(sb.snextc() == 'd');
28 assert(sb.snextc() == 0);
29 assert(sb.snextc() == EOF);
33 std::strstreambuf sb(buf, 0);
34 assert(sb.sgetc() == 'a');
35 assert(sb
[all...]
H A Dcucp_size.pass.cpp23 std::strstreambuf sb(buf, sizeof(buf));
24 assert(sb.sgetc() == 'a');
25 assert(sb.snextc() == 'b');
26 assert(sb.snextc() == 'c');
27 assert(sb.snextc() == 'd');
28 assert(sb.snextc() == 0);
29 assert(sb.snextc() == EOF);
33 std::strstreambuf sb(buf, 0);
34 assert(sb.sgetc() == 'a');
35 assert(sb
[all...]
/external/libcxx/test/depr/depr.str.strstreams/depr.strstreambuf/depr.strstreambuf.members/
H A Dpcount.pass.cpp22 std::strstreambuf sb; local
23 assert(sb.pcount() == 0);
24 assert(sb.sputc('a') == 'a');
25 assert(sb.pcount() == 1);
26 assert(sb.sputc(0) == 0);
27 assert(sb.pcount() == 2);
28 assert(sb.str() == std::string("a"));
29 assert(sb.pcount() == 2);
H A Dfreeze.pass.cpp22 std::strstreambuf sb; local
23 sb.freeze(true);
24 assert(sb.sputc('a') == EOF);
25 sb.freeze(false);
26 assert(sb.sputc('a') == 'a');
H A Dstr.pass.cpp22 std::strstreambuf sb; local
23 assert(sb.sputc('a') == 'a');
24 assert(sb.sputc(0) == 0);
25 assert(sb.str() == std::string("a"));
/external/libcxx/test/input.output/string.streams/stringbuf/stringbuf.virtuals/
H A Dsetbuf.pass.cpp23 std::stringbuf sb("0123456789");
24 assert(sb.pubsetbuf(0, 0) == &sb);
25 assert(sb.str() == "0123456789");
28 std::wstringbuf sb(L"0123456789");
29 assert(sb.pubsetbuf(0, 0) == &sb);
30 assert(sb.str() == L"0123456789");
H A Dunderflow.pass.cpp35 testbuf<char> sb("123");
36 sb.pbump(3);
37 assert(sb.underflow() == '1');
38 assert(sb.underflow() == '1');
39 assert(sb.snextc() == '2');
40 assert(sb.underflow() == '2');
41 assert(sb.underflow() == '2');
42 assert(sb.snextc() == '3');
43 assert(sb.underflow() == '3');
44 assert(sb
[all...]
H A Doverflow.pass.cpp41 testbuf<char> sb("abc");
42 assert(sb.sputc('1') == '1');
43 assert(sb.str() == "1bc");
44 assert(sb.sputc('2') == '2');
45 assert(sb.str() == "12c");
46 assert(sb.sputc('3') == '3');
47 assert(sb.str() == "123");
48 assert(sb.sputc('4') == '4');
49 assert(sb.str() == "1234");
50 assert(sb
[all...]
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/
H A Dstrbuf.c20 void strbuf_init(struct strbuf *sb, ssize_t hint) argument
22 sb->alloc = sb->len = 0;
23 sb->buf = strbuf_slopbuf;
25 strbuf_grow(sb, hint);
28 void strbuf_release(struct strbuf *sb) argument
30 if (sb->alloc) {
31 free(sb->buf);
32 strbuf_init(sb, 0);
36 char *strbuf_detach(struct strbuf *sb, size_ argument
45 strbuf_grow(struct strbuf *sb, size_t extra) argument
54 strbuf_splice(struct strbuf *sb, size_t pos, size_t len, const void *data, size_t dlen) argument
73 strbuf_remove(struct strbuf *sb, size_t pos, size_t len) argument
78 strbuf_add(struct strbuf *sb, const void *data, size_t len) argument
85 strbuf_addf(struct strbuf *sb, const char *fmt, ...) argument
109 strbuf_read(struct strbuf *sb, int fd, ssize_t hint) argument
[all...]
H A Dstrbuf.h25 * strbuf_grow(sb, SOME_SIZE);
26 * ... Here, the memory array starting at sb->buf, and of length
27 * ... strbuf_avail(sb) is all yours, and you are sure that
28 * ... strbuf_avail(sb) is at least SOME_SIZE.
29 * strbuf_setlen(sb, sb->len + SOME_OTHER_SIZE);
31 * Of course, SOME_OTHER_SIZE must be smaller or equal to strbuf_avail(sb).
58 static inline ssize_t strbuf_avail(const struct strbuf *sb) { argument
59 return sb->alloc ? sb
64 strbuf_setlen(struct strbuf *sb, size_t len) argument
73 strbuf_addch(struct strbuf *sb, int c) argument
82 strbuf_addstr(struct strbuf *sb, const char *s) argument
[all...]
/external/libcxx/test/depr/depr.str.strstreams/depr.strstreambuf/depr.strstreambuf.virtuals/
H A Dsetbuf.pass.cpp23 std::strstreambuf sb(buf, 0);
24 assert(sb.pubsetbuf(0, 0) == &sb);
25 assert(sb.str() == std::string("0123456789"));
H A Dunderflow.pass.cpp35 test sb(buf, 0, buf + 3);
36 assert(sb.underflow() == '1');
37 assert(sb.underflow() == '1');
38 assert(sb.snextc() == '2');
39 assert(sb.underflow() == '2');
40 assert(sb.underflow() == '2');
41 assert(sb.snextc() == '3');
42 assert(sb.underflow() == '3');
43 assert(sb.underflow() == '3');
44 assert(sb
[all...]
H A Doverflow.pass.cpp23 std::strstreambuf sb(buf, sizeof(buf), buf);
24 assert(sb.sputc('1') == '1');
25 assert(sb.str() == std::string("1bc"));
26 assert(sb.sputc('2') == '2');
27 assert(sb.str() == std::string("12c"));
28 assert(sb.sputc('3') == '3');
29 assert(sb.str() == std::string("123"));
30 assert(sb.sputc('4') == '4');
31 assert(sb.str() == std::string("1234"));
32 assert(sb
[all...]
H A Dpbackfail.pass.cpp35 test sb(buf, 0);
36 assert(sb.sgetc() == '1');
37 assert(sb.snextc() == '2');
38 assert(sb.snextc() == '3');
39 assert(sb.sgetc() == '3');
40 assert(sb.snextc() == EOF);
41 assert(sb.pbackfail('3') == '3');
42 assert(sb.pbackfail('3') == EOF);
43 assert(sb.pbackfail('2') == '2');
44 assert(sb
[all...]
/external/libcxx/test/input.output/stream.buffers/streambuf/streambuf.cons/
H A Ddefault.fail.cpp21 std::basic_streambuf<char> sb; local
/external/qemu/slirp/
H A Dsbuf.c10 static void sbappendsb(struct sbuf *sb, struct mbuf *m);
14 * sbspace(struct sockbuff *sb)
16 * return SB_DATALEN - sb->sb_cc;
21 sbfree(struct sbuf *sb) argument
23 free(sb->sb_data);
27 sbdrop(struct sbuf *sb, int num) argument
33 if(num > sb->sb_cc)
34 num = sb->sb_cc;
35 sb->sb_cc -= num;
36 sb
43 sbreserve(struct sbuf *sb, int size) argument
132 sbappendsb(struct sbuf *sb, struct mbuf *m) argument
169 sbcopy(struct sbuf *sb, int off, int len, char *to) argument
[all...]
H A Dsbuf.h11 #define sbflush(sb) sbdrop((sb),(sb)->sb_cc)
12 #define sbspace(sb) ((sb)->sb_datalen - (sb)->sb_cc)
/external/qemu/slirp-android/
H A Dsbuf.c10 static void sbappendsb(struct sbuf *sb, struct mbuf *m);
14 * sbspace(struct sockbuff *sb)
16 * return SB_DATALEN - sb->sb_cc;
21 sbfree(struct sbuf *sb) argument
23 free(sb->sb_data);
27 sbdrop(struct sbuf *sb, int num) argument
33 if(num > sb->sb_cc)
34 num = sb->sb_cc;
35 sb->sb_cc -= num;
36 sb
43 sbreserve(struct sbuf *sb, int size) argument
132 sbappendsb(struct sbuf *sb, struct mbuf *m) argument
169 sbcopy(struct sbuf *sb, int off, int len, char *to) argument
[all...]
/external/qemu/distrib/ext4_utils/src/
H A Dext4_sb.c21 int ext4_parse_sb(struct ext4_super_block *sb, struct fs_info *info) argument
25 if (sb->s_magic != EXT4_SUPER_MAGIC)
28 if ((sb->s_state & EXT4_VALID_FS) != EXT4_VALID_FS)
31 info->block_size = 1024 << sb->s_log_block_size;
32 info->blocks_per_group = sb->s_blocks_per_group;
33 info->inodes_per_group = sb->s_inodes_per_group;
34 info->inode_size = sb->s_inode_size;
35 info->inodes = sb->s_inodes_count;
36 info->feat_ro_compat = sb->s_feature_ro_compat;
37 info->feat_compat = sb
[all...]
/external/smack/src/org/jivesoftware/smackx/
H A DXHTMLText.java52 StringBuilder sb = new StringBuilder("<a");
54 sb.append(" href=\"");
55 sb.append(href);
56 sb.append("\"");
59 sb.append(" style=\"");
60 sb.append(style);
61 sb.append("\"");
63 sb.append(">");
64 text.append(sb.toString());
81 StringBuilder sb
[all...]
/external/e2fsprogs/lib/e2p/
H A Dls.c198 void list_super2(struct ext2_super_block * sb, FILE *f) argument
204 inode_blocks_per_group = (((sb->s_inodes_per_group *
205 EXT2_INODE_SIZE(sb)) +
206 EXT2_BLOCK_SIZE(sb) - 1) /
207 EXT2_BLOCK_SIZE(sb));
208 if (sb->s_volume_name[0]) {
210 strncpy(buf, sb->s_volume_name, sizeof(sb->s_volume_name));
214 if (sb->s_last_mounted[0]) {
216 strncpy(buf, sb
[all...]

Completed in 325 milliseconds

1234567891011>>