/third_party/jerryscript/tests/jerry/ |
H A D | string-prototype-trim.js | 26 assert(Object.getOwnPropertyDescriptor(String.prototype.trim, 'length').configurable === length_configurable()); 28 assert(Object.getOwnPropertyDescriptor(String.prototype.trim, 'length').enumerable === false); 30 assert(Object.getOwnPropertyDescriptor(String.prototype.trim, 'length').writable === false); 32 assert(String.prototype.trim.length === 0); 35 assert(String.prototype.trim.call(new String()) === ""); 37 assert(String.prototype.trim.call({}) === "[object Object]"); 41 String.prototype.trim.call(undefined); 49 String.prototype.trim.call(null); 56 assert(" hello world".trim() === "hello world"); 58 assert("hello world ".trim() [all...] |
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/data/ |
H A D | FontDataTests.java | 132 for (int trim = 0; trim < (rfd.length() / 2) + 1; in slicingReadTest() 133 trim += (rfd.length() / SLICING_READWRITE_TEST_BUFFER_TRIM_FRACTION_DENOMINATOR) + 1) { in slicingReadTest() 134 // System.out.println("\tread - trim = " + trim); in slicingReadTest() 135 int length = rfd.length() - 2 * trim; in slicingReadTest() 136 ReadableFontData slice = rfd.slice(trim, length); in slicingReadTest() 137 readComparison(trim, length, rfd, slice); in slicingReadTest() 142 for (int trim = 0; trim < (rf in slicingWriteTest() [all...] |
/third_party/skia/third_party/externals/sfntly/cpp/src/test/ |
H A D | font_data_test.cc | 255 fprintf(stderr, "read - trim = "); in SlicingReadTest() 256 for (int32_t trim = 0; trim < (rfd->Length() / 2) + 1; in SlicingReadTest() 257 trim += (rfd->Length() / 21) + 1) { in SlicingReadTest() 258 fprintf(stderr, "%d ", trim); in SlicingReadTest() 259 int32_t length = rfd->Length() - 2 * trim; in SlicingReadTest() 261 slice.Attach(down_cast<ReadableFontData*>(rfd->Slice(trim, length))); in SlicingReadTest() 262 EXPECT_TRUE(ReadComparison(trim, length, rfd, slice)); in SlicingReadTest() 268 fprintf(stderr, "write - trim = "); in SlicingWriteTest() 269 for (int32_t trim in SlicingWriteTest() [all...] |
/third_party/node/test/parallel/ |
H A D | test-console.js | 249 assert.match(strings.shift().trim(), /^label: \d+(\.\d{1,3})?(ms|s)$/); 250 assert.match(strings.shift().trim(), /^__proto__: \d+(\.\d{1,3})?(ms|s)$/); 251 assert.match(strings.shift().trim(), /^constructor: \d+(\.\d{1,3})?(ms|s)$/); 252 assert.match(strings.shift().trim(), /^hasOwnProperty: \d+(\.\d{1,3})?(ms|s)$/); 255 assert.match(strings.shift().trim(), /^: \d+(\.\d{1,3})?(ms|s)$/); 256 assert.match(strings.shift().trim(), 258 assert.match(strings.shift().trim(), 260 assert.match(strings.shift().trim(), /^null: \d+(\.\d{1,3})?(ms|s)$/); 261 assert.match(strings.shift().trim(), /^default: \d+(\.\d{1,3})?(ms|s)$/); 262 assert.match(strings.shift().trim(), / [all...] |
H A D | test-child-process-windows-hide.js | 31 assert.strictEqual(child.stdout.toString().trim(), '42'); 32 assert.strictEqual(child.stderr.toString().trim(), ''); 46 assert.strictEqual(stdout.trim(), '42'); 47 assert.strictEqual(stderr.trim(), '');
|
H A D | test-vm-run-in-new-context.js | 85 assert.strictEqual(lines[0].trim(), `${filename}:1`); 86 assert.strictEqual(lines[1].trim(), code); 88 assert.strictEqual(lines[4].trim(), 'Error: foo'); 89 assert.strictEqual(lines[5].trim(), `at ${filename}:1:7`);
|
H A D | test-child-process-execfile.js | 21 assert.strictEqual(e.message.trim(), 33 assert.strictEqual(err.toString().trim(), errorString); 38 assert.strictEqual(stdout.trim(), ''); 39 assert.strictEqual(stderr.trim(), '');
|
/third_party/curl/scripts/ |
H A D | completion.pl | 95 $option .= " --short-option '" . strip_dash(trim($short)) . "'" 97 $option .= " --long-option '" . strip_dash(trim($long)) . "'" 99 $option .= " --description '" . strip_dash(trim($desc)) . "'" 102 $option .= '{' . trim($short) . ',' if defined $short; 103 $option .= trim($long) if defined $long; 105 $option .= '\'[' . trim($desc) . ']\'' if defined $desc; 138 sub trim { my $s = shift; $s =~ s/^\s+|\s+$//g; return $s }; subroutine
|
/third_party/toybox/toys/pending/ |
H A D | man.c | 69 static void trim(char *x) in trim() function 99 if (start(".BR")) trim(".BR "), s(" ", ""); // bash boldpunct in do_man() 100 if (start(".IP")) newln(), trim(".IP "); // bash list in do_man() 101 if (start(".IR")) trim(".IR "), s(" ", ""); // bash itapunct in do_man() 103 trim(".B "); // bash bold in do_man() 104 trim(".BI "); // gawk boldita in do_man() 105 trim(".FN "); // bash filename in do_man() 106 trim(".I "); // bash ita in do_man() 107 trim(".if n "); // bash nroff in do_man()
|
/third_party/icu/tools/currency/src/com/ibm/icu/dev/tool/currency/ |
H A D | CurrencyDataParser.java | 121 currBld.setEntity(new String(ch, start, length).trim()); in characters() 124 currBld.setCurrency(new String(ch, start, length).trim()); in characters() 127 currBld.setAlphabeticCode(new String(ch, start, length).trim()); in characters() 130 currBld.setNumericCode(new String(ch, start, length).trim()); in characters() 133 currBld.setMinorUnit(new String(ch, start, length).trim()); in characters() 136 currBld.setWithdrawalDate(new String(ch, start, length).trim()); in characters() 139 currBld.setRemark(new String(ch, start, length).trim()); in characters()
|
/third_party/typescript/tests/baselines/reference/ |
H A D | commaOperatorWithSecondOperandNumberType.js | 28 STRING.trim(), NUMBER = 1; 35 var resultIsNumber11 = (STRING.trim(), NUMBER = 1); 62 STRING.trim(), NUMBER = 1;
68 var resultIsNumber11 = (STRING.trim(), NUMBER = 1);
|
/third_party/icu/tools/unicodetools/com/ibm/rbm/gui/ |
H A D | ResourceCreationDialog.java | 87 String encoding = enc1Field.getText().trim(); in createResource() 88 String enc2 = enc2Field.getText().trim(); in createResource() 90 String enc3 = enc3Field.getText().trim(); in createResource() 92 boolean ret = rbm.createResource(titleField.getText().trim(), commentField.getText().trim(), managerField.getText().trim(), in createResource() 93 encoding, nam1Field.getText().trim(), nam2Field.getText().trim(), in createResource() 94 nam3Field.getText().trim(), copyCheckBox.isSelected()); in createResource()
|
H A D | BundleItemCreationDialog.java | 94 String nameText = lookupLabels[i].getText().trim(); in createItem() 96 String value = lookupFields[i].getText().trim(); in createItem() 100 return rbm.createItem(nameField.getText().trim(), transField.getText().trim(), in createItem() 102 commentField.getText().trim(), lookupHash); in createItem() 110 String nameText = lookupLabels[i].getText().trim(); in editItem() 112 String value = lookupFields[i].getText().trim(); in editItem() 116 return rbm.editItem(item, nameField.getText().trim(), in editItem() 117 transField.getText().trim(), ((BundleGroup)groupComboBox.getSelectedItem()).getName(), in editItem() 118 commentField.getText().trim(), lookupHas in editItem() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
H A D | FormatVariadic.cpp | 58 StringRef RepString = Spec.trim("{}"); in parseReplacementItem() 67 RepString = RepString.trim(); in parseReplacementItem() 72 RepString = RepString.trim(); in parseReplacementItem() 78 RepString = RepString.trim(); in parseReplacementItem() 80 Options = RepString.drop_front().trim(); in parseReplacementItem() 83 RepString = RepString.trim(); in parseReplacementItem()
|
/third_party/weex-loader/deps/weex-styler/lib/ |
H A D | validator.js | 216 v = (v || '').toString().trim() 232 v = (v || '').toString().trim() 255 v = (v || '').toString().trim() 276 v = (v || '').toString().trim() 287 v = (v || '').toString().trim() 359 v = (v || '').toString().trim() 393 v = (v || '').toString().trim() 399 v = (v || '').toString().trim() 405 v = (v || '').toString().trim() 411 v = (v || '').toString().trim() [all...] |
/third_party/node/test/common/ |
H A D | child_process.js | 68 trim = false, 96 const { passed, reason } = checkOutput(trim ? stderrStr.trim() : stderrStr, stderrCheck); 103 const { passed, reason } = checkOutput(trim ? stdoutStr.trim() : stdoutStr, stdoutCheck);
|
/third_party/rust/crates/bindgen/bindgen/ir/ |
H A D | comment.rs | 42 .map(|l| l.trim().trim_start_matches('/')) in preprocess_single_lines() 56 .map(|line| line.trim().trim_start_matches('*').trim_start_matches('!')) in preprocess_multi_line() 57 .skip_while(|line| line.trim().is_empty()) // Skip the first empty lines. in preprocess_multi_line() 61 if lines.last().map_or(false, |l| l.trim().is_empty()) { in preprocess_multi_line()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | UnicodeSetSpanner.java | 15 * A helper class used to count, replace, and trim CharSequences based on UnicodeSet matches. 313 * Options for the trim() method 345 * new UnicodeSet("[ab]").trim("abacatbab")} 350 * the sequence to trim 355 public CharSequence trim(CharSequence sequence) { in trim() method in UnicodeSetSpanner 356 return trim(sequence, TrimOption.BOTH, SpanCondition.SIMPLE); in trim() 366 * new UnicodeSet("[ab]").trim("abacatbab", TrimOption.LEADING)} 372 * the sequence to trim 379 public CharSequence trim(CharSequence sequence, TrimOption trimOption) { in trim() method in UnicodeSetSpanner 380 return trim(sequenc in trim() 405 public CharSequence trim(CharSequence sequence, TrimOption trimOption, SpanCondition spanCondition) { trim() method in UnicodeSetSpanner [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
H A D | UnicodeSetSpanner.java | 16 * A helper class used to count, replace, and trim CharSequences based on UnicodeSet matches. 282 * Options for the trim() method 306 * new UnicodeSet("[ab]").trim("abacatbab")} 311 * the sequence to trim 314 public CharSequence trim(CharSequence sequence) { in trim() method in UnicodeSetSpanner 315 return trim(sequence, TrimOption.BOTH, SpanCondition.SIMPLE); in trim() 325 * new UnicodeSet("[ab]").trim("abacatbab", TrimOption.LEADING)} 331 * the sequence to trim 336 public CharSequence trim(CharSequence sequence, TrimOption trimOption) { in trim() method in UnicodeSetSpanner 337 return trim(sequenc in trim() 360 public CharSequence trim(CharSequence sequence, TrimOption trimOption, SpanCondition spanCondition) { trim() method in UnicodeSetSpanner [all...] |
/third_party/node/deps/undici/src/lib/cookies/ |
H A D | parse.js | 67 name = name.trim() 68 value = value.trim() 153 attributeName = attributeName.trim() 154 attributeValue = attributeValue.trim()
|
/third_party/protobuf/php/src/Google/Protobuf/Internal/ |
H A D | CodedOutputStream.php | 56 public function writeVarint32($value, $trim) 59 $size = self::writeVarintToArray($value, $bytes, $trim); 104 public static function writeVarintToArray($value, &$buffer, $trim = false) variable 111 GPBUtil::divideInt64ToInt32($value, $high, $low, $trim);
|
/third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/test/ |
H A D | helpers.js | 58 fs.writeFileSync(absPath, HEADER + result.trim() + '\n'); 63 const expected = fs.readFileSync(absPath, 'utf-8').trim().split('\n'); 65 assert.strictEqual(expected.join('\n'), result.trim());
|
/third_party/icu/icu4c/source/tools/genrb/ |
H A D | prscmnts.cpp | 71 trim(UChar *src, int32_t srcLen, UErrorCode *status){ in trim() function 80 srcLen = trim(source, srcLen, status); in removeCmtText() 142 return trim(*dest, destLen, status); in getDescription() 233 return trim(*dest, destLen, status); in getTranslate() 243 return trim(*dest, destLen, status); in getNote()
|
/third_party/node/deps/icu-small/source/tools/genrb/ |
H A D | prscmnts.cpp | 71 trim(char16_t *src, int32_t srcLen, UErrorCode *status){ in trim() function 80 srcLen = trim(source, srcLen, status); in removeCmtText() 142 return trim(*dest, destLen, status); in getDescription() 233 return trim(*dest, destLen, status); in getTranslate() 243 return trim(*dest, destLen, status); in getNote()
|
/third_party/node/deps/npm/node_modules/spdx-correct/ |
H A D | index.js | 90 return argument.trim() 286 var transformed = transforms[i](identifier).trim() 331 identifier.trim().length !== 0 336 identifier = identifier.trim() 340 var noPlus = identifier.replace(/\+$/, '').trim()
|