/third_party/jerryscript/tests/jerry/ |
D | string-prototype-substr.js | 26 assert(Object.getOwnPropertyDescriptor(String.prototype.substr, 'length').configurable === length_c… 28 assert(Object.getOwnPropertyDescriptor(String.prototype.substr, 'length').enumerable === false); 30 assert(Object.getOwnPropertyDescriptor(String.prototype.substr, 'length').writable === false); 32 assert(String.prototype.substr.length === 2); 34 assert(String.prototype.substr.call(new String()) === ""); 36 assert(String.prototype.substr.call({}) === "[object Object]"); 40 String.prototype.substr.call(undefined); method in String 48 String.prototype.substr.call(null); method in String 55 assert("Hello world!".substr(0, 11) === "Hello world"); 57 assert("Hello world!".substr(11, 0) === ""); [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | mlpdec.c | 223 unsigned int substr, unsigned int ch) in calculate_sign_huff() argument 225 SubStream *s = &m->substream[substr]; in calculate_sign_huff() 244 unsigned int substr, unsigned int pos) in read_huff_channels() argument 246 SubStream *s = &m->substream[substr]; in read_huff_channels() 283 int substr; in mlp_decode_init() local 286 for (substr = 0; substr < MAX_SUBSTREAMS; substr++) in mlp_decode_init() 287 m->substream[substr].lossless_check_data = 0xffffffff; in mlp_decode_init() 303 int substr, ret; in read_major_sync() local 385 for (substr = 0; substr < MAX_SUBSTREAMS; substr++) in read_major_sync() 386 m->substream[substr].restart_seen = 0; in read_major_sync() [all …]
|
D | mlpenc.c | 381 unsigned int substr) in copy_restart_frame_params() argument 386 DecodingParams *dp = ctx->seq_decoding_params + index*(ctx->num_substreams) + substr; in copy_restart_frame_params() 408 unsigned int substr; in clear_decoding_params() local 410 for (substr = 0; substr < ctx->num_substreams; substr++) { in clear_decoding_params() 411 DecodingParams *dp = &decoding_params[substr]; in clear_decoding_params() 442 unsigned int substr; in default_decoding_params() local 446 for (substr = 0; substr < ctx->num_substreams; substr++) { in default_decoding_params() 447 DecodingParams *dp = &decoding_params[substr]; in default_decoding_params() 490 unsigned int substr, index; in mlp_encode_init() local 717 for (substr = 0; substr < ctx->num_substreams; substr++) { in mlp_encode_init() [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | typeGuardRedundancy.symbols | 5 var r1 = typeof x === "string" && typeof x === "string" ? x.substr : x.toFixed; 9 >x.substr : Symbol(String.substr, Decl(lib.es5.d.ts, --, --)) 11 >substr : Symbol(String.substr, Decl(lib.es5.d.ts, --, --)) 16 var r2 = !(typeof x === "string" && typeof x === "string") ? x.toFixed : x.substr; 23 >x.substr : Symbol(String.substr, Decl(lib.es5.d.ts, --, --)) 25 >substr : Symbol(String.substr, Decl(lib.es5.d.ts, --, --)) 27 var r3 = typeof x === "string" || typeof x === "string" ? x.substr : x.toFixed; 31 >x.substr : Symbol(String.substr, Decl(lib.es5.d.ts, --, --)) 33 >substr : Symbol(String.substr, Decl(lib.es5.d.ts, --, --)) 38 var r4 = !(typeof x === "string" || typeof x === "string") ? x.toFixed : x.substr; [all …]
|
D | typeGuardRedundancy.js | 4 var r1 = typeof x === "string" && typeof x === "string" ? x.substr : x.toFixed; 6 var r2 = !(typeof x === "string" && typeof x === "string") ? x.toFixed : x.substr; 8 var r3 = typeof x === "string" || typeof x === "string" ? x.substr : x.toFixed; 10 var r4 = !(typeof x === "string" || typeof x === "string") ? x.toFixed : x.substr; 14 var r1 = typeof x === "string" && typeof x === "string" ? x.substr : x.toFixed; 15 var r2 = !(typeof x === "string" && typeof x === "string") ? x.toFixed : x.substr; 16 var r3 = typeof x === "string" || typeof x === "string" ? x.substr : x.toFixed; 17 var r4 = !(typeof x === "string" || typeof x === "string") ? x.toFixed : x.substr;
|
D | typeGuardRedundancy.types | 5 var r1 = typeof x === "string" && typeof x === "string" ? x.substr : x.toFixed; 7 >typeof x === "string" && typeof x === "string" ? x.substr : x.toFixed : ((from: number, length?: n… 17 >x.substr : (from: number, length?: number) => string 19 >substr : (from: number, length?: number) => string 24 var r2 = !(typeof x === "string" && typeof x === "string") ? x.toFixed : x.substr; 26 >!(typeof x === "string" && typeof x === "string") ? x.toFixed : x.substr : ((from: number, length?… 41 >x.substr : (from: number, length?: number) => string 43 >substr : (from: number, length?: number) => string 45 var r3 = typeof x === "string" || typeof x === "string" ? x.substr : x.toFixed; 47 >typeof x === "string" || typeof x === "string" ? x.substr : x.toFixed : ((from: number, length?: n… [all …]
|
/third_party/skia/third_party/externals/tint/tools/src/substr/ |
D | substr_test.go | 15 package substr package 25 substr string 32 substr: "def_XXX_jkl", 37 substr: "def\nXXX\njkl", 42 substr: "1x345", 47 substr: "12x45", 52 substr: "123x5", 57 substr: "bbbbbbbbbbbbb", 66 substr: `Return{ 94 substr: `Assignment{ [all …]
|
/third_party/flutter/skia/third_party/externals/spirv-tools/test/ |
D | move_to_front_test.cpp | 126 )").substr(1)); in TEST() 132 )").substr(1)); in TEST() 144 )").substr(1)); in TEST() 150 )").substr(1)); in TEST() 161 )").substr(1)); in TEST() 167 )").substr(1)); in TEST() 179 )").substr(1)); in TEST() 185 )").substr(1)); in TEST() 194 )").substr(1)); in TEST() 209 )").substr(1)); in TEST() [all …]
|
/third_party/vk-gl-cts/external/amber/src/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()
|
/third_party/skia/third_party/externals/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 …]
|
/third_party/skia/tests/ |
D | SkStringViewTest.cpp | 136 REPORTER_ASSERT(r, xyz.substr() == xyz); in DEF_TEST() 137 REPORTER_ASSERT(r, xyz.substr(0, 1) == "x"); in DEF_TEST() 138 REPORTER_ASSERT(r, xyz.substr(0, 2) == "xy"); in DEF_TEST() 139 REPORTER_ASSERT(r, xyz.substr(0, 3) == "xyz"); in DEF_TEST() 140 REPORTER_ASSERT(r, xyz.substr(0, 4) == "xyz"); in DEF_TEST() 142 REPORTER_ASSERT(r, xyz.substr(1) == "yz"); in DEF_TEST() 143 REPORTER_ASSERT(r, xyz.substr(1, 1) == "y"); in DEF_TEST() 144 REPORTER_ASSERT(r, xyz.substr(1, 2) == "yz"); in DEF_TEST() 145 REPORTER_ASSERT(r, xyz.substr(1, 3) == "yz"); in DEF_TEST() 147 REPORTER_ASSERT(r, xyz.substr(2) == "z"); in DEF_TEST() [all …]
|
/third_party/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 …]
|
/third_party/flutter/skia/third_party/externals/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 …]
|
/third_party/skia/third_party/externals/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 …]
|
/third_party/musl/tools/ |
D | add-cfi.x86_64.awk | 21 return parse_const(substr($0, RSTART, RLENGTH-1)) 28 return "r" substr(register, 2, length(register)-1) 30 return "r" substr(register, 1, 1) "x" 37 return canonicalize_reg(substr($0, RSTART+1, RLENGTH-1)) 42 return canonicalize_reg(substr($0, RSTART+1, RLENGTH-2)) 47 return canonicalize_reg(substr($0, RSTART+2, RLENGTH-2)) 80 functions[substr($2, 1, length($2)-10)] = 1 89 label = substr($1, 1, length($1)-1) # drop trailing : 134 called = substr($0, RSTART+5, RLENGTH-6) 136 called = substr($0, RSTART+5, RLENGTH-5) [all …]
|
D | add-cfi.i386.awk | 28 return parse_const(substr($0, RSTART, RLENGTH-1)) 35 return "e" substr(register, 1, 1) "x" 42 return canonicalize_reg(substr($0, RSTART+1, RLENGTH-1)) 47 return canonicalize_reg(substr($0, RSTART+1, RLENGTH-2)) 52 return canonicalize_reg(substr($0, RSTART+2, RLENGTH-2)) 85 functions[substr($2, 1, length($2)-10)] = 1 94 label = substr($1, 1, length($1)-1) # drop trailing : 148 called = substr($0, RSTART+5, RLENGTH-6) 150 called = substr($0, RSTART+5, RLENGTH-5) 174 offset = parse_const(substr($0, RSTART, RLENGTH-6))
|
/third_party/tzdata/ |
D | zishrink.awk | 27 n = substr(name, 1, 2) 173 line = substr(line, 1, RSTART) substr(line, RSTART + 5) 178 line = substr(line, 1, RSTART) substr(line, RSTART + RLENGTH - 1) 180 line = substr(line, 1, RSTART - 1) substr(line, RSTART + 2) 185 line = substr(line, 1, end - 4) substr(line, end - 1) 189 line = substr(line, 1, end - 3) substr(line, end - 1) 214 line = substr(line, 1, RSTART)
|
/third_party/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));\
|
/third_party/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));\
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/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 …]
|
/third_party/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 …]
|
/third_party/lz4/contrib/gen_manual/ |
D | gen_manual.cpp | 61 s = s.substr(spos+3, epos-(spos+3)); in trim_comments() 93 if (line.substr(0,11) == "LZ4LIB_API ") line = line.substr(11); in print_line() 94 if (line.substr(0,12) == "LZ4FLIB_API ") line = line.substr(12); in print_line() 98 sout << line.substr(0, spos); in print_line() 99 sout << "</b>" << line.substr(spos) << "<b>" << '\n'; in print_line() 143 if (line.substr(0,7) == "typedef" && line.find("{")!=string::npos) { in main() 178 if (!comments.empty()) comments[0] = line.substr(spos+3); in main() 180 …comments[comments.size()-1] = comments[comments.size()-1].substr(0, comments[comments.size()-1].fi… in main() 183 comments[l] = comments[l].substr(2); in main() 185 comments[l] = comments[l].substr(3); in main()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/tools/sva/src/ |
D | lexer.js | 163 let substr = this.input_.substr(start, end - start); 164 if (substr === "." || substr === "-.") 169 return new Token(TokenType.kFloatLiteral, this.cur_line_, parseFloat(substr)); 195 let val = parseInt(this.input_.substr(start, end - start), 16); 221 let val = parseInt(this.input_.substr(start, end - start), 10); 244 let ident = this.input_.substr(start, this.cur_pos_ - start); 270 let ident = this.input_.substr(start, this.cur_pos_ - start); 295 name: this.input_.substr(start, this.cur_pos_ - start)
|
/third_party/flutter/skia/third_party/externals/angle2/src/common/ |
D | string_utils.cpp | 44 piece = input.substr(start); in SplitString() 49 piece = input.substr(start, end - start); in SplitString() 79 tokensOut->push_back(line.substr(prev, pos - prev)); in SplitStringAlongWhitespace() 83 tokensOut->push_back(line.substr(prev, std::string::npos)); in SplitStringAlongWhitespace() 98 return input.substr(begin); in TrimString() 101 return input.substr(begin, end - begin + 1); in TrimString() 109 return input.substr(offset); in GetPrefix() 111 return input.substr(offset, match - offset); in GetPrefix() 119 return input.substr(offset); in GetPrefix() 121 return input.substr(offset, match - offset); in GetPrefix()
|
/third_party/spirv-tools/tools/sva/src/ |
D | lexer.js | 163 let substr = this.input_.substr(start, end - start); 164 if (substr === "." || substr === "-.") 169 return new Token(TokenType.kFloatLiteral, this.cur_line_, parseFloat(substr)); 195 let val = parseInt(this.input_.substr(start, end - start), 16); 221 let val = parseInt(this.input_.substr(start, end - start), 10); 244 let ident = this.input_.substr(start, this.cur_pos_ - start); 270 let ident = this.input_.substr(start, this.cur_pos_ - start); 295 name: this.input_.substr(start, this.cur_pos_ - start)
|