Home
last modified time | relevance | path

Searched refs:Substring (Results 1 – 25 of 44) sorted by relevance

12

/external/antlr/runtime/Delphi/Sources/Antlr3.Runtime.Tests/
DAntlr.Runtime.Tests.pas169 CheckEquals('Two', Stream.Substring(5, 7));
170 CheckEquals('One', Stream.Substring(0, 2));
171 CheckEquals('Three', Stream.Substring(10, 14));
175 CheckEquals('Two', Stream.Substring(5, 7));
176 CheckEquals('One', Stream.Substring(0, 2));
177 CheckEquals('Three', Stream.Substring(10, 14));
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/
DANTLRxxxxStreamFixture.cs242 Assert.AreEqual("Two", stream.Substring(5, 7)); in TestSubstringOnANTLRInputStream()
243 Assert.AreEqual("One", stream.Substring(0, 2)); in TestSubstringOnANTLRInputStream()
244 Assert.AreEqual("Three", stream.Substring(10, 14)); in TestSubstringOnANTLRInputStream()
248 Assert.AreEqual("Two", stream.Substring(5, 7)); in TestSubstringOnANTLRInputStream()
249 Assert.AreEqual("One", stream.Substring(0, 2)); in TestSubstringOnANTLRInputStream()
250 Assert.AreEqual("Three", stream.Substring(10, 14)); in TestSubstringOnANTLRInputStream()
410 Assert.AreEqual("Two", stream.Substring(5, 7)); in TestSubstringOnANTLRStringStream()
411 Assert.AreEqual("One", stream.Substring(0, 2)); in TestSubstringOnANTLRStringStream()
412 Assert.AreEqual("Three", stream.Substring(10, 14)); in TestSubstringOnANTLRStringStream()
416 Assert.AreEqual("Two", stream.Substring(5, 7)); in TestSubstringOnANTLRStringStream()
[all …]
/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DDescriptorPool.cs126 AddPackage(fullName.Substring(0, dotpos), file); in AddPackage()
127 name = fullName.Substring(dotpos + 1); in AddPackage()
171 … message = "\"" + fullName.Substring(dotPos + 1) + "\" is already defined in \"" + in AddSymbol()
172 fullName.Substring(0, dotPos) + "\"."; in AddSymbol()
272 result = FindSymbol<IDescriptor>(name.Substring(1)); in LookupSymbol()
279 … string firstPart = firstPartLength == -1 ? name : name.Substring(0, firstPartLength); in LookupSymbol()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
DStringExtensions.cs123 return str.Substring( startOffset ); in substring()
129 return str.Substring( startOffset, endOffset - startOffset ); in substring()
/external/libtextclassifier/utils/utf8/
Dunicodetext_test.cc52 TEST(UnicodeTextTest, Substring) { in TEST() argument
55 EXPECT_EQ(UnicodeText::Substring(text, 4, 6, /*do_copy=*/true), in TEST()
57 EXPECT_EQ(UnicodeText::Substring(text, 4, 6, /*do_copy=*/false), in TEST()
Dunicodetext.h178 static UnicodeText Substring(const UnicodeText& text, int begin_codepoint,
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/
DStringExtensions.cs128 return str.Substring( startOffset ); in substring()
133 return str.Substring( startOffset, endOffset - startOffset ); in substring()
/external/lzma/CS/7zip/Common/
DCommandLineParser.cs150 matchedSwitch.PostStrings.Add(srcString.Substring(pos)); in ParseString()
153 String stringSwitch = srcString.Substring(pos, minLen); in ParseString()
201 postString = commandString.Substring(id.Length); in ParseCommand()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.Test/SlimParsing/
DSlimStringStream.cs320 public string Substring( int start, int length ) in Substring() method in Antlr.Runtime.SlimStringStream
322 return data.Substring( start, length ); in Substring()
/external/antlr/runtime/CSharp2/Sources/Antlr3.Utility/Antlr.Utility.Tree/
DDOTTreeGenerator.cs193 text = text.Substring(0, 8) + "..." + text.Substring(text.Length - 8); in FixString()
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DDotTreeGenerator.cs210 text = text.Substring( 0, 8 ) + "..." + text.Substring( text.Length - 8 ); in FixString()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DDotTreeGenerator.cs210 text = text.Substring( 0, 8 ) + "..." + text.Substring( text.Length - 8 ); in FixString()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/
DICharStream.cs46 string Substring( int start, int length ); in Substring() method
DCommonToken.cs118 return input.Substring( start, stop - start + 1 );
DANTLRStringStream.cs299 public virtual string Substring( int start, int length ) in Substring() method in Antlr.Runtime.ANTLRStringStream
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DICharStream.cs44 string Substring(int start, int length); in Substring() method
DCommonToken.cs108 text = input.Substring(start, stop - start + 1);
DANTLRStringStream.cs261 public virtual string Substring(int start, int length) { in Substring() method in Antlr.Runtime.ANTLRStringStream
/external/grpc-grpc/src/csharp/Grpc.Core/Internal/
DNativeMethods.cs65 return str.Substring(0, str.Length - toRemove.Length); in RemoveStringSuffix()
/external/protobuf/csharp/src/Google.Protobuf/
DJsonParser.cs810 … int parsedFraction = int.Parse(subseconds.Substring(1), CultureInfo.InvariantCulture); in MergeTimestamp()
818 int hours = int.Parse(offset.Substring(1, 2), CultureInfo.InvariantCulture); in MergeTimestamp()
819 int minutes = int.Parse(offset.Substring(4, 2)); in MergeTimestamp()
886 int parsedFraction = int.Parse(subseconds.Substring(1)); in MergeDuration()
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DAnyPartial.cs59 return lastSlash == -1 ? "" : typeUrl.Substring(lastSlash + 1); in GetTypeName()
/external/libtextclassifier/annotator/number/
Dnumber.cc34 if (ParseNumber(UnicodeText::Substring(context, selection_indices.first, in ClassifyText()
/external/llvm/unittests/Support/
DSpecialCaseListTest.cpp84 TEST_F(SpecialCaseListTest, Substring) { in TEST_F() argument
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/
DRemoteDebugEventSocketListener.cs549 string eventWithoutString = @event.Substring(0, firstQuoteIndex); in GetEventElements()
550 str = @event.Substring(firstQuoteIndex + 1); in GetEventElements()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/
DRemoteDebugEventSocketListener.cs705 string eventWithoutString = @event.Substring( 0, firstQuoteIndex ); in GetEventElements()
706 str = @event.Substring( firstQuoteIndex + 1 ); in GetEventElements()

12