/external/guava/android/guava-tests/test/com/google/common/base/ |
D | AsciiTest.java | 85 assertEquals("foobar", Ascii.truncate("foobar", 10, "...")); in testTruncate() 86 assertEquals("fo...", Ascii.truncate("foobar", 5, "...")); in testTruncate() 87 assertEquals("foobar", Ascii.truncate("foobar", 6, "...")); in testTruncate() 88 assertEquals("...", Ascii.truncate("foobar", 3, "...")); in testTruncate() 89 assertEquals("foobar", Ascii.truncate("foobar", 10, "…")); in testTruncate() 90 assertEquals("foo…", Ascii.truncate("foobar", 4, "…")); in testTruncate() 91 assertEquals("fo--", Ascii.truncate("foobar", 4, "--")); in testTruncate() 92 assertEquals("foobar", Ascii.truncate("foobar", 6, "…")); in testTruncate() 93 assertEquals("foob…", Ascii.truncate("foobar", 5, "…")); in testTruncate() 94 assertEquals("foo", Ascii.truncate("foobar", 3, "")); in testTruncate() [all …]
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | AsciiTest.java | 85 assertEquals("foobar", Ascii.truncate("foobar", 10, "...")); in testTruncate() 86 assertEquals("fo...", Ascii.truncate("foobar", 5, "...")); in testTruncate() 87 assertEquals("foobar", Ascii.truncate("foobar", 6, "...")); in testTruncate() 88 assertEquals("...", Ascii.truncate("foobar", 3, "...")); in testTruncate() 89 assertEquals("foobar", Ascii.truncate("foobar", 10, "…")); in testTruncate() 90 assertEquals("foo…", Ascii.truncate("foobar", 4, "…")); in testTruncate() 91 assertEquals("fo--", Ascii.truncate("foobar", 4, "--")); in testTruncate() 92 assertEquals("foobar", Ascii.truncate("foobar", 6, "…")); in testTruncate() 93 assertEquals("foob…", Ascii.truncate("foobar", 5, "…")); in testTruncate() 94 assertEquals("foo", Ascii.truncate("foobar", 3, "")); in testTruncate() [all …]
|
/external/e2fsprogs/resize/ |
D | test-resize | 12 truncate -s 8T $FS 17 truncate -s 20T $FS 23 truncate -s 21T $FS
|
/external/rust/crates/tokio/src/fs/ |
D | open_options.rs | 242 pub fn truncate(&mut self, truncate: bool) -> &mut OpenOptions { in truncate() method 243 self.0.truncate(truncate); in truncate()
|
/external/llvm-project/llvm/test/CodeGen/X86/ |
D | vector-truncate-combine.ll | 7 ; sequence of extend and subsequent truncate operations. The bug was that an extension 11 ; preservation of the extend/truncate operations mentioned above (2 extend and 12 ; 3 truncate instructions). 14 ; NOTE: This operation could be collapsed in to a single truncate. Once that is done
|
/external/llvm-project/llvm/test/CodeGen/AArch64/ |
D | sve-fixed-length-trunc.ll | 24 ; truncate i16 -> i8 38 ; NOTE: Extra 'add' is to prevent the truncate being combined with the store. 52 ; NOTE: Extra 'add' is to prevent the truncate being combined with the store. 66 ; NOTE: Extra 'add' is to prevent the truncate being combined with the store. 81 ; truncate i32 -> i8 108 ; NOTE: Extra 'add' is to prevent the truncate being combined with the store. 123 ; NOTE: Extra 'add' is to prevent the truncate being combined with the store. 139 ; truncate i32 -> i16 153 ; NOTE: Extra 'add' is to prevent the truncate being combined with the store. 167 ; NOTE: Extra 'add' is to prevent the truncate being combined with the store. [all …]
|
/external/llvm-project/llvm/test/CodeGen/PowerPC/ |
D | add_cmp.ll | 13 ; CHECK: [[REG1:t[0-9]+]]: i32 = truncate {{t[0-9]+}} 26 ; CHECK: [[REG1:t[0-9]+]]: i32 = truncate {{t[0-9]+}} 39 ; CHECK: [[REG1:t[0-9]+]]: i32 = truncate {{t[0-9]+}} 52 ; CHECK: [[REG1:t[0-9]+]]: i16 = truncate {{t[0-9]+}}
|
/external/pdfium/testing/resources/pixel/ |
D | bug_1314.in | 94 1.1 truncate 106 3123412341.1 truncate -3123412340.5 add 118 -1.9 truncate 1.5 add
|
/external/rust/cxx/gen/build/src/ |
D | deps.rs | 67 k.truncate(k.len() - "_CXXBRIDGE_PREFIX".len()); in direct_dependencies() 73 k.truncate(k.len() - "_CXXBRIDGE_LINKS".len()); in direct_dependencies() 87 k.truncate(k.len() - counter_len - "_CXXBRIDGE_DIR".len()); in direct_dependencies()
|
/external/perfetto/ui/src/controller/ |
D | trace_converter.ts | 26 trace: Blob, format: Format, truncate?: 'start'|'end') { 29 if (truncate !== undefined) { 30 args.push('--truncate', truncate);
|
/external/tensorflow/tensorflow/core/kernels/ |
D | cast_op.h | 36 bool truncate = false) { \ 37 if (truncate) { \ 54 bool truncate = false) { \ 55 if (truncate) { \ 81 bool truncate = false) { \ 148 typename TTypes<Tin>::ConstFlat i, bool truncate = false);
|
D | cast_op_impl_bfloat.cc | 35 bool truncate) { in GetGpuCastFromBfloat() argument 38 inp.flat<bfloat16>(), truncate); in GetGpuCastFromBfloat()
|
/external/icu/icu4c/source/common/ |
D | locdispnames.cpp | 64 result.truncate(0); in getDisplayLanguage() 76 result.truncate(0); in getDisplayLanguage() 104 result.truncate(0); in getDisplayScript() 116 result.truncate(0); in getDisplayScript() 144 result.truncate(0); in getDisplayCountry() 156 result.truncate(0); in getDisplayCountry() 184 result.truncate(0); in getDisplayVariant() 196 result.truncate(0); in getDisplayVariant() 224 result.truncate(0); in getDisplayName() 236 result.truncate(0); in getDisplayName()
|
/external/rust/crates/protobuf-codegen/src/ |
D | lib.rs | 110 let truncate = s.len() > MAX_LINE_LEN; in write_file_descriptor_data() localVariable 111 if truncate { in write_file_descriptor_data() 112 s.truncate(prev_len); in write_file_descriptor_data() 114 if truncate || s.len() == MAX_LINE_LEN { in write_file_descriptor_data() 119 if truncate { in write_file_descriptor_data()
|
/external/python/cpython2/Tools/framer/ |
D | example.py | 83 def truncate(self, pos): member in cStringIO.InputType 85 truncate.pyarg = "|i"
|
/external/rust/crates/rayon/src/iter/collect/ |
D | mod.rs | 19 v.truncate(0); // clear any old data in collect_into_vec() 53 left.truncate(0); in unzip_into_vecs() 54 right.truncate(0); in unzip_into_vecs()
|
/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/ |
D | DowngradedSeekableByteChannel.java | 67 public SeekableByteChannel truncate(long size) throws IOException { in truncate() method in DowngradedSeekableByteChannel 68 channel.truncate(size); in truncate()
|
/external/llvm-project/llvm/test/MachineVerifier/ |
D | verifier-generic-extend-truncate.mir | 4 # CHECK: Bad machine code: Generic extend/truncate can not operate on pointers 24 # CHECK: Bad machine code: Generic truncate has destination type no smaller than source *** 30 # CHECK: Bad machine code: Generic extend/truncate can not operate on pointers 46 # CHECK: Bad machine code: Generic extend/truncate can not operate on pointers
|
/external/python/google-api-python-client/samples/tasks_appengine/ |
D | main.py | 43 task['title_short'] = truncate(task['title'], 26) 50 def truncate(s, l): function
|
/external/e2fsprogs/tests/scripts/ |
D | resize_test | 4 truncate() function 20 if truncate -s $SIZE_2 $TMPFILE 2> /dev/null; then 27 if ! truncate -s $SIZE_2 $TMPFILE >> $LOG 2>&1; then
|
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/ |
D | JimfsFileChannelTest.java | 213 channel.truncate(10); // no resize, >= size in testTruncate() 215 channel.truncate(11); // no resize, > size in testTruncate() 217 channel.truncate(5); // resize down to 5 in testTruncate() 221 channel.truncate(10); in testTruncate() 223 channel.truncate(2); in testTruncate() 295 channel.truncate(0); in testFileTimeUpdates() 386 channel.truncate(0); in testClose() 459 channel.truncate(0); in testWritesInReadOnlyMode() 528 channel.truncate(-1); in testTruncateNegative() 1009 channel.truncate(0); in testInterruptedThreads()
|
/external/skqp/tools/ |
D | git-sync-deps | 103 def truncate(s, length): function 106 directory = truncate(directory, dlen) 107 checkoutable = truncate(checkoutable, 40)
|
/external/icu/icu4c/source/i18n/ |
D | esctrn.cpp | 149 buf.truncate(0); in handleTransliterate() 157 buf.truncate(0); in handleTransliterate() 161 buf.truncate(prefixLen); in handleTransliterate()
|
/external/llvm-project/llvm/test/Transforms/PhaseOrdering/ |
D | vector-trunc.ll | 5 define <4 x i16> @truncate(<4 x i32> %x) { 6 ; CHECK-LABEL: @truncate(
|
/external/rust/crates/bytes/tests/ |
D | test_bytes_vec_alloc.rs | 69 bytes.truncate(2); in test_bytes_truncate() 76 bytes.truncate(2); in test_bytes_truncate_and_advance()
|