HomeSort by relevance Sort by last modified time
    Searched refs:substring (Results 1 - 25 of 3232) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/mockito/src/main/java/org/mockito/internal/matchers/
Contains.java 15 private final String substring; field in class:Contains
17 public Contains(String substring) {
18 this.substring = substring;
22 return actual != null && actual.contains(substring);
26 return "contains(\"" + substring + "\")";
  /external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/
StringContains.java 6 * Tests if the argument is a string that contains a substring.
9 public StringContains(boolean ignoringCase, String substring) {
10 super("containing", ignoringCase, substring);
15 return converted(s).contains(converted(substring));
24 * @param substring
25 * the substring that the returned matcher will expect to find within any examined string
28 public static Matcher<String> containsString(String substring) {
29 return new StringContains(false, substring);
38 * @param substring
39 * the substring that the returned matcher will expect to find within any examined strin
    [all...]
StringEndsWith.java 6 * Tests if the argument is a string that contains a substring.
9 public StringEndsWith(boolean ignoringCase, String substring) { super("ending with", ignoringCase, substring); }
13 return converted(s).endsWith(converted(substring));
23 * the substring that the returned matcher will expect at the end of any examined string
36 * the substring that the returned matcher will expect at the end of any examined string
StringStartsWith.java 6 * Tests if the argument is a string that contains a substring.
9 public StringStartsWith(boolean ignoringCase, String substring) { super("starting with", ignoringCase, substring); }
12 protected boolean evalSubstringOf(String s) { return converted(s).startsWith(converted(substring)); }
23 * the substring that the returned matcher will expect at the start of any examined string
36 * the substring that the returned matcher will expect at the start of any examined string
SubstringMatcher.java 13 protected final String substring; field in class:SubstringMatcher
15 protected SubstringMatcher(String relationship, boolean ignoringCase, String substring) {
18 this.substring = substring;
35 .appendValue(substring);
  /external/easymock/src/org/easymock/internal/matchers/
Contains.java 26 private final String substring; field in class:Contains
28 public Contains(String substring) {
29 this.substring = substring;
34 && ((String) actual).indexOf(substring) >= 0;
38 buffer.append("contains(\"" + substring + "\")");
  /external/annotation-tools/scene-lib/src/annotations/io/
IOUtils.java 16 return (lastdot == -1) ? "" : className.substring(0, lastdot);
21 return (lastdot == -1) ? className : className.substring(lastdot + 1);
  /external/mockito/src/test/java/org/mockitousage/junitrunner/
Filters.java 11 public static Filter methodNameContains(final String substring) {
15 return description.getDisplayName().contains(substring);
  /libcore/dalvik/src/main/java/dalvik/system/
DalvikLogging.java 45 ? loggerName.substring(lastPeriod + 1)
46 : loggerName.substring(loggerName.length() - 23);
  /external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
CharStream.java 38 public String substring(int start, int stop); method in interface:CharStream
  /external/desugar/test/java/com/google/devtools/build/android/desugar/testdata/core_library/java/lang/
AutoboxedTypes.java 34 return n -> n.substring(i, i + 1);
  /frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
LockTarget.java 43 return pre.substring(0, pre.lastIndexOf('.'));
47 return pre.substring(pre.lastIndexOf('.') + 1);
55 return post.substring(0, post.lastIndexOf('.'));
59 return post.substring(post.lastIndexOf('.') + 1);
  /external/apache-xml/src/main/java/org/apache/xpath/objects/
XNumber.java 153 // return s.substring(0, len - 2);
160 // exp = Integer.parseInt(s.substring(e + 1));
161 // s = s.substring(0,e);
235 // s = s.substring(0, truncatePoint);
255 // String wholePart = s.substring(start, decimalPos);
256 // String decimalPart = s.substring(decimalPos + 1);
265 // return sign + wholePart + decimalPart.substring(0, exp) + "."
266 // + decimalPart.substring(exp);
298 s = s.substring(0, len - 2);
311 return s.substring(0, len - 1)
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
OIDTokenizer.java 53 token = oid.substring(index);
58 token = oid.substring(index, end);
  /libcore/ojluni/src/main/java/sun/security/x509/
X509AttributeName.java 53 prefix = name.substring(0, i);
54 suffix = name.substring(i + 1);
  /tools/tradefederation/core/tests/src/com/android/tradefed/util/
FixedByteArrayOutputStreamTest.java 63 String text = TEXT.substring(0, BUF_SIZE - 5);
71 String text = TEXT.substring(0, BUF_SIZE);
79 String text = TEXT.substring(0, BUF_SIZE + 1);
80 String expected = text.substring(1);
88 String expected = TEXT.substring(TEXT.length() - BUF_SIZE);
102 String expected = full.substring(full.length() - BUF_SIZE);
112 String text = TEXT.substring(0, BUF_SIZE);
114 String expected = text.substring(offset);
131 String full = prefix + followup.substring(offset);
132 String expected = full.substring(full.length() - BUF_SIZE)
    [all...]
  /libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
Handler.java 74 String entry1 = file1.substring(sep1 + 2);
75 String entry2 = file2.substring(sep2 + 2);
82 enclosedURL1 = new URL(file1.substring(0, sep1));
83 enclosedURL2 = new URL(file2.substring(0, sep2));
110 String fileWithoutEntry = file.substring(0, sep);
118 String entry = file.substring(sep + 2);
135 ref = spec.substring(refPos + 1, spec.length());
146 absoluteSpec = spec.substring(0, 4).equalsIgnoreCase("jar:");
148 spec = spec.substring(start, limit);
157 String toBangSlash = file.substring(0, bangSlash)
    [all...]
  /cts/tools/dasm/src/dasm/
Utils.java 50 return new Integer(str.substring(1));
53 return (Utils.stringToSmallestInteger(str.substring(2), 16));
108 result[0] = signature.substring(0, mpos);
109 result[1] = signature.substring(mpos + 1, sigpos);
110 result[2] = signature.substring(sigpos);
131 result[0] = name.substring(0, pos);
132 result[1] = name.substring(pos + 1);
147 result[0] = name.substring(0, sigpos);
148 result[1] = convertDotsToSlashes(name.substring(sigpos));
  /packages/apps/Dialer/java/com/android/contacts/common/util/
SearchUtil.java 25 * Given a string with lines delimited with '\n', finds the matching line to the given substring.
28 * @param substring The substring to search for.
29 * @return A MatchedLine object containing the matching line and the startIndex of the substring
32 public static MatchedLine findMatchingLine(String contents, String substring) {
36 // Locate the lines of the content that contain the substring.
37 final int index = SearchUtil.contains(contents, substring);
54 matched.line = contents.substring(start + 1, end);
66 * <p>2) Returns the starting index where the substring is found.
69 * @param substring The substring to look for
    [all...]
  /external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DependencyVariableNamer.java 45 ? Ascii.toLowerCase(variableName.charAt(4)) + variableName.substring(5)
49 ? variableName.substring(0, variableName.length() - 8)
53 ? variableName.substring(0, variableName.length() - 15)
57 ? Ascii.toLowerCase(variableName.charAt(8)) + variableName.substring(9)
61 ? variableName.substring(0, variableName.length() - 8)
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/
AndroidDoubleClickStrategyTest.java 58 before = before.substring(0, cursor) + before.substring(cursor + 1);
66 String after = before.substring(0, positions.x) + '[' +
67 before.substring(positions.x, positions.y) + ']' +
68 before.substring(positions.y);
  /art/compiler/debug/dwarf/
dwarf_test.h 39 #define DW_CHECK(substring) Check(substring, false, __FILE__, __LINE__)
40 #define DW_CHECK_NEXT(substring) Check(substring, true, __FILE__, __LINE__)
47 std::string substring; member in struct:art::dwarf::DwarfTest::ExpectedLine
125 const std::string& substring = expected_line.substring; local
128 "Expected '" << substring << "'.\n" <<
131 if (actual_line->find(substring) == std::string::npos) {
133 "Expected '" << substring << "'.\n" <
    [all...]
  /external/guava/guava/src/com/google/common/primitives/
ParseRequest.java 42 rawValue = stringValue.substring(2);
45 rawValue = stringValue.substring(1);
48 rawValue = stringValue.substring(1);
  /libcore/dom/src/test/java/org/w3c/domts/level1/core/
characterdatasubstringexceedsvalue.java 39 * the substring "Martin" since offset+count > length
71 String substring; local
76 substring = child.substringData(9, 10);
77 assertEquals("characterdataSubStringExceedsValueAssert", "Martin", substring);
characterdatasubstringvalue.java 37 * method should return the specified substring starting
70 String substring; local
75 substring = child.substringData(0, 8);
76 assertEquals("characterdataSubStringValueAssert", "Margaret", substring);

Completed in 738 milliseconds

1 2 3 4 5 6 7 8 91011>>