/external/chromium_org/third_party/sqlite/src/test/ |
D | substr.test | 14 # $Id: substr.test,v 1.7 2009/02/03 13:10:54 drh Exp $ 29 proc substr-test {id string i1 i2 result} { 34 do_test substr-$id.1 [subst { 36 SELECT substr(t, $i1, $i2) FROM t1 40 do_test substr-$id.2 [subst { 42 SELECT substr($qstr, $i1, $i2) 51 do_test substr-$id.1 [subst { 53 SELECT hex(substr(b, $i1, $i2)) FROM t1 56 do_test substr-$id.2 [subst { 58 SELECT hex(substr(x'$hex', $i1, $i2)) [all …]
|
/external/chromium_org/v8/test/webkit/ |
D | string-substr-expected.txt | 24 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/chromium_org/v8/test/mjsunit/ |
D | substr.js | 29 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 …]
|
D | string-slices.js | 31 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/tools/opt/ |
D | Passes.cpp | 135 PipelineText = PipelineText.substr(strlen("function(")); in parseFunctionPassPipeline() 140 PipelineText = PipelineText.substr(1); in parseFunctionPassPipeline() 147 if (!parseFunctionPassName(FPM, PipelineText.substr(0, End))) in parseFunctionPassPipeline() 152 PipelineText = PipelineText.substr(End); in parseFunctionPassPipeline() 159 PipelineText = PipelineText.substr(1); in parseFunctionPassPipeline() 172 PipelineText = PipelineText.substr(strlen("cgscc(")); in parseCGSCCPassPipeline() 177 PipelineText = PipelineText.substr(1); in parseCGSCCPassPipeline() 185 PipelineText = PipelineText.substr(strlen("function(")); in parseCGSCCPassPipeline() 190 PipelineText = PipelineText.substr(1); in parseCGSCCPassPipeline() 197 if (!parseCGSCCPassName(CGPM, PipelineText.substr(0, End))) in parseCGSCCPassPipeline() [all …]
|
/external/chromium_org/chrome/browser/autocomplete/ |
D | builtin_provider_unittest.cc | 91 {kAbout.substr(0, 1), 3, {kURL1, kURL2, kURL3}}, in TEST_F() 100 {kChrome.substr(0, 1), 3, {kURL1, kURL2, kURL3}}, in TEST_F() 137 {kAbout.substr(0, 1), 2, {kURL1, kURL2}}, in TEST_F() 146 {kChrome.substr(0, 1), 2, {kURL1, kURL2}}, in TEST_F() 209 {kAbout + kSeparator1 + kHostM1.substr(0, 1), 3, {kURLM1, kURLM2, kURLM3}}, in TEST_F() 210 {kAbout + kSeparator2 + kHostM1.substr(0, 2), 3, {kURLM1, kURLM2, kURLM3}}, in TEST_F() 211 {kAbout + kSeparator3 + kHostM1.substr(0, 3), 1, {kURLM1}}, in TEST_F() 212 {kAbout + kSeparator3 + kHostM2.substr(0, 3), 2, {kURLM2, kURLM3}}, in TEST_F() 218 {kChrome + kSeparator1 + kHostM1.substr(0, 1), 3, {kURLM1, kURLM2, kURLM3}}, in TEST_F() 219 {kChrome + kSeparator2 + kHostM1.substr(0, 2), 3, {kURLM1, kURLM2, kURLM3}}, in TEST_F() [all …]
|
/external/chromium_org/ui/gl/ |
D | gl_version_info.cc | 23 is_es = (lstr.substr(0, 9) == "opengl es"); in GLVersionInfo() 25 is_es1 = (lstr.substr(9, 2) == "-c" && lstr.substr(13, 2) == "1."); in GLVersionInfo() 26 is_es2 = (lstr.substr(9, 3) == " 2."); in GLVersionInfo() 27 is_es3 = (lstr.substr(9, 3) == " 3."); in GLVersionInfo() 29 is_gl2 = (lstr.substr(0, 2) == "2."); in GLVersionInfo() 30 is_gl3 = (lstr.substr(0, 2) == "3."); in GLVersionInfo() 31 is_gl4 = (lstr.substr(0, 2) == "4."); in GLVersionInfo()
|
/external/protobuf/gtest/include/gtest/ |
D | gtest-spi.h | 101 const char* 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/chromium_org/net/base/ |
D | net_util_icu_unittest.cc | 717 formatted.substr(parsed.username.begin, parsed.username.len)); in TEST() 719 formatted.substr(parsed.password.begin, parsed.password.len)); in TEST() 721 formatted.substr(parsed.host.begin, parsed.host.len)); in TEST() 723 formatted.substr(parsed.port.begin, parsed.port.len)); in TEST() 725 formatted.substr(parsed.path.begin, parsed.path.len)); in TEST() 727 formatted.substr(parsed.query.begin, parsed.query.len)); in TEST() 729 formatted.substr(parsed.ref.begin, parsed.ref.len)); in TEST() 740 formatted.substr(parsed.username.begin, parsed.username.len)); in TEST() 742 formatted.substr(parsed.password.begin, parsed.password.len)); in TEST() 744 formatted.substr(parsed.host.begin, parsed.host.len)); in TEST() [all …]
|
/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/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/chromium_org/third_party/mesa/src/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/chromium_org/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/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/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldChecker.cpp | 39 StringRef LHSExpr = Expr.substr(0, EQIdx).rtrim(); in evaluate() 50 StringRef RHSExpr = Expr.substr(EQIdx + 1).ltrim(); in evaluate() 104 Token = Expr.substr(0, TokLen); in getTokenForError() 140 Expr.substr(2).ltrim()); in parseBinOpToken() 143 Expr.substr(2).ltrim()); in parseBinOpToken() 155 return std::make_pair(Op, Expr.substr(1).ltrim()); in parseBinOpToken() 185 return std::make_pair(Expr.substr(0, FirstNonSymbol), in parseSymbol() 186 Expr.substr(FirstNonSymbol).ltrim()); in parseSymbol() 198 StringRef RemainingExpr = Expr.substr(1).ltrim(); in evalDecodeOperand() 211 RemainingExpr = RemainingExpr.substr(1).ltrim(); in evalDecodeOperand() [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() 219 return getCommentSplit(Line.substr(TailOffset), StartColumn + Prefix.size(), in getSplit() [all …]
|
/external/chromium_org/third_party/icu/source/test/intltest/ |
D | fldset.cpp | 207 …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 …]
|
D | fldset.h | 113 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/icu/icu4c/source/test/intltest/ |
D | fldset.cpp | 207 …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 …]
|
D | fldset.h | 113 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/e2fsprogs/lib/ss/ |
D | ct_c.awk | 17 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/chromium_org/chrome/common/favicon/ |
D | favicon_url_parser.cc | 64 size_str = path.substr(parsed_index, slash - parsed_index); in ParseFaviconPath() 66 size_str = path.substr(parsed_index, scale_delimiter - parsed_index); in ParseFaviconPath() 67 scale_str = path.substr(scale_delimiter + 1, in ParseFaviconPath() 98 parsed->url = path.substr(parsed_index); in ParseFaviconPath() 105 std::string possibly_invalid_url = path.substr(parsed_index); in ParseFaviconPath() 115 parsed->url = path.substr(parsed_index); in ParseFaviconPath()
|
/external/chromium-trace/trace-viewer/src/base/ |
D | color.js | 18 if (str.substr(0, 4) == 'rgb(') { 19 tmp = str.substr(4, str.length - 5); 29 } else if (str.substr(0, 5) == 'rgba(') { 30 tmp = str.substr(5, str.length - 6); 43 parseInt(str.substr(1, 2), 16), 44 parseInt(str.substr(3, 2), 16), 45 parseInt(str.substr(5, 2), 16));
|
/external/chromium_org/ui/gfx/ |
D | text_elider.cc | 56 base::string16 username = email.substr(0, split_index); in ElideEmail() 57 base::string16 domain = email.substr(split_index + 1); in ElideEmail() 71 GetStringWidthF(username.substr(0, 1) + kEllipsisUTF16, in ElideEmail() 123 text_.substr(FindValidBoundaryBefore(text_.length() - length)); in CutString() 126 return text_.substr(0, FindValidBoundaryBefore(length)) + ellipsis_text; in CutString() 135 return text_.substr(0, prefix_length) + ellipsis_text + in CutString() 136 text_.substr(suffix_start, suffix_length); in CutString() 278 output->assign(input.substr(0, 1)); in ElideString() 281 output->assign(input.substr(0, 2)); in ElideString() 284 output->assign(input.substr(0, 1) + ASCIIToUTF16(".") + in ElideString() [all …]
|