/external/tensorflow/tensorflow/python/kernel_tests/ |
D | substr_op_test.py | 53 substr_op = string_ops.substr(test_string, position, length, unit=unit) 55 substr = self.evaluate(substr_op) 56 self.assertAllEqual(substr, expected_value) 73 substr_op = string_ops.substr(test_string, position, length, unit=unit) 75 substr = self.evaluate(substr_op) 76 self.assertAllEqual(substr, expected_value) 85 substr_op = string_ops.substr(test_string, position, length, unit=unit) 87 substr = self.evaluate(substr_op) 88 self.assertAllEqual(substr, test_string) 97 substr_op = string_ops.substr(test_string, position, length, unit=unit) [all …]
|
/external/llvm-project/lld/ELF/ |
D | ScriptLexer.cpp | 49 s = s.substr(pos + 1); in getLine() 50 return s.substr(0, s.find_first_of("\r\n")); in getLine() 59 return s.substr(0, tok.data() - s.data()).count('\n') + 1; in getLineNumber() 107 size_t lineno = begin.substr(0, s.data() - begin.data()).count('\n'); in tokenize() 113 s = s.substr(e + 1); in tokenize() 121 vec.push_back(s.substr(0, 2)); in tokenize() 122 s = s.substr(2); in tokenize() 136 vec.push_back(s.substr(0, pos)); in tokenize() 137 s = s.substr(pos); in tokenize() 152 s = s.substr(e + 2); in skipSpace() [all …]
|
/external/catch2/include/internal/ |
D | catch_objc.hpp | 91 std::string testCaseName = methodName.substr( 15 ); in registerTestMethods() 113 StringHolder( NSString* substr ) : m_substr( [substr copy] ){} in StringHolder() 127 Equals( NSString* substr ) : StringHolder( substr ){} in Equals() 140 Contains( NSString* substr ) : StringHolder( substr ){} in Contains() 153 StartsWith( NSString* substr ) : StringHolder( substr ){} in StartsWith() 165 EndsWith( NSString* substr ) : StringHolder( substr ){} in EndsWith() 181 Equals( NSString* substr ){ return Impl::NSStringMatchers::Equals( substr ); } in Equals() argument 184 Contains( NSString* substr ){ return Impl::NSStringMatchers::Contains( substr ); } in Contains() argument 187 StartsWith( NSString* substr ){ return Impl::NSStringMatchers::StartsWith( substr ); } in StartsWith() argument 190 EndsWith( NSString* substr ){ return Impl::NSStringMatchers::EndsWith( substr ); } in EndsWith() argument
|
/external/perfetto/src/trace_processor/importers/proto/ |
D | profiler_util.cc | 28 location = location.substr(base::StringView("/data/app/").size()); in PackageFromApp() 41 location = location.substr(start, end); in PackageFromApp() 46 return location.substr(0, minus); in PackageFromApp() 60 location.substr(0, sysui.size()) == sysui) { in PackageFromLocation() 66 location.substr(0, phonesky.size()) == phonesky) { in PackageFromLocation() 72 location.substr(0, maps.size()) == maps) { in PackageFromLocation() 79 location.substr(0, launcher.size()) == launcher) { in PackageFromLocation() 85 location.substr(0, photos.size()) == photos) { in PackageFromLocation() 92 location.substr(0, wellbeing.size()) == wellbeing) { in PackageFromLocation() 103 if (location.size() >= gm.size() && location.substr(0, gm.size()) == gm) { in PackageFromLocation() [all …]
|
/external/deqp-deps/amber/src/ |
D | descriptor_set_and_binding_parser.cc | 39 pipeline_name_ = buffer_id.substr(0, idx); in Parse() 47 Tokenizer t(buffer_id.substr(idx)); in Parse() 75 auto substr = str.substr(1, str.size()); in Parse() local 77 for (size_t i = 0; i < substr.size(); ++i) { in Parse() 78 if (substr[i] < '0' || substr[i] > '9') { in Parse() 82 substr); in Parse() 86 uint64_t binding_val = strtoul(substr.c_str(), nullptr, 10); in Parse()
|
/external/llvm/lib/Passes/ |
D | PassBuilder.cpp | 463 PipelineText = PipelineText.substr(strlen("loop(")); in parseLoopPassPipeline() 469 PipelineText = PipelineText.substr(1); in parseLoopPassPipeline() 476 if (!parseLoopPassName(LPM, PipelineText.substr(0, End))) in parseLoopPassPipeline() 481 PipelineText = PipelineText.substr(End); in parseLoopPassPipeline() 488 PipelineText = PipelineText.substr(1); in parseLoopPassPipeline() 502 PipelineText = PipelineText.substr(strlen("function(")); in parseFunctionPassPipeline() 508 PipelineText = PipelineText.substr(1); in parseFunctionPassPipeline() 516 PipelineText = PipelineText.substr(strlen("loop(")); in parseFunctionPassPipeline() 522 PipelineText = PipelineText.substr(1); in parseFunctionPassPipeline() 529 if (!parseFunctionPassName(FPM, PipelineText.substr(0, End))) in parseFunctionPassPipeline() [all …]
|
/external/llvm-project/llvm/lib/Support/ |
D | GlobPattern.cpp | 42 S = S.substr(1); in expand() 54 S = S.substr(3); in expand() 70 S = S.substr(1); in scan() 75 S = S.substr(1); in scan() 85 StringRef Chars = S.substr(1, End - 1); in scan() 86 S = S.substr(End + 1); in scan() 88 Expected<BitVector> BV = expand(Chars.substr(1), Original); in scan() 98 S = S.substr(1); in scan() 103 S = S.substr(1); in scan() 167 if (matchOne(Pats, S.substr(I))) in matchOne() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | GlobPattern.cpp | 42 S = S.substr(1); in expand() 54 S = S.substr(3); in expand() 70 S = S.substr(1); in scan() 75 S = S.substr(1); in scan() 85 StringRef Chars = S.substr(1, End - 1); in scan() 86 S = S.substr(End + 1); in scan() 88 Expected<BitVector> BV = expand(Chars.substr(1), Original); in scan() 98 S = S.substr(1); in scan() 103 S = S.substr(1); in scan() 167 if (matchOne(Pats, S.substr(I))) in matchOne() [all …]
|
/external/freetype/builds/atari/ |
D | deflinejoiner.awk | 73 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/mesa3d/src/gtest/include/gtest/ |
D | gtest-spi.h | 105 TestPartResult::Type type, const std::string& substr); 144 #define EXPECT_FATAL_FAILURE(statement, substr) \ argument 152 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ 161 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument 169 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ 210 #define EXPECT_NONFATAL_FAILURE(statement, substr) \ argument 215 (substr));\ 224 #define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument 229 (substr));\
|
/external/fmtlib/test/gtest/ |
D | gtest-spi.h | 101 const string& substr); 138 #define EXPECT_FATAL_FAILURE(statement, substr) \ argument 146 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ 155 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument 163 >est_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/googletest/googletest/include/gtest/ |
D | gtest-spi.h | 105 TestPartResult::Type type, const std::string& substr); 144 #define EXPECT_FATAL_FAILURE(statement, substr) \ argument 152 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ 161 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument 169 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ 210 #define EXPECT_NONFATAL_FAILURE(statement, substr) \ argument 215 (substr));\ 224 #define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument 229 (substr));\
|
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/include/gtest/ |
D | gtest-spi.h | 105 TestPartResult::Type type, const std::string& substr); 144 #define EXPECT_FATAL_FAILURE(statement, substr) \ argument 152 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ 161 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument 169 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ 210 #define EXPECT_NONFATAL_FAILURE(statement, substr) \ argument 215 (substr));\ 224 #define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument 229 (substr));\
|
/external/llvm-project/llvm/utils/unittest/googletest/include/gtest/ |
D | gtest-spi.h | 101 const string& substr); 138 #define EXPECT_FATAL_FAILURE(statement, substr) \ argument 146 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ 155 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument 163 >est_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/libaom/libaom/third_party/googletest/src/googletest/include/gtest/ |
D | gtest-spi.h | 105 TestPartResult::Type type, const std::string &substr); 145 #define EXPECT_FATAL_FAILURE(statement, substr) \ argument 153 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr)); \ 163 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument 171 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr)); \ 212 #define EXPECT_NONFATAL_FAILURE(statement, substr) \ argument 217 (substr)); \ 229 #define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument 234 (substr)); \
|
/external/libvpx/libvpx/third_party/googletest/src/include/gtest/ |
D | gtest-spi.h | 104 TestPartResult::Type type, const std::string& substr); 143 #define EXPECT_FATAL_FAILURE(statement, substr) \ argument 151 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ 160 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument 168 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ 209 #define EXPECT_NONFATAL_FAILURE(statement, substr) \ argument 214 (substr));\ 223 #define EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument 228 (substr));\
|
/external/llvm/utils/unittest/googletest/include/gtest/ |
D | gtest-spi.h | 102 const string& substr); 139 #define EXPECT_FATAL_FAILURE(statement, substr) \ argument 147 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ 156 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ argument 164 >est_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/one-true-awk/testdir/ |
D | funstack.awk | 223 last_title = substr(title,1,n) 224 title = substr(title,n+1) 519 if (substr(title,k+1,1) == " ") 521 if (html_length(substr(title,1,k)) <= maxlength) 530 (k > 0) && (substr(title,k+1,1) != " "); --k) 588 if (substr(s,k,1) == "{") 590 else if (substr(s,k,1) == "}") 597 if (substr(s,open_brace+1,length(control_word)+1) ~ \ 601 arg = trim(substr(s,n,k - n)) 606 return (substr(s,1,open_brace-1) arg html_fonts(substr(s,k))) [all …]
|
D | t.cond | 1 { print (substr($2,1,1) > substr($2,2,1)) ? $1 : $2 } 2 { x = substr($1, 1, 1); y = substr($1, 2, 1); z = substr($1, 3, 1)
|
/external/clang/lib/Frontend/ |
D | LayoutOverrideSource.cpp | 27 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/llvm-project/clang/lib/Frontend/ |
D | LayoutOverrideSource.cpp | 26 return S.substr(0, Offset).str(); in parseName() 62 LineStr = LineStr.substr(Pos + strlen("struct ")); in LayoutOverrideSource() 64 LineStr = LineStr.substr(Pos + strlen("class ")); in LayoutOverrideSource() 66 LineStr = LineStr.substr(Pos + strlen("union ")); in LayoutOverrideSource() 80 LineStr = LineStr.substr(Pos + strlen(" Size:")); in LayoutOverrideSource() 92 LineStr = LineStr.substr(Pos + strlen("Alignment:")); in LayoutOverrideSource() 104 LineStr = LineStr.substr(Pos + strlen("sizeof=")); in LayoutOverrideSource() 114 LineStr = LineStr.substr(Pos + strlen("align=")); in LayoutOverrideSource() 130 LineStr = LineStr.substr(Pos + strlen("FieldOffsets: [")); in LayoutOverrideSource() 138 (void)LineStr.substr(0, Idx).getAsInteger(10, Offset); in LayoutOverrideSource() [all …]
|
/external/perfetto/src/base/ |
D | string_view_unittest.cc | 98 EXPECT_EQ(StringView().substr(0, 0).ToStdString(), ""); in TEST() 99 EXPECT_EQ(StringView().substr(3, 1).ToStdString(), ""); in TEST() 100 EXPECT_EQ(StringView("foo").substr(3, 1).ToStdString(), ""); in TEST() 101 EXPECT_EQ(StringView("foo").substr(4, 0).ToStdString(), ""); in TEST() 102 EXPECT_EQ(StringView("foo").substr(4, 1).ToStdString(), ""); in TEST() 103 EXPECT_EQ(StringView("foo").substr(0, 1).ToStdString(), "f"); in TEST() 104 EXPECT_EQ(StringView("foo").substr(0, 3).ToStdString(), "foo"); in TEST() 105 EXPECT_EQ(StringView("foo").substr(0, 99).ToStdString(), "foo"); in TEST() 106 EXPECT_EQ(StringView("foo").substr(1, 2).ToStdString(), "oo"); in TEST() 107 EXPECT_EQ(StringView("foo").substr(1, 3).ToStdString(), "oo"); in TEST() [all …]
|
/external/llvm-project/mlir/lib/TableGen/ |
D | Format.cpp | 82 return {FmtReplacement{fmt.substr(0, begin)}, fmt.substr(begin)}; in splitFmtSegment() 94 return {FmtReplacement{fmt.substr(0, 1)}, fmt.substr(2)}; in splitFmtSegment() 104 if (fmt.substr(1, end - 1).consumeInteger(0, index)) { in splitFmtSegment() 112 return {FmtReplacement{fmt.substr(0, end), index}, fmt.substr(end)}; in splitFmtSegment() 116 auto placeholder = FmtContext::getPlaceHolderKind(fmt.substr(1, end - 1)); in splitFmtSegment() 121 return {FmtReplacement{fmt.substr(0, end), placeholder}, fmt.substr(end)}; in splitFmtSegment() 155 subst = context->getSubstFor(repl.spec.substr(1)); in format()
|
/external/zstd/contrib/gen_html/ |
D | gen_html.cpp | 36 s = s.substr(spos+3, epos-(spos+3)); in trim_comments() 69 if (line.substr(0,12) == "ZSTDLIB_API ") line = line.substr(12); in print_line() 72 sout << line.substr(0, spos); in print_line() 73 sout << "</b>" << line.substr(spos) << "<b>" << endl; in print_line() 118 if (line.substr(0,7) == "typedef" && line.find("{")!=string::npos) { in main() 152 if (!comments.empty()) comments[0] = line.substr(spos+3); in main() 153 …if (!comments.empty()) comments[comments.size()-1] = comments[comments.size()-1].substr(0, comment… in main() 155 if (comments[l].find(" *")==0) comments[l] = comments[l].substr(2); in main() 156 else if (comments[l].find(" *")==0) comments[l] = comments[l].substr(3); in main() 172 if (fline.substr(0, 12) == "ZSTDLIB_API " || in main() [all …]
|
/external/clang/lib/Format/ |
D | BreakableToken.cpp | 58 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 …]
|