Searched defs:substring (Results 1 - 25 of 53) sorted by relevance

123

/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/streams/
H A Dinteractive.rb116 def substring( start, stop ) method in class:ANTLR3.InteractiveStringStream
/external/junit/src/org/junit/internal/matchers/
H A DStringContains.java9 * Tests if the argument is a string that contains a substring.
12 public StringContains(String substring) { argument
13 super(substring);
18 return s.indexOf(substring) >= 0;
27 public static Matcher<String> containsString(String substring) { argument
28 return new StringContains(substring);
H A DSubstringMatcher.java7 protected final String substring; field in class:SubstringMatcher
9 protected SubstringMatcher(final String substring) { argument
10 this.substring = substring;
22 .appendValue(substring);
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/
H A DANTLRStringStream.as182 public function substring(start:int, stop:int):String { function
183 return data.substring(start, stop + 1);
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
H A DCharStream.java38 public String substring(int start, int stop); method in interface:CharStream
H A DANTLRStringStream.java205 public String substring(int start, int stop) { method in class:ANTLRStringStream
/external/easymock/src/org/easymock/internal/matchers/
H A DContains.java26 private final String substring; field in class:Contains
28 public Contains(String substring) { argument
29 this.substring = substring;
34 && ((String) actual).indexOf(substring) >= 0;
38 buffer.append("contains(\"" + substring + "\")");
/external/junit/src/org/junit/matchers/
H A DJUnitMatchers.java57 * @param substring
58 * @return a matcher matching any string that contains substring
60 public static org.hamcrest.Matcher<java.lang.String> containsString(java.lang.String substring) { argument
61 return StringContains.containsString(substring);
/external/mockito/src/org/mockito/internal/matchers/
H A DContains.java17 private final String substring; field in class:Contains
19 public Contains(String substring) { argument
20 this.substring = substring;
24 return actual != null && ((String) actual).contains(substring);
28 description.appendText("contains(\"" + substring + "\")");
/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/
H A DANTLRStringStream.pm211 sub substring { subroutine
/external/junit/src/org/junit/rules/
H A DExpectedException.java86 * should <em>contain</em> string {@code substring}
88 public void expectMessage(String substring) { argument
89 expectMessage(containsString(substring));
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/
H A DStringExtensions.cs126 public static string substring( string str, int startOffset ) method in class:Antlr.Runtime.JavaExtensions.StringExtensions
131 public static string substring( string str, int startOffset, int endOffset ) method in class:Antlr.Runtime.JavaExtensions.StringExtensions
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
H A DStringExtensions.cs121 public static string substring( this string str, int startOffset ) method in class:Antlr.Runtime.JavaExtensions.StringExtensions
127 public static string substring(this string str, int startOffset, int endOffset) method in class:Antlr.Runtime.JavaExtensions.StringExtensions
/external/v8/src/
H A Dconversions-inl.h108 const char* substring) {
109 ASSERT(**current == *substring);
110 for (substring++; *substring != '\0'; substring++) {
112 if (*current == end || **current != *substring) return false;
106 SubStringEquals(Iterator* current, EndMark end, const char* substring) argument
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/
H A Dstreams.rb231 It adds the ``abstract'' method, <tt>substring(start, stop)</tt>, which must be
262 # :method: substring(start,stop)
263 abstract :substring
506 # return a substring around the stream cursor at a distance +k+
652 def substring( start, stop ) method in class:ANTLR3.that.StringStream
/external/apache-http/src/org/apache/http/util/
H A DCharArrayBuffer.java228 public String substring(int beginIndex, int endIndex) { method in class:CharArrayBuffer
/external/apache-xml/src/main/java/org/apache/xml/utils/
H A DXMLString.java228 * argument is a prefix of the substring of this object starting
249 * argument is a prefix of the substring of this object starting
420 * specified substring. The integer returned is the smallest value
428 * @return if the string argument occurs as a substring within this
430 * such substring is returned; if it does not occur as a
431 * substring, <code>-1</code> is returned.
439 * specified substring. The integer returned is the smallest value
447 * @return if the string argument occurs as a substring within this
449 * such substring is returned; if it does not occur as a
450 * substring, <cod
543 public abstract XMLString substring(int beginIndex); method in interface:XMLString
561 public abstract XMLString substring(int beginIndex, int endIndex); method in interface:XMLString
[all...]
H A DXMLStringDefault.java273 * argument is a prefix of the substring of this object starting
297 * argument is a prefix of the substring of this object starting
495 * specified substring. The integer returned is the smallest value
503 * @return if the string argument occurs as a substring within this
505 * such substring is returned; if it does not occur as a
506 * substring, <code>-1</code> is returned.
517 * specified substring. The integer returned is the smallest value
525 * @return if the string argument occurs as a substring within this
527 * such substring is returned; if it does not occur as a
528 * substring, <cod
633 public XMLString substring(int beginIndex) method in class:XMLStringDefault
654 public XMLString substring(int beginIndex, int endIndex) method in class:XMLStringDefault
[all...]
/external/apache-xml/src/main/java/org/apache/xpath/objects/
H A DXString.java492 * argument is a prefix of the substring of this object starting
535 * argument is a prefix of the substring of this object starting
735 * specified substring. The integer returned is the smallest value
743 * @return if the string argument occurs as a substring within this
745 * such substring is returned; if it does not occur as a
746 * substring, <code>-1</code> is returned.
757 * specified substring. The integer returned is the smallest value
765 * @return if the string argument occurs as a substring within this
767 * such substring is returned; if it does not occur as a
768 * substring, <cod
873 public XMLString substring(int beginIndex) method in class:XString
894 public XMLString substring(int beginIndex, int endIndex) method in class:XString
[all...]
H A DXStringForFSB.java153 // str = str.substring(0, 600);
596 * argument is a prefix of the substring of this object starting
736 * Returns a new string that is a substring of this string. The
737 * substring begins with the character at the specified index and
741 * "unhappy".substring(2) returns "happy"
742 * "Harbison".substring(3) returns "bison"
743 * "emptiness".substring(9) returns "" (an empty string)
747 * @return the specified substring.
752 public XMLString substring(int beginIndex) method in class:XStringForFSB
768 * Returns a new string that is a substring o
783 public XMLString substring(int beginIndex, int endIndex) method in class:XStringForFSB
[all...]
/external/arduino/hardware/arduino/cores/arduino/
H A DWString.cpp255 newString += temp.substring( 0, loc );
257 temp = temp.substring( loc + match._length );
335 if ( _buffer[ i ] == temp && (*this).substring( i, i + s2._length ).equals( s2 ) )
357 String String::substring( unsigned int left ) const function in class:String
359 return substring( left, _length );
362 String String::substring( unsigned int left, unsigned int right ) const function in class:String
419 return temp.substring( i, j + 1);
/external/mockito/src/org/mockito/
H A DMatchers.java715 * <code>String</code> argument that contains the given substring.
719 * @param substring
720 * the substring.
723 public static String contains(String substring) { argument
724 return reportMatcher(new Contains(substring)).returnString();
/external/webkit/Source/WebCore/html/
H A DHTMLViewSourceDocument.cpp247 String substring = lines[i]; local
248 if (substring.isEmpty()) {
251 substring = " ";
255 RefPtr<Text> t = Text::create(this, substring);
273 String text = source.substring(start, end - start);
/external/antlr/antlr-3.4/runtime/Python/antlr3/
H A Dstreams.py196 def substring(self, start, stop): member in class:CharStream
490 def substring(self, start, stop): member in class:ANTLRStringStream
/external/easymock/src/org/easymock/
H A DEasyMock.java683 * Expects a string that contains the given substring. For details, see the
686 * @param substring
687 * the substring.
690 public static String contains(String substring) { argument
691 reportMatcher(new Contains(substring));
1312 * Expects a string that contains a substring that matches the given regular

Completed in 1405 milliseconds

123