Home
last modified time | relevance | path

Searched refs:sb (Results 1 – 25 of 1115) sorted by relevance

12345678910>>...45

/external/libcxx/test/std/depr/depr.str.strstreams/depr.strstreambuf/depr.strstreambuf.cons/
Dscp_size_scp.pass.cpp23 std::strstreambuf sb(buf, sizeof(buf)); in main() local
24 assert(sb.sgetc() == 'a'); in main()
25 assert(sb.snextc() == 'b'); in main()
26 assert(sb.snextc() == 'c'); in main()
27 assert(sb.snextc() == 'd'); in main()
28 assert(sb.snextc() == 0); in main()
29 assert(sb.snextc() == EOF); in main()
33 std::strstreambuf sb(buf, 0); in main() local
34 assert(sb.sgetc() == 'a'); in main()
35 assert(sb.snextc() == 'b'); in main()
[all …]
Ducp_size_ucp.pass.cpp23 std::strstreambuf sb(buf, sizeof(buf)); in main() local
24 assert(sb.sgetc() == 'a'); in main()
25 assert(sb.snextc() == 'b'); in main()
26 assert(sb.snextc() == 'c'); in main()
27 assert(sb.snextc() == 'd'); in main()
28 assert(sb.snextc() == 0); in main()
29 assert(sb.snextc() == EOF); in main()
33 std::strstreambuf sb(buf, 0); in main() local
34 assert(sb.sgetc() == 'a'); in main()
35 assert(sb.snextc() == 'b'); in main()
[all …]
Dcp_size_cp.pass.cpp23 std::strstreambuf sb(buf, sizeof(buf)); in main() local
24 assert(sb.sgetc() == 'a'); in main()
25 assert(sb.snextc() == 'b'); in main()
26 assert(sb.snextc() == 'c'); in main()
27 assert(sb.snextc() == 'd'); in main()
28 assert(sb.snextc() == 0); in main()
29 assert(sb.snextc() == EOF); in main()
33 std::strstreambuf sb(buf, 0); in main() local
34 assert(sb.sgetc() == 'a'); in main()
35 assert(sb.snextc() == 'b'); in main()
[all …]
/external/e2fsprogs/lib/e2p/
Dls.c224 void list_super2(struct ext2_super_block * sb, FILE *f) in list_super2() argument
231 inode_blocks_per_group = (((sb->s_inodes_per_group * in list_super2()
232 EXT2_INODE_SIZE(sb)) + in list_super2()
233 EXT2_BLOCK_SIZE(sb) - 1) / in list_super2()
234 EXT2_BLOCK_SIZE(sb)); in list_super2()
235 if (sb->s_volume_name[0]) { in list_super2()
237 strncpy(buf, sb->s_volume_name, sizeof(sb->s_volume_name)); in list_super2()
241 if (sb->s_last_mounted[0]) { in list_super2()
243 strncpy(buf, sb->s_last_mounted, sizeof(sb->s_last_mounted)); in list_super2()
247 fprintf(f, "Filesystem UUID: %s\n", e2p_uuid2str(sb->s_uuid)); in list_super2()
[all …]
/external/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.virtuals/
Dseekoff.pass.cpp24 std::stringbuf sb("0123456789", std::ios_base::in); in main() local
25 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == -1); in main()
26 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::out) == -1); in main()
27 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::out) == -1); in main()
28 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in | std::ios_base::out) == -1); in main()
29 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::in | std::ios_base::out) == -1); in main()
30 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::in | std::ios_base::out) == -1); in main()
31 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in) == 3); in main()
32 assert(sb.sgetc() == '3'); in main()
33 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::in) == 6); in main()
[all …]
Doverflow.pass.cpp45 testbuf<char> sb("abc"); in main() local
46 assert(sb.sputc('1') == '1'); in main()
47 assert(sb.str() == "1bc"); in main()
48 assert(sb.sputc('2') == '2'); in main()
49 assert(sb.str() == "12c"); in main()
50 assert(sb.sputc('3') == '3'); in main()
51 assert(sb.str() == "123"); in main()
52 assert(sb.sputc('4') == '4'); in main()
53 assert(sb.str() == "1234"); in main()
54 assert(sb.sputc('5') == '5'); in main()
[all …]
Dseekpos.pass.cpp24 std::stringbuf sb("0123456789", std::ios_base::in); in main() local
25 assert(sb.pubseekpos(3, std::ios_base::out) == -1); in main()
26 assert(sb.pubseekpos(3, std::ios_base::in | std::ios_base::out) == -1); in main()
27 assert(sb.pubseekpos(3, std::ios_base::in) == 3); in main()
28 assert(sb.sgetc() == '3'); in main()
31 std::stringbuf sb("0123456789", std::ios_base::out); in main() local
32 assert(sb.pubseekpos(3, std::ios_base::in) == -1); in main()
33 assert(sb.pubseekpos(3, std::ios_base::out | std::ios_base::in) == -1); in main()
34 assert(sb.pubseekpos(3, std::ios_base::out) == 3); in main()
35 assert(sb.sputc('a') == 'a'); in main()
[all …]
Dpbackfail.pass.cpp43 testbuf<char> sb("123", std::ios_base::in); in main() local
44 assert(sb.sgetc() == '1'); in main()
45 assert(sb.snextc() == '2'); in main()
46 assert(sb.snextc() == '3'); in main()
47 assert(sb.sgetc() == '3'); in main()
48 assert(sb.snextc() == std::char_traits<char>::eof()); in main()
49 assert(sb.pbackfail('3') == '3'); in main()
50 assert(sb.pbackfail('3') == std::char_traits<char>::eof()); in main()
51 assert(sb.pbackfail('2') == '2'); in main()
52 assert(sb.pbackfail(std::char_traits<char>::eof()) != std::char_traits<char>::eof()); in main()
[all …]
Dunderflow.pass.cpp35 testbuf<char> sb("123"); in main() local
36 sb.pbump(3); in main()
37 assert(sb.underflow() == '1'); in main()
38 assert(sb.underflow() == '1'); in main()
39 assert(sb.snextc() == '2'); in main()
40 assert(sb.underflow() == '2'); in main()
41 assert(sb.underflow() == '2'); in main()
42 assert(sb.snextc() == '3'); in main()
43 assert(sb.underflow() == '3'); in main()
44 assert(sb.underflow() == '3'); in main()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dswapfs.c25 void ext2fs_swap_super(struct ext2_super_block * sb) in ext2fs_swap_super() argument
28 sb->s_inodes_count = ext2fs_swab32(sb->s_inodes_count); in ext2fs_swap_super()
29 sb->s_blocks_count = ext2fs_swab32(sb->s_blocks_count); in ext2fs_swap_super()
30 sb->s_r_blocks_count = ext2fs_swab32(sb->s_r_blocks_count); in ext2fs_swap_super()
31 sb->s_free_blocks_count = ext2fs_swab32(sb->s_free_blocks_count); in ext2fs_swap_super()
32 sb->s_free_inodes_count = ext2fs_swab32(sb->s_free_inodes_count); in ext2fs_swap_super()
33 sb->s_first_data_block = ext2fs_swab32(sb->s_first_data_block); in ext2fs_swap_super()
34 sb->s_log_block_size = ext2fs_swab32(sb->s_log_block_size); in ext2fs_swap_super()
35 sb->s_log_cluster_size = ext2fs_swab32(sb->s_log_cluster_size); in ext2fs_swap_super()
36 sb->s_blocks_per_group = ext2fs_swab32(sb->s_blocks_per_group); in ext2fs_swap_super()
[all …]
/external/mesa3d/src/gallium/drivers/r600/
DMakefile.sources34 sb/sb_bc_builder.cpp \
35 sb/sb_bc_decoder.cpp \
36 sb/sb_bc_dump.cpp \
37 sb/sb_bc_finalize.cpp \
38 sb/sb_bc.h \
39 sb/sb_bc_parser.cpp \
40 sb/sb_context.cpp \
41 sb/sb_core.cpp \
42 sb/sb_dce_cleanup.cpp \
43 sb/sb_def_use.cpp \
[all …]
/external/libcxx/test/std/depr/depr.str.strstreams/depr.strstreambuf/depr.strstreambuf.virtuals/
Doverflow.pass.cpp23 std::strstreambuf sb(buf, sizeof(buf), buf); in main() local
24 assert(sb.sputc('1') == '1'); in main()
25 assert(sb.str() == std::string("1bc")); in main()
26 assert(sb.sputc('2') == '2'); in main()
27 assert(sb.str() == std::string("12c")); in main()
28 assert(sb.sputc('3') == '3'); in main()
29 assert(sb.str() == std::string("123")); in main()
30 assert(sb.sputc('4') == '4'); in main()
31 assert(sb.str() == std::string("1234")); in main()
32 assert(sb.sputc('5') == '5'); in main()
[all …]
Dpbackfail.pass.cpp35 test sb(buf, 0); in main() local
36 assert(sb.sgetc() == '1'); in main()
37 assert(sb.snextc() == '2'); in main()
38 assert(sb.snextc() == '3'); in main()
39 assert(sb.sgetc() == '3'); in main()
40 assert(sb.snextc() == EOF); in main()
41 assert(sb.pbackfail('3') == '3'); in main()
42 assert(sb.pbackfail('3') == EOF); in main()
43 assert(sb.pbackfail('2') == '2'); in main()
44 assert(sb.pbackfail(EOF) != EOF); in main()
[all …]
Dseekoff.pass.cpp24 std::strstreambuf sb(buf, 0); in main() local
25 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == -1); in main()
26 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::out) == -1); in main()
27 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::out) == -1); in main()
28 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in | std::ios_base::out) == -1); in main()
29 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::in | std::ios_base::out) == -1); in main()
30 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::in | std::ios_base::out) == -1); in main()
31 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in) == 3); in main()
32 assert(sb.sgetc() == '3'); in main()
33 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::in) == 6); in main()
[all …]
/external/caliper/examples/src/main/java/examples/
DStringBuilderBenchmark.java32 StringBuilder sb = new StringBuilder(); in appendBoolean() local
34 sb.setLength(0); in appendBoolean()
36 sb.append(true); in appendBoolean()
37 sb.append(false); in appendBoolean()
44 StringBuilder sb = new StringBuilder(); in appendChar() local
46 sb.append('c'); in appendChar()
54 StringBuilder sb = new StringBuilder(); in appendCharArray() local
56 sb.append(chars); in appendCharArray()
64 StringBuilder sb = new StringBuilder(); in appendCharSequence() local
66 sb.append(cs); in appendCharSequence()
[all …]
/external/pdfium/xfa/fxbarcode/datamatrix/
DBC_TextEncoder.cpp39 CFX_WideString& sb, in encodeChar() argument
42 sb += (FX_WCHAR)'\3'; in encodeChar()
46 sb += (FX_WCHAR)(c - 48 + 4); in encodeChar()
50 sb += (FX_WCHAR)(c - 97 + 14); in encodeChar()
54 sb += (FX_WCHAR)'\0'; in encodeChar()
55 sb += c; in encodeChar()
59 sb += (FX_WCHAR)'\1'; in encodeChar()
60 sb += (FX_WCHAR)(c - 33); in encodeChar()
64 sb += (FX_WCHAR)'\1'; in encodeChar()
65 sb += (FX_WCHAR)(c - 58 + 15); in encodeChar()
[all …]
/external/testng/src/main/java/org/testng/reporters/
DVerboseReporter.java140 StringBuilder sb = new StringBuilder("\n===============================================\n"); in logResults() local
141 sb.append(" ").append(suiteName).append("\n"); in logResults()
142 sb.append(" Tests run: ").append(Utils.calculateInvokedMethodCount(getAllTestMethods())); in logResults()
143 sb.append(", Failures: ").append(Utils.calculateInvokedMethodCount(ft)); in logResults()
144sb.append(", Skips: ").append(Utils.calculateInvokedMethodCount(resultsToMethods(getSkippedTests()… in logResults()
148 sb.append("\n").append(" Configuration Failures: ").append(confFailures); in logResults()
149 sb.append(", Skips: ").append(confSkips); in logResults()
151 sb.append("\n==============================================="); in logResults()
152 log(sb.toString()); in logResults()
165 StringBuilder sb = new StringBuilder(); in logTestResult() local
[all …]
/external/jsilver/src/com/google/streamhtmlparser/util/
DEntityResolver.java119 private final StringBuilder sb; field in EntityResolver
133 sb = new StringBuilder(); in EntityResolver()
146 sb = new StringBuilder(); in EntityResolver()
147 sb.replace(0, sb.length(), aEntityResolver.sb.toString()); in EntityResolver()
158 sb.setLength(0); in reset()
172 sb.length(), sb.toString()); in toString()
197 Preconditions.checkState(status != Status.NOT_STARTED || sb.length() == 0); in processChar()
200 sb.append(input); in processChar()
208 if (sb.length() < MAX_ENTITY_SIZE) { in processChar()
209 sb.append(input); in processChar()
[all …]
/external/jdiff/src/jdiff/
DAPI.java293 StringBuffer sb = new StringBuffer(htmlText); in hideHTMLTags() local
295 while (i < sb.length()) { in hideHTMLTags()
296 if (sb.charAt(i) == '<') { in hideHTMLTags()
297 sb.setCharAt(i ,'l'); in hideHTMLTags()
298 sb.insert(i+1, "EsS_tHaN"); in hideHTMLTags()
299 } else if (sb.charAt(i) == '&') { in hideHTMLTags()
300 sb.setCharAt(i ,'a'); in hideHTMLTags()
301 sb.insert(i+1, "Nd_cHaR"); in hideHTMLTags()
302 } else if (sb.charAt(i) == '"') { in hideHTMLTags()
303 sb.setCharAt(i ,'q'); in hideHTMLTags()
[all …]
/external/guava/guava-tests/benchmark/com/google/common/base/
DJoinerBenchmark.java82 StringBuilder sb = new StringBuilder(); in joinerInlined() local
85 sb.append(iterator.next().toString()); in joinerInlined()
87 sb.append(DELIMITER_STRING); in joinerInlined()
88 sb.append(iterator.next()); in joinerInlined()
91 dummy ^= sb.toString().length(); in joinerInlined()
104 StringBuilder sb = new StringBuilder(); in stringBuilderIsEmpty() local
106 if (sb.length() > 0) { in stringBuilderIsEmpty()
107 sb.append(DELIMITER_STRING); in stringBuilderIsEmpty()
109 sb.append(comp); in stringBuilderIsEmpty()
111 dummy ^= sb.toString().length(); in stringBuilderIsEmpty()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/util/
DReferenceUtil.java48 StringBuilder sb = new StringBuilder(); in getMethodDescriptor() local
50 sb.append(methodReference.getDefiningClass()); in getMethodDescriptor()
51 sb.append("->"); in getMethodDescriptor()
53 sb.append(methodReference.getName()); in getMethodDescriptor()
54 sb.append('('); in getMethodDescriptor()
56 sb.append(paramType); in getMethodDescriptor()
58 sb.append(')'); in getMethodDescriptor()
59 sb.append(methodReference.getReturnType()); in getMethodDescriptor()
60 return sb.toString(); in getMethodDescriptor()
64 StringBuilder sb = new StringBuilder(); in getMethodProtoDescriptor() local
[all …]
/external/google-tv-pairing-protocol/java/src/com/google/polo/json/
DXMLTokener.java66 StringBuffer sb = new StringBuffer(); in nextCDATA() local
72 sb.append(c); in nextCDATA()
73 i = sb.length() - 3; in nextCDATA()
74 if (i >= 0 && sb.charAt(i) == ']' && in nextCDATA()
75 sb.charAt(i + 1) == ']' && sb.charAt(i + 2) == '>') { in nextCDATA()
76 sb.setLength(i); in nextCDATA()
77 return sb.toString(); in nextCDATA()
94 StringBuffer sb; in nextContent() local
104 sb = new StringBuffer(); in nextContent()
108 return sb.toString().trim(); in nextContent()
[all …]
DJSONML.java311 StringBuffer sb = new StringBuffer(); in toString() local
320 sb.append('<'); in toString()
321 sb.append(tagName); in toString()
336 sb.append(' '); in toString()
337 sb.append(XML.escape(k)); in toString()
338 sb.append('='); in toString()
339 sb.append('"'); in toString()
340 sb.append(XML.escape(v)); in toString()
341 sb.append('"'); in toString()
352 sb.append('/'); in toString()
[all …]
/external/nanohttpd/samples/src/main/java/fi/iki/elonen/debug/
DDebugServer.java53 private void listItem(StringBuilder sb, Map.Entry<String, ? extends Object> entry) { in listItem() argument
54sb.append("<li><code><b>").append(entry.getKey()).append("</b> = ").append(entry.getValue()).appen… in listItem()
61 StringBuilder sb = new StringBuilder(); in serve() local
62 sb.append("<html>"); in serve()
63 sb.append("<head><title>Debug Server</title></head>"); in serve()
64 sb.append("<body>"); in serve()
65 sb.append("<h1>Debug Server</h1>"); in serve()
67sb.append("<p><blockquote><b>URI</b> = ").append(String.valueOf(session.getUri())).append("<br />"… in serve()
69sb.append("<b>Method</b> = ").append(String.valueOf(session.getMethod())).append("</blockquote></p… in serve()
71sb.append("<h3>Headers</h3><p><blockquote>").append(toString(session.getHeaders())).append("</bloc… in serve()
[all …]
/external/libcxx/test/std/input.output/iostream.format/input.streams/istream/istream_sentry/
Dctor.pass.cpp72 testbuf<char> sb(" 123"); in main() local
73 std::istream is(&sb); in main()
79 assert(sb.gptr() == sb.eback()); in main()
82 testbuf<wchar_t> sb(L" 123"); in main() local
83 std::wistream is(&sb); in main()
89 assert(sb.gptr() == sb.eback()); in main()
92 testbuf<char> sb(" 123"); in main() local
93 std::istream is(&sb); in main()
98 assert(sb.gptr() == sb.eback() + 3); in main()
101 testbuf<wchar_t> sb(L" 123"); in main() local
[all …]

12345678910>>...45