Home
last modified time | relevance | path

Searched refs:endsWith (Results 1 – 25 of 378) sorted by relevance

12345678910>>...16

/third_party/jerryscript/tests/jerry/es2015/
Dstring-prototype-endswith.js16 assert (x.endsWith ("Valley"));
17 assert (x.endsWith ("Boreal", 20));
18 assert (x.endsWith ("Dancer", 6));
19 assert (x.endsWith (""));
20 assert (x.endsWith ([]));
23 assert (y.endsWith ("Lala") === false);
24 assert (y.endsWith ("fell", 2) === false);
25 assert (y.endsWith ("Final", "Fantasy") === false);
26 assert (y.endsWith ("Hydaelyn", 30) === false);
27 assert (y.endsWith (undefined) === false);
[all …]
/third_party/vk-gl-cts/framework/delibs/decpp/
DdeStringUtil.cpp122 bool endsWith (const std::string& s, const std::string& suffix) in endsWith() function
185 DE_TEST_ASSERT(endsWith("foobar", "foobar")); in StringUtil_selfTest()
186 DE_TEST_ASSERT(endsWith("foobar", "bar")); in StringUtil_selfTest()
187 DE_TEST_ASSERT(endsWith("foobar", "r")); in StringUtil_selfTest()
188 DE_TEST_ASSERT(endsWith("foobar", "")); in StringUtil_selfTest()
189 DE_TEST_ASSERT(endsWith("", "")); in StringUtil_selfTest()
190 DE_TEST_ASSERT(!endsWith("foobar", "foo")); in StringUtil_selfTest()
191 DE_TEST_ASSERT(!endsWith("foobar", "bazfoobar")); in StringUtil_selfTest()
192 DE_TEST_ASSERT(!endsWith("foobar", "foobarbaz")); in StringUtil_selfTest()
193 DE_TEST_ASSERT(!endsWith("", "foo")); in StringUtil_selfTest()
/third_party/flutter/skia/src/sksl/
DSkSLMain.cpp40 if (input.endsWith(".vert")) { in main()
42 } else if (input.endsWith(".frag")) { in main()
44 } else if (input.endsWith(".geom")) { in main()
46 } else if (input.endsWith(".fp")) { in main()
48 } else if (input.endsWith(".stage")) { in main()
66 if (name.endsWith(".spirv")) { in main()
82 } else if (name.endsWith(".glsl")) { in main()
98 } else if (name.endsWith(".metal")) { in main()
114 } else if (name.endsWith(".h")) { in main()
131 } else if (name.endsWith(".cpp")) { in main()
/third_party/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/
DRbPathTest.java71 assertThat(p).endsWith(p).isTrue(); in testEndsWith()
72 assertThat(p).endsWith(RbPath.of()).isTrue(); in testEndsWith()
74 assertThat(p).endsWith(RbPath.of("bar", "baz")).isTrue(); in testEndsWith()
75 assertThat(p).endsWith(RbPath.of("bar")).isFalse(); in testEndsWith()
76 assertThat(p).endsWith(RbPath.of("foo/bar/baz")).isFalse(); in testEndsWith()
/third_party/node/test/parallel/
Dtest-repl-multiline.js28 assert.ok(actual[0].endsWith(input[0]));
30 assert.ok(actual[1].endsWith(input[1]));
32 assert.ok(actual[3].endsWith(input[2]));
Dtest-source-map-api.js38 assert(originalSource.endsWith('disk.js'));
48 if (throwingRequireCallSite.getFileName().endsWith('typescript-throw.js')) {
78 assert(originalSource.endsWith('typescript-throw.ts'));
94 assert(originalSource.endsWith('disk.js'));
Dtest-url-pathtofileurl.js9 assert.ok(fileURL.endsWith('/'));
16 assert.ok(fileURL.endsWith('/'));
18 assert.ok(fileURL.endsWith('%5C'));
Dtest-heapsnapshot-near-heap-limit.js44 .filter((file) => file.endsWith('.heapsnapshot'));
66 .filter((file) => file.endsWith('.heapsnapshot'));
/third_party/typescript/tests/baselines/reference/
DcontrolFlowPropertyDeclarations.js51 function endsWith(haystack, needle) { function
64 return endsWith(haystack, needle)
199 function endsWith(haystack, needle) {
211 return endsWith(haystack, needle)
/third_party/typescript/tests/cases/fourslash/
DcompletionForStringLiteralNonrelativeImport5.ts25 marker: test.markerNames().filter(k => k.endsWith("0")),
30 marker: test.markerNames().filter(k => !k.endsWith("0")),
/third_party/typescript_eslint/packages/eslint-plugin/docs/rules/
Dprefer-string-starts-ends-with.md1 # Enforce the use of `String#startsWith` and `String#endsWith` instead of other equivalent methods …
5 Since ES2015 has added `String#startsWith` and `String#endsWith`, this rule reports other ways to b…
39 foo.endsWith('bar');
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/
DRbPath.java111 checkArgument(segment.endsWith(">"), in RbPath()
116 checkArgument(segment.endsWith("\""), in RbPath()
153 public boolean endsWith(RbPath suffix) { in endsWith() method in RbPath
209 if (lastElement.endsWith(type)) { in typeSuffixIsAnyOf()
DIcuTextWriter.java141 if (!label.startsWith("<") && !label.endsWith(">")) { in open()
182 !rbPath.endsWith(RB_SEQUENCE) && !rbPath.isBinPath(), in forPath()
274 && !rbPath.getSegment(rbPath.length() - 1).endsWith(":alias") in mustBeArray()
275 && !rbPath.endsWith(RB_NAMED)) in mustBeArray()
346 item.startsWith("[") && item.endsWith("]") ? UNICODESET_ESCAPE : STRING_ESCAPE; in quoteInside()
/third_party/node/test/common/
Dcpu-prof.js11 .filter((file) => file.endsWith('.cpuprofile'))
20 return frame.url.endsWith(suffix);
/third_party/jsframework/mock-generate/src/generate/
DgenerateVariableStatementDeclaration.ts33 if (statementEntity.typeName.endsWith('n')) {
59 statementValue = statementEntity.initializer.endsWith('n');
/third_party/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/testing/
DRbPathSubject.java40 public final BooleanSubject endsWith(RbPath path) { in endsWith() method in RbPathSubject
41 return check("endsWith('%s')", path).that(actual.endsWith(path)); in endsWith()
/third_party/typescript/tests/cases/compiler/
DcontrolFlowPropertyDeclarations.ts50 function endsWith(haystack, needle) { function
63 return endsWith(haystack, needle)
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DMessageLiteToString.java92 if (suffix.endsWith(LIST_SUFFIX) in reflectivePrintWithIndent()
93 && !suffix.endsWith(BUILDER_LIST_SUFFIX) in reflectivePrintWithIndent()
111 if (suffix.endsWith(MAP_SUFFIX) in reflectivePrintWithIndent()
140 if (suffix.endsWith(BYTES_SUFFIX) in reflectivePrintWithIndent()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/opentype/testing/
DFontLoader.java32 if (file.getName().endsWith(".ttf")) { in getFontFiles()
33 if (foundStart || startFrom.endsWith(file.getName())) { in getFontFiles()
/third_party/flutter/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/opentype/testing/
DFontLoader.java32 if (file.getName().endsWith(".ttf")) { in getFontFiles()
33 if (foundStart || startFrom.endsWith(file.getName())) { in getFontFiles()
/third_party/flutter/skia/tests/
DStringTest.cpp46 REPORTER_ASSERT(reporter, a.endsWith("llo")); in DEF_TEST()
47 REPORTER_ASSERT(reporter, a.endsWith('o')); in DEF_TEST()
48 REPORTER_ASSERT(reporter, !a.endsWith("ll" )); in DEF_TEST()
49 REPORTER_ASSERT(reporter, !a.endsWith('l')); in DEF_TEST()
50 REPORTER_ASSERT(reporter, a.endsWith("")); in DEF_TEST()
/third_party/icu/tools/unicodetools/com/ibm/rbm/
DRBPropertiesExporter.java36 … if (name.toLowerCase().endsWith(".properties") && f.getName().indexOf("_") < 0) return true; in RBPropertiesExporter()
53 if (base_name.toLowerCase().endsWith(".properties")) in export()
/third_party/node/test/doctool/
Dtest-apilinks.mjs18 if (!fixture.endsWith('.js')) return;
34 assert.ok(actualLinks[k].endsWith('/' + v),
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DByteStringTest.java805 assertTrue(string.endsWith(ByteString.EMPTY)); in testEndsWith()
806 assertTrue(string.endsWith(string)); in testEndsWith()
807 assertTrue(string.endsWith(suffix)); in testEndsWith()
808 assertFalse(string.endsWith(prefix)); in testEndsWith()
809 assertFalse(suffix.endsWith(prefix)); in testEndsWith()
810 assertFalse(prefix.endsWith(suffix)); in testEndsWith()
811 assertFalse(ByteString.EMPTY.endsWith(suffix)); in testEndsWith()
812 assertTrue(ByteString.EMPTY.endsWith(ByteString.EMPTY)); in testEndsWith()
886 byteArrayCopier.getClass().getSimpleName().endsWith("ArraysByteArrayCopier")); in testByteArrayCopier()
/third_party/node/deps/npm/node_modules/readable-stream/
Derrors.js54 function endsWith(str, search, this_len) { function
88 if (endsWith(name, ' argument')) {

12345678910>>...16