Home
last modified time | relevance | path

Searched refs:substr (Results 1 – 25 of 671) sorted by relevance

12345678910>>...27

/external/v8/test/webkit/
Dstring-substr-expected.txt24 This test checks the boundary cases of substr().
29 PASS 'bar'.substr(0) is 'bar'
30 PASS 'bar'.substr(3) is ''
31 PASS 'bar'.substr(4) is ''
32 PASS 'bar'.substr(-1) is 'r'
33 PASS 'bar'.substr(-3) is 'bar'
34 PASS 'bar'.substr(-4) is 'bar'
35 PASS 'bar'.substr(0, 0) is ''
36 PASS 'bar'.substr(0, 1) is 'b'
37 PASS 'bar'.substr(0, 3) is 'bar'
[all …]
/external/v8/test/mjsunit/
Dsubstr.js29 assertEquals(s, s.substr());
30 assertEquals(s, s.substr(0));
31 assertEquals(s, s.substr('0'));
32 assertEquals(s, s.substr(void 0));
33 assertEquals(s, s.substr(null));
34 assertEquals(s, s.substr(false));
35 assertEquals(s, s.substr(0.9));
36 assertEquals(s, s.substr({ valueOf: function() { return 0; } }));
37 assertEquals(s, s.substr({ toString: function() { return '0'; } }));
40 assertEquals(s1, s.substr(1));
[all …]
Dstring-slices.js31 assertEquals(s, s.substr());
32 assertEquals(s, s.substr(0));
33 assertEquals(s, s.substr('0'));
34 assertEquals(s, s.substr(void 0));
35 assertEquals(s, s.substr(null));
36 assertEquals(s, s.substr(false));
37 assertEquals(s, s.substr(0.9));
38 assertEquals(s, s.substr({ valueOf: function() { return 0; } }));
39 assertEquals(s, s.substr({ toString: function() { return '0'; } }));
42 assertEquals(s1, s.substr(1));
[all …]
/external/llvm/lib/Passes/
DPassBuilder.cpp223 PipelineText = PipelineText.substr(strlen("function(")); in parseFunctionPassPipeline()
229 PipelineText = PipelineText.substr(1); in parseFunctionPassPipeline()
236 if (!parseFunctionPassName(FPM, PipelineText.substr(0, End))) in parseFunctionPassPipeline()
241 PipelineText = PipelineText.substr(End); in parseFunctionPassPipeline()
248 PipelineText = PipelineText.substr(1); in parseFunctionPassPipeline()
262 PipelineText = PipelineText.substr(strlen("cgscc(")); in parseCGSCCPassPipeline()
268 PipelineText = PipelineText.substr(1); in parseCGSCCPassPipeline()
276 PipelineText = PipelineText.substr(strlen("function(")); in parseCGSCCPassPipeline()
282 PipelineText = PipelineText.substr(1); in parseCGSCCPassPipeline()
289 if (!parseCGSCCPassName(CGPM, PipelineText.substr(0, End))) in parseCGSCCPassPipeline()
[all …]
/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/builds/atari/
Ddeflinejoiner.awk73 part_str = substr( logical_line, c0 + 1 )
78 part_str = substr( logical_line, c0 + 1, c1 - c0 + 1 )
84 part_str = substr( logical_line, c0 + 1 )
92 tail = substr( logical_line, pos )
95 logical_line = substr( logical_line, 0, pos - 1 ) tail
117 part_str = substr( logical_line, pos, break_pos[i] - pos + 1 )
121 tail = substr( logical_line, pos + removed_length )
122 logical_line = substr( logical_line, 0, pos - 1 ) tail
144 if ( substr( logical_line, j, 2 ) ~ /[ \t][ \t]/ )
146 else if ( substr( logical_line, j, 1 ) == "(" )
[all …]
/external/gtest/include/gtest/
Dgtest-spi.h101 const string& substr);
138 #define EXPECT_FATAL_FAILURE(statement, substr) \ argument
146 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
155 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument
163 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
204 #define EXPECT_NONFATAL_FAILURE(statement, substr) \ argument
209 (substr));\
218 #define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument
223 (substr));\
/external/vulkan-validation-layers/tests/gtest-1.7.0/include/gtest/
Dgtest-spi.h101 const string& substr);
138 #define EXPECT_FATAL_FAILURE(statement, substr) \ argument
146 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
155 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument
163 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
204 #define EXPECT_NONFATAL_FAILURE(statement, substr) \ argument
209 (substr));\
218 #define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument
223 (substr));\
/external/protobuf/gtest/include/gtest/
Dgtest-spi.h101 const char* substr);
138 #define EXPECT_FATAL_FAILURE(statement, substr) \ argument
146 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
155 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument
163 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
204 #define EXPECT_NONFATAL_FAILURE(statement, substr) \ argument
209 (substr));\
218 #define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument
223 (substr));\
/external/google-breakpad/src/testing/gtest/include/gtest/
Dgtest-spi.h101 const string& substr);
138 #define EXPECT_FATAL_FAILURE(statement, substr) \ argument
146 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
155 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument
163 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
204 #define EXPECT_NONFATAL_FAILURE(statement, substr) \ argument
209 (substr));\
218 #define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument
223 (substr));\
/external/llvm/utils/unittest/googletest/include/gtest/
Dgtest-spi.h102 const string& substr);
139 #define EXPECT_FATAL_FAILURE(statement, substr) \ argument
147 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
156 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument
164 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
205 #define EXPECT_NONFATAL_FAILURE(statement, substr) \ argument
210 (substr));\
219 #define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument
224 (substr));\
/external/mesa3d/src/gtest/include/gtest/
Dgtest-spi.h101 const string& substr);
138 #define EXPECT_FATAL_FAILURE(statement, substr) \ argument
146 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
155 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument
163 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
204 #define EXPECT_NONFATAL_FAILURE(statement, substr) \ argument
209 (substr));\
218 #define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument
223 (substr));\
/external/clang/lib/Frontend/
DLayoutOverrideSource.cpp27 return S.substr(0, Offset).str(); in parseName()
63 LineStr = LineStr.substr(Pos + strlen("struct ")); in LayoutOverrideSource()
65 LineStr = LineStr.substr(Pos + strlen("class ")); in LayoutOverrideSource()
67 LineStr = LineStr.substr(Pos + strlen("union ")); in LayoutOverrideSource()
81 LineStr = LineStr.substr(Pos + strlen(" Size:")); in LayoutOverrideSource()
93 LineStr = LineStr.substr(Pos + strlen("Alignment:")); in LayoutOverrideSource()
105 LineStr = LineStr.substr(Pos + strlen("sizeof=")); in LayoutOverrideSource()
115 LineStr = LineStr.substr(Pos + strlen("align=")); in LayoutOverrideSource()
131 LineStr = LineStr.substr(Pos + strlen("FieldOffsets: [")); in LayoutOverrideSource()
139 (void)LineStr.substr(0, Idx).getAsInteger(10, Offset); in LayoutOverrideSource()
[all …]
/external/clang/lib/Format/
DBreakableToken.cpp58 encoding::columnWidthWithTabs(Text.substr(MaxSplitBytes, BytesInChar), in getCommentSplit()
77 StringRef BeforeCut = Text.substr(0, SpaceOffset).rtrim(Blanks); in getCommentSplit()
78 StringRef AfterCut = Text.substr(SpaceOffset).ltrim(Blanks); in getCommentSplit()
106 Text.substr(0, Advance), UsedColumns + Chars, TabWidth, Encoding); in getStringSplit()
120 Text = Text.substr(Advance); in getStringSplit()
139 encoding::columnWidthWithTabs(Line.substr(Offset, Length), in getLineLengthAfterSplit()
151 Line = Tok.TokenText.substr( in BreakableSingleLineToken()
165 return getStringSplit(Line.substr(TailOffset), in getSplit()
194 LongestPrefix = Comment.substr(0, PrefixLength); in getLineCommentIndentPrefix()
221 return getCommentSplit(Line.substr(TailOffset), StartColumn + Prefix.size(), in getSplit()
[all …]
/external/c-ares/
Dget_ver.awk13 libcares_copyright_str = substr($0, 25, length($0)-25);
16 libcares_ver_str = substr($3, 2, length($3)-2);
19 libcares_ver_major = substr($3, 1, length($3));
22 libcares_ver_minor = substr($3, 1, length($3));
25 libcares_ver_patch = substr($3, 1, length($3));
/external/icu/icu4c/source/test/intltest/
Dfldset.cpp207 …efault(const FieldsSet* inheritFrom, int32_t field, const UnicodeString& substr, UErrorCode& statu… in parseValueDefault() argument
209 if(substr.length()==0) { // inherit requested in parseValueDefault()
219 value = udbg_stoi(substr); in parseValueDefault()
224 … type, const FieldsSet* inheritFrom, int32_t field, const UnicodeString& substr, UErrorCode& statu… in parseValueEnum() argument
225 int32_t value = udbg_enumByString(type, substr); in parseValueEnum()
230 parseValueDefault(inheritFrom,field,substr,status); in parseValueEnum()
234 …eValue(const FieldsSet* inheritFrom, int32_t field, const UnicodeString& substr, UErrorCode& statu… in handleParseValue() argument
235 parseValueDefault(inheritFrom, field, substr, status); in handleParseValue()
249 …eValue(const FieldsSet* inheritFrom, int32_t field, const UnicodeString& substr, UErrorCode& statu… in handleParseValue() argument
251 parseValueEnum(UDBG_UCalendarMonths, inheritFrom, field, substr, status); in handleParseValue()
[all …]
Dfldset.h113 const U_NAMESPACE_QUALIFIER UnicodeString& substr,
127 const U_NAMESPACE_QUALIFIER UnicodeString& substr,
138 const U_NAMESPACE_QUALIFIER UnicodeString& substr,
151 const U_NAMESPACE_QUALIFIER UnicodeString& substr,
255 const U_NAMESPACE_QUALIFIER UnicodeString& substr,
282 const U_NAMESPACE_QUALIFIER UnicodeString& substr,
286 const U_NAMESPACE_QUALIFIER UnicodeString& substr,
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldChecker.cpp42 StringRef LHSExpr = Expr.substr(0, EQIdx).rtrim(); in evaluate()
53 StringRef RHSExpr = Expr.substr(EQIdx + 1).ltrim(); in evaluate()
123 Token = Expr.substr(0, TokLen); in getTokenForError()
157 return std::make_pair(BinOpToken::ShiftLeft, Expr.substr(2).ltrim()); in parseBinOpToken()
159 return std::make_pair(BinOpToken::ShiftRight, Expr.substr(2).ltrim()); in parseBinOpToken()
180 return std::make_pair(Op, Expr.substr(1).ltrim()); in parseBinOpToken()
210 return std::make_pair(Expr.substr(0, FirstNonSymbol), in parseSymbol()
211 Expr.substr(FirstNonSymbol).ltrim()); in parseSymbol()
223 StringRef RemainingExpr = Expr.substr(1).ltrim(); in evalDecodeOperand()
235 RemainingExpr = RemainingExpr.substr(1).ltrim(); in evalDecodeOperand()
[all …]
/external/v8/test/js-perf-test/Strings/
Dharmony-string.js43 var substr; variable
47 substr = "abc".repeat(200);
56 result = str.startsWith(substr);
60 result = str.endsWith(substr);
65 substr = "abc".repeat(100);
69 result = str.includes(substr);
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DFieldsSet.java160 String substr) { in handleParseName() argument
182 String substr) { in handleParseValue() argument
183 parseValueDefault(inheritFrom, field, substr); in handleParseValue()
195 String substr) { in parseValueDefault() argument
196 if(substr.length()==0) { in parseValueDefault()
205 int value = Integer.parseInt(substr); in parseValueDefault()
218 String substr) { in parseValueEnum() argument
219 int value = DebugUtilities.enumByString(type, substr); in parseValueEnum()
224 parseValueDefault(inheritFrom, field, substr); in parseValueEnum()
DDateTimeStyleSet.java45 protected void handleParseValue(FieldsSet inheritFrom, int field, String substr) { in handleParseValue() argument
46 if(substr.startsWith(kRELATIVE_)) { in handleParseValue()
47 …parseValueEnum(DebugUtilitiesData.UDateFormatStyle, inheritFrom, field, substr.substring(kRELATIVE… in handleParseValue()
52 parseValueEnum(DebugUtilitiesData.UDateFormatStyle, inheritFrom, field, substr); in handleParseValue()
56 protected int handleParseName(FieldsSet inheritFrom, String name, String substr) { in handleParseName() argument
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DFieldsSet.java161 String substr) { in handleParseName() argument
183 String substr) { in handleParseValue() argument
184 parseValueDefault(inheritFrom, field, substr); in handleParseValue()
196 String substr) { in parseValueDefault() argument
197 if(substr.length()==0) { in parseValueDefault()
206 int value = Integer.parseInt(substr); in parseValueDefault()
219 String substr) { in parseValueEnum() argument
220 int value = DebugUtilities.enumByString(type, substr); in parseValueEnum()
225 parseValueDefault(inheritFrom, field, substr); in parseValueEnum()
DDateTimeStyleSet.java46 protected void handleParseValue(FieldsSet inheritFrom, int field, String substr) { in handleParseValue() argument
47 if(substr.startsWith(kRELATIVE_)) { in handleParseValue()
48 …parseValueEnum(DebugUtilitiesData.UDateFormatStyle, inheritFrom, field, substr.substring(kRELATIVE… in handleParseValue()
53 parseValueEnum(DebugUtilitiesData.UDateFormatStyle, inheritFrom, field, substr); in handleParseValue()
57 protected int handleParseName(FieldsSet inheritFrom, String name, String substr) { in handleParseName() argument
/external/llvm/unittests/Support/
DMemoryBufferTest.cpp205 EXPECT_TRUE(BufData.substr(0x0000,8).equals("12345678")); in TEST_F()
206 EXPECT_TRUE(BufData.substr(0x0FF8,8).equals("12345678")); in TEST_F()
207 EXPECT_TRUE(BufData.substr(0x1000,8).equals("abcdefgh")); in TEST_F()
208 EXPECT_TRUE(BufData.substr(0x2FF8,8).equals("abcdefgh")); in TEST_F()
209 EXPECT_TRUE(BufData.substr(0x3000,8).equals("ABCDEFGH")); in TEST_F()
210 EXPECT_TRUE(BufData.substr(0x3FF8,8).equals("ABCDEFGH")); in TEST_F()
220 EXPECT_TRUE(BufData2.substr(0x0000,8).equals("12345678")); in TEST_F()
221 EXPECT_TRUE(BufData2.substr(0x17F8,8).equals("12345678")); in TEST_F()
222 EXPECT_TRUE(BufData2.substr(0x1800,8).equals("abcdefgh")); in TEST_F()
223 EXPECT_TRUE(BufData2.substr(0x2FF8,8).equals("abcdefgh")); in TEST_F()
/external/e2fsprogs/lib/ss/
Dct_c.awk17 subr = substr($0, 6, length($0)-5)
21 help = substr($0, 6, length($0)-5)
25 cmd = substr($0, 6, length($0)-5)
31 opt = substr($0, 6, length($0)-5)
56 error = substr($0, 8, length($0)-7)
/external/llvm/utils/FileCheck/
DFileCheck.cpp183 PatternStr = PatternStr.substr(0, PatternStr.size()-1); in ParsePattern()
226 if (AddRegExToRegEx(PatternStr.substr(2, End-2), CurParen, SM)) in ParsePattern()
230 PatternStr = PatternStr.substr(End+2); in ParsePattern()
242 size_t End = FindRegexVarEnd(PatternStr.substr(2), SM); in ParsePattern()
251 StringRef MatchStr = PatternStr.substr(2, End); in ParsePattern()
252 PatternStr = PatternStr.substr(End+4); in ParsePattern()
256 StringRef Name = MatchStr.substr(0, NameEnd); in ParsePattern()
318 if (AddRegExToRegEx(MatchStr.substr(NameEnd+1), CurParen, SM)) in ParsePattern()
328 RegExStr += Regex::escape(PatternStr.substr(0, FixedMatchEnd)); in ParsePattern()
329 PatternStr = PatternStr.substr(FixedMatchEnd); in ParsePattern()
[all …]

12345678910>>...27