/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/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/deqp-deps/SPIRV-Tools/test/ |
D | move_to_front_test.cpp | 128 .substr(1)); in TEST() 135 .substr(1)); in TEST() 148 .substr(1)); in TEST() 155 .substr(1)); in TEST() 167 .substr(1)); in TEST() 174 .substr(1)); in TEST() 187 .substr(1)); in TEST() 194 .substr(1)); in TEST() 204 .substr(1)); in TEST() 220 .substr(1)); in TEST() [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/test/ |
D | move_to_front_test.cpp | 128 .substr(1)); in TEST() 135 .substr(1)); in TEST() 148 .substr(1)); in TEST() 155 .substr(1)); in TEST() 167 .substr(1)); in TEST() 174 .substr(1)); in TEST() 187 .substr(1)); in TEST() 194 .substr(1)); in TEST() 204 .substr(1)); in TEST() 220 .substr(1)); in TEST() [all …]
|
/external/protobuf/src/google/protobuf/util/internal/ |
D | json_objectwriter_test.cc | 67 EXPECT_EQ("{}", output_.substr(0, out_stream_->ByteCount())); in TEST_F() 78 output_.substr(0, out_stream_->ByteCount())); in TEST_F() 84 EXPECT_EQ("[]", output_.substr(0, out_stream_->ByteCount())); in TEST_F() 95 output_.substr(0, out_stream_->ByteCount())); in TEST_F() 106 output_.substr(0, out_stream_->ByteCount())); in TEST_F() 117 output_.substr(0, out_stream_->ByteCount())); in TEST_F() 128 output_.substr(0, out_stream_->ByteCount())); in TEST_F() 138 EXPECT_EQ("[[\"value\"]]", output_.substr(0, out_stream_->ByteCount())); in TEST_F() 168 output_.substr(0, out_stream_->ByteCount())); in TEST_F() 179 output_.substr(0, out_stream_->ByteCount())); in TEST_F() [all …]
|
/external/harfbuzz_ng/src/ |
D | hb-cff-interp-common.hh | 544 void push_longint_from_substr (SubByteStr& substr) in push_longint_from_substr() 546 push_int ((substr[0] << 24) | (substr[1] << 16) | (substr[2] << 8) | (substr[3])); in push_longint_from_substr() 547 substr.inc (4); in push_longint_from_substr() 550 bool push_fixed_from_substr (SubByteStr& substr) in push_fixed_from_substr() 552 if (unlikely (!substr.avail (4))) in push_fixed_from_substr() 554 push_fixed ((int32_t)*(const HBUINT32*)&substr[0]); in push_fixed_from_substr() 555 substr.inc (4); in push_fixed_from_substr() 603 void add_op (OpCode op, const SubByteStr& substr = SubByteStr ()) in add_op() 607 val->str = ByteStr (substr.str, opStart, substr.offset - opStart); in add_op() 608 opStart = substr.offset; in add_op() [all …]
|
D | hb-cff-interp-dict-common.hh | 84 env.argStack.push_longint_from_substr (env.substr); in process_op() 88 env.argStack.push_real (parse_bcd (env.substr)); in process_op() 97 static double parse_bcd (SubByteStr& substr) in parse_bcd() 118 if (!substr.avail ()) in parse_bcd() 120 substr.set_error (); in parse_bcd() 123 byte = substr[0]; in parse_bcd() 124 substr.inc (); in parse_bcd() 133 substr.set_error (); in parse_bcd() 165 substr.set_error (); in parse_bcd() 174 substr.set_error (); in parse_bcd() [all …]
|
/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/perfetto/src/base/ |
D | string_view_unittest.cc | 74 EXPECT_EQ(StringView().substr(0, 0).ToStdString(), ""); in TEST() 75 EXPECT_EQ(StringView().substr(3, 1).ToStdString(), ""); in TEST() 76 EXPECT_EQ(StringView("foo").substr(3, 1).ToStdString(), ""); in TEST() 77 EXPECT_EQ(StringView("foo").substr(4, 0).ToStdString(), ""); in TEST() 78 EXPECT_EQ(StringView("foo").substr(4, 1).ToStdString(), ""); in TEST() 79 EXPECT_EQ(StringView("foo").substr(0, 1).ToStdString(), "f"); in TEST() 80 EXPECT_EQ(StringView("foo").substr(0, 3).ToStdString(), "foo"); in TEST() 81 EXPECT_EQ(StringView("foo").substr(0, 99).ToStdString(), "foo"); in TEST() 82 EXPECT_EQ(StringView("foo").substr(1, 2).ToStdString(), "oo"); in TEST() 83 EXPECT_EQ(StringView("foo").substr(1, 3).ToStdString(), "oo"); in TEST() [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/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | GlobPattern.cpp | 43 S = S.substr(1); in expand() 55 S = S.substr(3); in expand() 70 S = S.substr(1); in scan() 75 S = S.substr(1); in scan() 83 StringRef Chars = S.substr(1, End - 1); in scan() 84 S = S.substr(End + 1); in scan() 86 Expected<BitVector> BV = expand(Chars.substr(1), Original); in scan() 96 S = S.substr(1); in scan() 159 if (matchOne(Pats, S.substr(I))) in matchOne() 168 S = S.substr(1); in matchOne()
|
/external/libaom/libaom/third_party/googletest/src/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/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/google-breakpad/src/testing/gtest/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/swiftshader/third_party/llvm-7.0/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/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/mesa3d/src/gtest/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/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/swiftshader/third_party/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/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/swiftshader/third_party/LLVM/utils/FileCheck/ |
D | FileCheck.cpp | 116 PatternStr = PatternStr.substr(0, PatternStr.size()-1); in ParsePattern() 158 if (AddRegExToRegEx(PatternStr.substr(2, End-2), CurParen, SM)) in ParsePattern() 162 PatternStr = PatternStr.substr(End+2); in ParsePattern() 180 StringRef MatchStr = PatternStr.substr(2, End-2); in ParsePattern() 181 PatternStr = PatternStr.substr(End+2); in ParsePattern() 185 StringRef Name = MatchStr.substr(0, NameEnd); in ParsePattern() 219 if (AddRegExToRegEx(MatchStr.substr(NameEnd+1), CurParen, SM)) in ParsePattern() 229 AddFixedStringToRegEx(PatternStr.substr(0, FixedMatchEnd), RegExStr); in ParsePattern() 230 PatternStr = PatternStr.substr(FixedMatchEnd); in ParsePattern() 360 StringRef BufferPrefix = Buffer.substr(0, ExampleString.size()); in ComputeMatchDistance() [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 …]
|
/external/swiftshader/third_party/LLVM/include/llvm/ |
D | Intrinsics.gen | 1607 if (NameR.substr(0, 16) != "djust.trampoline") 1632 if (NameR.substr(0, 14) != "onvert.to.fp16") 1636 if (NameR.substr(0, 16) != "onvert.from.fp16") 1645 if (NameR.substr(0, 8) != "bg.value") 1649 if (NameR.substr(0, 10) != "bg.declare") 1661 if (NameR.substr(0, 8) != "h.resume") 1665 if (NameR.substr(0, 10) != "h.selector") 1669 if (NameR.substr(0, 2) != "h.") 1674 if (NameR.substr(3, 8) != "warf.cfa") 1678 if (NameR.substr(3, 8) != "xception") [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | fldset.cpp | 209 …efault(const FieldsSet* inheritFrom, int32_t field, const UnicodeString& substr, UErrorCode& statu… in parseValueDefault() argument 211 if(substr.length()==0) { // inherit requested in parseValueDefault() 221 value = udbg_stoi(substr); in parseValueDefault() 226 … type, const FieldsSet* inheritFrom, int32_t field, const UnicodeString& substr, UErrorCode& statu… in parseValueEnum() argument 227 int32_t value = udbg_enumByString(type, substr); in parseValueEnum() 232 parseValueDefault(inheritFrom,field,substr,status); in parseValueEnum() 236 …eValue(const FieldsSet* inheritFrom, int32_t field, const UnicodeString& substr, UErrorCode& statu… in handleParseValue() argument 237 parseValueDefault(inheritFrom, field, substr, status); in handleParseValue() 251 …eValue(const FieldsSet* inheritFrom, int32_t field, const UnicodeString& substr, UErrorCode& statu… in handleParseValue() argument 253 parseValueEnum(UDBG_UCalendarMonths, inheritFrom, field, substr, status); in handleParseValue() [all …]
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldChecker.cpp | 43 StringRef LHSExpr = Expr.substr(0, EQIdx).rtrim(); in evaluate() 54 StringRef RHSExpr = Expr.substr(EQIdx + 1).ltrim(); in evaluate() 125 Token = Expr.substr(0, TokLen); in getTokenForError() 159 return std::make_pair(BinOpToken::ShiftLeft, Expr.substr(2).ltrim()); in parseBinOpToken() 161 return std::make_pair(BinOpToken::ShiftRight, Expr.substr(2).ltrim()); in parseBinOpToken() 182 return std::make_pair(Op, Expr.substr(1).ltrim()); in parseBinOpToken() 212 return std::make_pair(Expr.substr(0, FirstNonSymbol), in parseSymbol() 213 Expr.substr(FirstNonSymbol).ltrim()); in parseSymbol() 225 StringRef RemainingExpr = Expr.substr(1).ltrim(); in evalDecodeOperand() 237 RemainingExpr = RemainingExpr.substr(1).ltrim(); in evalDecodeOperand() [all …]
|