| /src/external/bsd/zstd/dist/contrib/pzstd/utils/test/ |
| RangeTest.cpp | 26 Range<std::string::const_iterator> piece(str.begin(), str.end()); 27 EXPECT_EQ(5, piece.size()); 28 EXPECT_EQ('h', *piece.data()); 29 EXPECT_EQ('o', *(piece.end() - 1)); 33 StringPiece piece(str.data(), str.size()); 34 EXPECT_EQ(5, piece.size()); 35 EXPECT_EQ('h', *piece.data()); 36 EXPECT_EQ('o', *(piece.end() - 1)); 40 StringPiece piece(str); 41 EXPECT_EQ(5, piece.size()) [all...] |
| /src/lib/libc/hash/md2/ |
| md2.c | 143 unsigned int idx, piece; local 148 for (idx = 0; idx < inputLen; idx += piece) { 149 piece = 32 - context->i; 150 if ((inputLen - idx) < piece) 151 piece = inputLen - idx; 152 memcpy(&context->X[context->i], &input[idx], (size_t)piece); 153 if ((context->i += piece) == 32)
|
| /src/lib/libc/gen/ |
| sysctlgetmibinfo.c | 417 const char *piece, *dot; local 483 piece = gname; 484 while (piece != NULL && *piece != '\0') { 488 dot = strchr(piece, sep[0]); 490 l = strlcpy(token, piece, sizeof(token)); 492 COPY_OUT_DATA(piece, cname, csz, namelenp, nl); 497 else if (dot - piece > (intptr_t)(sizeof(token) - 1)) { 503 strncpy(token, piece, (size_t)(dot - piece)); [all...] |
| /src/sys/fs/udf/ |
| udf_readwrite.c | 278 * For reading, the size of allocated piece is returned in multiple of sector 293 int piece; local 316 piece = MIN(MAXPHYS/sector_size, sectors); 317 DPRINTF(READ, ("read in %d + %d\n", (uint32_t) rblkno, piece)); 320 nestiobuf_setup(buf, nestbuf, buf_offset, piece * sector_size); 334 lblkno += piece; 335 rblkno += piece; 336 buf_offset += piece * sector_size; 337 sectors -= piece; 361 /* read initial piece */ 435 int piece; local [all...] |
| /src/external/gpl2/gettext/dist/gettext-tools/tests/ |
| lang-c | 35 printf (ngettext ("a piece of cake", "%d pieces of cake", n), n); 66 msgid "a piece of cake" 92 msgid "a piece of cake"
|
| lang-csharp | 44 Console.WriteLine(String.Format(catalog.GetPluralString("a piece of cake","{0} pieces of cake",n), n)); 64 msgid "a piece of cake" 89 msgid "a piece of cake"
|
| lang-java | 68 System.out.println(MessageFormat.format(GettextResource.ngettext(catalog,"a piece of cake","{0,number} pieces of cake",n), new Object[] { new Integer(n) })); 88 msgid "a piece of cake" 113 msgid "a piece of cake"
|
| lang-objc | 51 printf (ngettext ("a piece of cake", "%d pieces of cake", n), n); 82 msgid "a piece of cake" 108 msgid "a piece of cake"
|
| lang-bash | 25 $echo "`eval_ngettext "a piece of cake" "\\$n pieces of cake" $n`" 43 msgid "a piece of cake" 64 msgid "a piece of cake"
|
| /src/usr.sbin/makefs/ |
| udf.c | 487 udf_append_file_mapping(union dscrptr *dscr, struct long_ad *piece) 534 use_shorts = (udf_rw16(piece->loc.part_num) == context.metadata_part); 538 size = UDF_EXT_LEN(udf_rw32(piece->len)); 554 last_part_num = udf_rw16(piece->loc.part_num); 568 piece_len = UDF_EXT_LEN(udf_rw32(piece->len)); 569 piece_lb_num = udf_rw32(piece->loc.lb_num); 570 piece_part_num = udf_rw16(piece->loc.part_num); 604 piece->len = udf_rw32(piece_len); 605 piece->loc.lb_num = udf_rw32(piece_lb_num); 606 memcpy(pos, piece, long_len) [all...] |
| /src/usr.bin/make/ |
| dir.c | 772 const char *prefix, *middle, *piece, *middle_end, *suffix; local 791 piece = middle; 792 while (piece < middle_end + 1) { 793 const char *piece_end = separator_comma(piece); 794 size_t piece_len = (size_t)(piece_end - piece); 796 char *file = concat3(prefix, prefix_len, piece, piece_len, 807 piece = piece_end + 1; 1396 /* XXX: Is every piece of memory freed as it should? */
|
| /src/external/gpl2/gmake/dist/ |
| vmsify.c | 909 static char piece[512]; local 915 p = piece; 989 return piece;
|
| /src/external/apache2/llvm/dist/clang/include/clang/Rewrite/Core/ |
| RewriteRope.h | 130 llvm::StringRef piece() const { function in class:clang::RopePieceBTreeIterator
|
| /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/ |
| BugReporter.cpp | 380 auto piece = std::move(path.front()); local 383 switch (piece->getKind()) { 385 removeRedundantMsgs(cast<PathDiagnosticCallPiece>(*piece).path); 388 removeRedundantMsgs(cast<PathDiagnosticMacroPiece>(*piece).subPieces); 396 auto *event = cast<PathDiagnosticEventPiece>(piece.get()); 398 // come up with a preference, record which piece to keep, and consume 399 // another piece from the path. 402 piece = std::move(pieceToKeep == event ? piece : path.front()); 414 path.push_back(std::move(piece)); 431 auto piece = std::move(pieces.front()); local 2660 const auto &piece = *I; local 3055 auto piece = std::make_unique<PathDiagnosticEventPiece>( local [all...] |
| BugReporterVisitors.cpp | 430 /// \return Diagnostics piece for region not modified in the current function, 2269 auto piece = VisitNodeImpl(N, BRC, BR); local 2270 if (piece) { 2271 piece->setTag(getTag()); 2272 if (auto *ev = dyn_cast<PathDiagnosticEventPiece>(piece.get())) 2275 return piece; 2793 const PathDiagnosticPiece *Piece) { 2794 return Piece->getString() == GenericTrueMessage || 2795 Piece->getString() == GenericFalseMessage; 3037 auto Piece = std::make_shared<PathDiagnosticEventPiece>(Loc, *Msg) [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Analysis/ |
| PathDiagnostic.cpp | 84 for (auto &Piece : *this) { 85 switch (Piece->getKind()) { 87 auto &Call = cast<PathDiagnosticCallPiece>(*Piece); 96 auto &Macro = cast<PathDiagnosticMacroPiece>(*Piece); 100 Current.push_back(Piece); 103 // FIXME: This probably shouldn't mutate the original path piece. 112 Current.push_back(Piece); 170 const PathDiagnosticPiece *piece = I.get(); local 171 FullSourceLoc L = piece->getLocation().asLocation().getExpansionLoc(); 181 ArrayRef<SourceRange> Ranges = piece->getRanges() 1067 const PathDiagnosticPiece *piece = I.get(); local [all...] |
| /src/sbin/fsck_udf/ |
| main.c | 536 udf_quick_check_fids_piece(uint8_t *piece, uint32_t piece_len, 547 fid = (struct fileid_desc *) (piece + offset); 581 udf_fids_fixup(uint8_t *piece, uint32_t piece_len, 592 fid = (struct fileid_desc *) (piece + offset); 707 /* check all current overlaps with the piece we have here */ 716 /* piece before overlap? */ 719 /* piece after overlap? */ 758 uint8_t *bpos, *piece; local 824 piece = calloc(1, piece_alloc_len); 825 if (piece == NULL [all...] |
| /src/external/gpl3/gcc.old/dist/gcc/ |
| lto-wrapper.cc | 1724 const unsigned piece = 32; local 1725 char *buf, *filename = XNEWVEC (char, piece); 1730 if (!fgets (buf, piece, f)) 1735 filename = XRESIZEVEC (char, filename, len + piece); 1920 const unsigned piece = 32; local 1922 char *buf, *input_name = (char *)xmalloc (piece); 1935 if (!fgets (buf, piece, stream)) 1940 input_name = (char *)xrealloc (input_name, len + piece);
|
| /src/external/gpl3/gcc.old/dist/lto-plugin/ |
| lto-plugin.c | 593 const unsigned piece = 32; local 594 char *buf, *s = xmalloc (piece); 599 if (!fgets (buf, piece, f)) 607 s = xrealloc (s, len + piece);
|
| /src/usr.bin/make/unit-tests/ |
| dep-var.mk | 66 # To trigger this piece of code, the variable name must contain "$)" or "$:"
|
| varparse-errors.mk | 55 # misleading anyway, that piece of code is probably not necessary. The wrong
|
| var-op-expand.mk | 88 # would have to call VarSubstExpr somehow since this is the only piece of
|
| /src/external/apache2/llvm/dist/clang/lib/Rewrite/ |
| Rewriter.cpp | 42 os << I.piece();
|
| /src/external/apache2/llvm/dist/clang/tools/scan-build-py/libscanbuild/ |
| analyze.py | 111 return [elem for piece in pieces for elem in [constant, piece]]
|
| /src/external/gpl3/gcc.old/dist/gcc/config/arc/ |
| arc.cc | 9096 int piece = align; 9120 if (TARGET_LL64 && (piece >= 4) && (size >= 8)) 9121 piece = 8; 9122 else if (piece > 4) 9123 piece = 4; 9128 for (i = 0; size > 0; i ^= 1, size -= piece) 9133 while (piece > size) 9134 piece >>= 1; 9135 mode = smallest_int_mode_for_size (piece * BITS_PER_UNIT); 9142 dst_addr = force_offsettable (dst_addr, piece, 1) [all...] |