/external/libcxx/test/std/depr/depr.str.strstreams/depr.strstreambuf/depr.strstreambuf.cons/ |
D | scp_size_scp.pass.cpp | 23 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 …]
|
D | ucp_size_ucp.pass.cpp | 23 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 …]
|
D | cp_size_cp.pass.cpp | 23 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/ |
D | ls.c | 198 void list_super2(struct ext2_super_block * sb, FILE *f) in list_super2() argument 204 inode_blocks_per_group = (((sb->s_inodes_per_group * in list_super2() 205 EXT2_INODE_SIZE(sb)) + in list_super2() 206 EXT2_BLOCK_SIZE(sb) - 1) / in list_super2() 207 EXT2_BLOCK_SIZE(sb)); in list_super2() 208 if (sb->s_volume_name[0]) { in list_super2() 210 strncpy(buf, sb->s_volume_name, sizeof(sb->s_volume_name)); in list_super2() 214 if (sb->s_last_mounted[0]) { in list_super2() 216 strncpy(buf, sb->s_last_mounted, sizeof(sb->s_last_mounted)); in list_super2() 220 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/ |
D | seekoff.pass.cpp | 24 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 …]
|
D | overflow.pass.cpp | 45 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 …]
|
D | seekpos.pass.cpp | 24 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 …]
|
D | pbackfail.pass.cpp | 43 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 …]
|
D | underflow.pass.cpp | 35 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/ |
D | swapfs.c | 24 void ext2fs_swap_super(struct ext2_super_block * sb) in ext2fs_swap_super() argument 27 sb->s_inodes_count = ext2fs_swab32(sb->s_inodes_count); in ext2fs_swap_super() 28 sb->s_blocks_count = ext2fs_swab32(sb->s_blocks_count); in ext2fs_swap_super() 29 sb->s_r_blocks_count = ext2fs_swab32(sb->s_r_blocks_count); in ext2fs_swap_super() 30 sb->s_free_blocks_count = ext2fs_swab32(sb->s_free_blocks_count); in ext2fs_swap_super() 31 sb->s_free_inodes_count = ext2fs_swab32(sb->s_free_inodes_count); in ext2fs_swap_super() 32 sb->s_first_data_block = ext2fs_swab32(sb->s_first_data_block); in ext2fs_swap_super() 33 sb->s_log_block_size = ext2fs_swab32(sb->s_log_block_size); in ext2fs_swap_super() 34 sb->s_log_cluster_size = ext2fs_swab32(sb->s_log_cluster_size); in ext2fs_swap_super() 35 sb->s_blocks_per_group = ext2fs_swab32(sb->s_blocks_per_group); in ext2fs_swap_super() [all …]
|
/external/jetty/src/java/org/eclipse/jetty/servlet/ |
D | StatisticsServlet.java | 132 StringBuilder sb = new StringBuilder(); in sendXmlResponse() local 134 sb.append("<statistics>\n"); in sendXmlResponse() 136 sb.append(" <requests>\n"); in sendXmlResponse() 137 sb.append(" <statsOnMs>").append(_statsHandler.getStatsOnMs()).append("</statsOnMs>\n"); in sendXmlResponse() 139 sb.append(" <requests>").append(_statsHandler.getRequests()).append("</requests>\n"); in sendXmlResponse() 140 …sb.append(" <requestsActive>").append(_statsHandler.getRequestsActive()).append("</requestsActi… in sendXmlResponse() 141 …sb.append(" <requestsActiveMax>").append(_statsHandler.getRequestsActiveMax()).append("</reques… in sendXmlResponse() 142 …sb.append(" <requestsTimeTotal>").append(_statsHandler.getRequestTimeTotal()).append("</request… in sendXmlResponse() 143 …sb.append(" <requestsTimeMean>").append(_statsHandler.getRequestTimeMean()).append("</requestsT… in sendXmlResponse() 144 …sb.append(" <requestsTimeMax>").append(_statsHandler.getRequestTimeMax()).append("</requestsTim… in sendXmlResponse() [all …]
|
/external/libcxx/test/std/depr/depr.str.strstreams/depr.strstreambuf/depr.strstreambuf.virtuals/ |
D | overflow.pass.cpp | 23 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 …]
|
D | pbackfail.pass.cpp | 35 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 …]
|
D | seekoff.pass.cpp | 24 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/ |
D | StringBuilderBenchmark.java | 32 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/src/fxbarcode/datamatrix/ |
D | BC_TextEncoder.cpp | 39 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/ |
D | VerboseReporter.java | 140 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() 144 …sb.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/jdiff/src/jdiff/ |
D | API.java | 293 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/jsilver/src/com/google/streamhtmlparser/util/ |
D | EntityResolver.java | 119 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/guava/guava-tests/benchmark/com/google/common/base/ |
D | JoinerBenchmark.java | 82 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/google-tv-pairing-protocol/java/src/com/google/polo/json/ |
D | JSONML.java | 311 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 …]
|
D | XMLTokener.java | 66 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 …]
|
/external/dexmaker/src/dx/java/com/android/dx/rop/code/ |
D | AccessFlags.java | 298 StringBuffer sb = new StringBuffer(80); in humanHelper() local 304 sb.append("|public"); in humanHelper() 307 sb.append("|private"); in humanHelper() 310 sb.append("|protected"); in humanHelper() 313 sb.append("|static"); in humanHelper() 316 sb.append("|final"); in humanHelper() 320 sb.append("|super"); in humanHelper() 322 sb.append("|synchronized"); in humanHelper() 327 sb.append("|bridge"); in humanHelper() 329 sb.append("|volatile"); in humanHelper() [all …]
|
D | Insn.java | 306 StringBuffer sb = new StringBuffer(80); in toStringWithInline() local 308 sb.append("Insn{"); in toStringWithInline() 309 sb.append(position); in toStringWithInline() 310 sb.append(' '); in toStringWithInline() 311 sb.append(opcode); in toStringWithInline() 314 sb.append(' '); in toStringWithInline() 315 sb.append(extra); in toStringWithInline() 318 sb.append(" :: "); in toStringWithInline() 321 sb.append(result); in toStringWithInline() 322 sb.append(" <- "); in toStringWithInline() [all …]
|
/external/nanohttpd/samples/src/main/java/fi/iki/elonen/debug/ |
D | DebugServer.java | 53 private void listItem(StringBuilder sb, Map.Entry<String, ? extends Object> entry) { in listItem() argument 54 …sb.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() 67 …sb.append("<p><blockquote><b>URI</b> = ").append(String.valueOf(session.getUri())).append("<br />"… in serve() 69 …sb.append("<b>Method</b> = ").append(String.valueOf(session.getMethod())).append("</blockquote></p… in serve() 71 …sb.append("<h3>Headers</h3><p><blockquote>").append(toString(session.getHeaders())).append("</bloc… in serve() [all …]
|