Home
last modified time | relevance | path

Searched refs:truncate (Results 1 – 25 of 491) sorted by relevance

12345678910>>...20

/external/guava/guava-tests/test/com/google/common/base/
DAsciiTest.java86 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/
Dftruncate.fio8 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/
Dtest-resize12 truncate -s 8T $FS
17 truncate -s 20T $FS
23 truncate -s 21T $FS
/external/icu/icu4c/source/common/
Dlocdispnames.cpp61 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/
Dexample.py83 def truncate(self, pos): member in cStringIO.InputType
85 truncate.pyarg = "|i"
/external/e2fsprogs/tests/scripts/
Dresize_test4 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/
Desctrn.cpp149 buf.truncate(0); in handleTransliterate()
157 buf.truncate(0); in handleTransliterate()
161 buf.truncate(prefixLen); in handleTransliterate()
Dtransreg.cpp329 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()
Dname2uni.cpp154 name.truncate(0); in handleTransliterate()
203 str.truncate(0); in handleTransliterate()
/external/skia/tools/
Dgit-sync-deps103 def truncate(s, length): function
106 directory = truncate(directory, dlen)
107 checkoutable = truncate(checkoutable, 40)
/external/skqp/tools/
Dgit-sync-deps103 def truncate(s, length): function
106 directory = truncate(directory, dlen)
107 checkoutable = truncate(checkoutable, 40)
/external/python/cpython2/Tools/freeze/
Dbkfile.py30 self.truncate = self.__file.truncate
/external/ltp/testcases/kernel/io/ltp-aiodio/
Ddio_truncate.c167 truncate(filename, 0); in main()
169 truncate("junkfile", 0); in main()
/external/python/cpython3/Lib/test/
Dtest_largefile.py106 f.truncate()
114 f.truncate(newsize)
121 f.truncate(1)
Dtest_memoryio.py75 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/
Dtest_largefile.py118 f.truncate()
126 f.truncate(newsize)
134 f.truncate(1)
Dtest_StringIO.py64 f.truncate()
66 f.truncate(5)
70 self.assertRaises(IOError, f.truncate, -1)
/external/ltp/testcases/kernel/syscalls/truncate/
Dtruncate02.c118 TEST(truncate(TESTFILE, TRUNC_LEN1)); in main()
157 TEST(truncate(TESTFILE, TRUNC_LEN2)); in main()
/external/ltp/testcases/kernel/security/tomoyo/
Dtomoyo_rewrite_test.c103 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/
Ddenseranges.cpp52 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.py326 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/
Dwiden_conv-1.ll5 ; 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/
DICUResourceBundleCollationTest.java160 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/
DICUResourceBundleCollationTest.java163 boolean truncate, String[] testCases) { in getFunctionalEquivalentTestCases() argument
177 …ICUResourceBundle.getFunctionalEquivalent(path, cl, resName, keyword, inLocale, isAvail, truncate); in getFunctionalEquivalentTestCases()
/external/pdfium/xfa/fxfa/
Dcxfa_ffbarcode.cpp210 Optional<bool> truncate = node->GetBarcodeAttribute_Truncate(); in UpdateWidgetProperty() local
211 if (truncate) in UpdateWidgetProperty()
212 pBarCodeWidget->SetTruncated(*truncate); in UpdateWidgetProperty()

12345678910>>...20