/external/guava/guava-tests/test/com/google/common/base/ |
D | AsciiTest.java | 86 assertEquals("foobar", Ascii.truncate("foobar", 10, "...")); in testTruncate() 87 assertEquals("fo...", Ascii.truncate("foobar", 5, "...")); in testTruncate() 88 assertEquals("foobar", Ascii.truncate("foobar", 6, "...")); in testTruncate() 89 assertEquals("...", Ascii.truncate("foobar", 3, "...")); in testTruncate() 90 assertEquals("foobar", Ascii.truncate("foobar", 10, "…")); in testTruncate() 91 assertEquals("foo…", Ascii.truncate("foobar", 4, "…")); in testTruncate() 92 assertEquals("fo--", Ascii.truncate("foobar", 4, "--")); in testTruncate() 93 assertEquals("foobar", Ascii.truncate("foobar", 6, "…")); in testTruncate() 94 assertEquals("foob…", Ascii.truncate("foobar", 5, "…")); in testTruncate() 95 assertEquals("foo", Ascii.truncate("foobar", 3, "")); in testTruncate() [all …]
|
/external/fio/examples/ |
D | ftruncate.fio | 8 filename=truncate 17 # truncate the file to 4Kbytes then repeatedly grow the file back to just over 19 [grow-truncate] 24 [rand-truncate]
|
/external/e2fsprogs/resize/ |
D | test-resize | 12 truncate -s 8T $FS 17 truncate -s 20T $FS 23 truncate -s 21T $FS
|
/external/icu/icu4c/source/common/ |
D | locdispnames.cpp | 61 result.truncate(0); in getDisplayLanguage() 73 result.truncate(0); in getDisplayLanguage() 101 result.truncate(0); in getDisplayScript() 113 result.truncate(0); in getDisplayScript() 141 result.truncate(0); in getDisplayCountry() 153 result.truncate(0); in getDisplayCountry() 181 result.truncate(0); in getDisplayVariant() 193 result.truncate(0); in getDisplayVariant() 221 result.truncate(0); in getDisplayName() 233 result.truncate(0); in getDisplayName()
|
/external/python/cpython2/Tools/framer/ |
D | example.py | 83 def truncate(self, pos): member in cStringIO.InputType 85 truncate.pyarg = "|i"
|
/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/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()
|
D | transreg.cpp | 329 nextSpec.truncate(i); in setupNext() 336 nextSpec.truncate(0); in setupNext() 767 result.truncate(0); in getAvailableSource() 784 result.truncate(0); // invalid source in getAvailableTarget() 796 result.truncate(0); // invalid index in getAvailableTarget() 826 result.truncate(0); // invalid source in getAvailableVariant() 847 result.truncate(0); // invalid target or index in getAvailableVariant() 1116 utag.truncate(0); in findInBundle() 1136 s.truncate(0); in findInBundle()
|
D | name2uni.cpp | 154 name.truncate(0); in handleTransliterate() 203 str.truncate(0); in handleTransliterate()
|
/external/skia/tools/ |
D | git-sync-deps | 103 def truncate(s, length): function 106 directory = truncate(directory, dlen) 107 checkoutable = truncate(checkoutable, 40)
|
/external/skqp/tools/ |
D | git-sync-deps | 103 def truncate(s, length): function 106 directory = truncate(directory, dlen) 107 checkoutable = truncate(checkoutable, 40)
|
/external/python/cpython2/Tools/freeze/ |
D | bkfile.py | 30 self.truncate = self.__file.truncate
|
/external/ltp/testcases/kernel/io/ltp-aiodio/ |
D | dio_truncate.c | 167 truncate(filename, 0); in main() 169 truncate("junkfile", 0); in main()
|
/external/python/cpython3/Lib/test/ |
D | test_largefile.py | 106 f.truncate() 114 f.truncate(newsize) 121 f.truncate(1)
|
D | test_memoryio.py | 75 self.assertEqual(f.truncate(12), 12) 118 self.assertRaises(ValueError, memio.truncate, -1) 120 self.assertEqual(memio.truncate(), 6) 122 self.assertEqual(memio.truncate(4), 4) 129 self.assertEqual(memio.truncate(None), pos) 131 self.assertRaises(TypeError, memio.truncate, '0') 133 self.assertRaises(ValueError, memio.truncate, 0) 423 self.assertRaises(BufferError, memio.truncate) 434 memio.truncate() 753 memio.truncate(1)
|
/external/python/cpython2/Lib/test/ |
D | test_largefile.py | 118 f.truncate() 126 f.truncate(newsize) 134 f.truncate(1)
|
D | test_StringIO.py | 64 f.truncate() 66 f.truncate(5) 70 self.assertRaises(IOError, f.truncate, -1)
|
/external/ltp/testcases/kernel/syscalls/truncate/ |
D | truncate02.c | 118 TEST(truncate(TESTFILE, TRUNC_LEN1)); in main() 157 TEST(truncate(TESTFILE, TRUNC_LEN2)); in main()
|
/external/ltp/testcases/kernel/security/tomoyo/ |
D | tomoyo_rewrite_test.c | 103 show_result(truncate(REWRITE_PATH, 0)); in stage_rewrite_test() 147 show_result(truncate(REWRITE_PATH, 0)); in stage_rewrite_test()
|
/external/icu/icu4c/source/tools/toolutil/ |
D | denseranges.cpp | 52 void truncate(int32_t newLength) { in truncate() function in __anon92f3ca900111::LargestGaps 150 gaps.truncate(num-1); in uprv_makeDenseRanges()
|
/external/python/cpython2/Lib/ |
D | _pyio.py | 326 def truncate(self, pos=None): member in IOBase 712 def truncate(self, pos=None): member in _BufferedIOMixin 722 return self.raw.truncate(pos) 879 def truncate(self, pos=None): member in BytesIO 1115 def truncate(self, pos=None): member in BufferedWriter 1120 return self.raw.truncate(pos) 1272 def truncate(self, pos=None): member in BufferedRandom 1276 return BufferedWriter.truncate(self, pos) 1326 def truncate(self, pos=None): member in TextIOBase 1777 def truncate(self, pos=None): member in TextIOWrapper [all …]
|
/external/llvm/test/CodeGen/X86/ |
D | widen_conv-1.ll | 5 ; truncate v2i64 to v2i32 29 ; truncate v3i32 to v3i8 65 ; truncate v5i16 to v5i8
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/util/ |
D | ICUResourceBundleCollationTest.java | 160 boolean truncate, String[] testCases) { in getFunctionalEquivalentTestCases() argument 174 …ICUResourceBundle.getFunctionalEquivalent(path, cl, resName, keyword, inLocale, isAvail, truncate); in getFunctionalEquivalentTestCases()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | ICUResourceBundleCollationTest.java | 163 boolean truncate, String[] testCases) { in getFunctionalEquivalentTestCases() argument 177 …ICUResourceBundle.getFunctionalEquivalent(path, cl, resName, keyword, inLocale, isAvail, truncate); in getFunctionalEquivalentTestCases()
|
/external/pdfium/xfa/fxfa/ |
D | cxfa_ffbarcode.cpp | 210 Optional<bool> truncate = node->GetBarcodeAttribute_Truncate(); in UpdateWidgetProperty() local 211 if (truncate) in UpdateWidgetProperty() 212 pBarCodeWidget->SetTruncated(*truncate); in UpdateWidgetProperty()
|