/third_party/vk-gl-cts/external/amber/src/src/ |
H A D | tokenizer.cc | 179 data_.substr(current_position_, end_pos - current_position_); in NextToken() 250 tok_str.substr(0, static_cast<size_t>(final_pos - tok_str.c_str()))); in NextToken() 276 ret = data_.substr(current_position_); in ExtractToNext() 279 ret = data_.substr(current_position_, pos - current_position_); in ExtractToNext()
|
/third_party/skia/third_party/externals/swiftshader/src/Common/ |
H A D | Configurator.cpp | 64 line = line.substr(0, line.length() - 1); in readFile() 86 keyName = line.substr(pLeft + 1, pRight - pLeft - 1); in readFile() 93 string valueName = line.substr(0, pLeft); in readFile() 94 string value = line.substr(pLeft + 1); in readFile()
|
/third_party/skia/third_party/externals/swiftshader/src/System/ |
H A D | Configurator.cpp | 64 line = line.substr(0, line.length() - 1); in readFile() 86 keyName = line.substr(pLeft + 1, pRight - pLeft - 1); in readFile() 93 string valueName = line.substr(0, pLeft); in readFile() 94 string value = line.substr(pLeft + 1); in readFile()
|
/third_party/typescript/tests/baselines/reference/ |
H A D | typeArgumentInference.js | 23 someGenerics2a<string>((n) => n.substr(0)); 28 someGenerics2b<string, number>((n, t) => n.substr(t * t)); 122 someGenerics2a(function (n) { return n.substr(0); });
126 someGenerics2b(function (n, t) { return n.substr(t * t); });
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_clock/ |
H A D | text_clock_pattern.cpp | 543 return strTimeValue.substr(1, 1); in RemoveZeroPrefix() 562 std::string dateFirst = dateTimeValue.substr(0, dateFirstSplit); in ParseDateTimeValue() 563 std::string dateSecond = dateTimeValue.substr(dateFirstSplit + 1, dateSecondSplit - dateFirstSplit - 1); in ParseDateTimeValue() 564 std::string dateThird = dateTimeValue.substr(dateSecondSplit + 1, dateThirdSplit - dateSecondSplit - 1); in ParseDateTimeValue() 579 ? curDateTime[static_cast<size_t>(TextClockElementIndex::CUR_YEAR_INDEX)].substr( in ParseDateTimeValue() 586 (curDateTime[static_cast<size_t>(TextClockElementIndex::CUR_MONTH_INDEX)].substr(0, 1) == "0") in ParseDateTimeValue() 587 ? curDateTime[static_cast<size_t>(TextClockElementIndex::CUR_MONTH_INDEX)].substr(1, 1) in ParseDateTimeValue() 593 (curDateTime[static_cast<size_t>(TextClockElementIndex::CUR_DAY_INDEX)].substr(0, 1) == "0") in ParseDateTimeValue() 594 ? curDateTime[static_cast<size_t>(TextClockElementIndex::CUR_DAY_INDEX)].substr(1, 1) in ParseDateTimeValue() 614 AddZeroPrefix((dateTimeValue.substr( in ParseDateTimeValue() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
H A D | Path.cpp | 73 return path.substr(0, 2); in find_first_component() 81 return path.substr(0, end); in find_first_component() 86 return path.substr(0, 1); in find_first_component() 90 return path.substr(0, end); in find_first_component() 263 Component = Path.substr(Position, 1); in operator ++() 307 I.Component = Path.substr(0, 0); 331 size_t start_pos = filename_pos(Path.substr(0, end_pos), S); 356 return path.substr(0, b->size() + pos->size()); 414 return path.substr(root.size()); 436 StringRef c = component.substr(lo [all...] |
/foundation/ability/form_fwk/services/src/ |
H A D | form_util.cpp | 268 if (strInfo.substr(ZERO_VALUE, ZERO_VALUE + 1) != "-") { // maximum: 9223372036854775807 in ConvertStringToInt64() 273 int maxSubValue = std::stoi(strInfo.substr(ZERO_VALUE, ZERO_VALUE + 1)); in ConvertStringToInt64() 279 int64_t subValue = std::stoll(strInfo.substr(ZERO_VALUE + 1, INT_64_LENGTH - 1)); in ConvertStringToInt64() 291 int minSubValue = std::stoi(strInfo.substr(1, 1)); in ConvertStringToInt64() 298 int64_t subValue = std::stoll(strInfo.substr(ZERO_VALUE + 2, INT_64_LENGTH - 1)); in ConvertStringToInt64()
|
/foundation/ai/neural_network_runtime/example/deep_learning_framework/tflite/tools/ |
H A D | utils.cpp | 66 string userInputName = inputShapeString.substr(0, pos); in GetInputNameAndShape() 68 string dimString = inputShapeString.substr(pos + 1); in GetInputNameAndShape() 72 inputDims.push_back(std::stoi(dimString.substr(0, dimPos))); in GetInputNameAndShape() 73 dimString = dimString.substr(dimPos + 1); in GetInputNameAndShape() 101 inputShapeString = inputShapeString.substr(pos + 1); in FilterDynamicInputs()
|
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/base/ |
H A D | ref_uri.h | 368 } else if (seg.substr(0, 8) == "@Context") { // 8 count index in AddSegment() 370 } else if (seg.substr(0, 8) == "@Theme") { // 8 count index in AddSegment() 387 if (i == 0 || !AddSegment(BASE_NS::string(path.substr(0, i)))) { in ParseSegment() 426 baseUid_ = BASE_NS::StringToUid(path.substr(0, uidSize)); in ParseUid() 434 if (uri.size() < 5 || uri.substr(0, 4) != "ref:") { // 5 4 size in Parse()
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/ |
H A D | rofs_filesystem.cpp | 188 entry.name = tmp.substr(pathLength, t - pathLength); in RoFileSystem() 195 const auto& parentDir = Trim(path.substr(0, pathLength)); in RoFileSystem() 207 directories_[path.substr(0, path.length() - 1)].reserve(1); in RoFileSystem() 212 entry.name = tmp.substr(t); in RoFileSystem() 217 directories_[Trim(path.substr(0, pathLength))].push_back(move(entry)); in RoFileSystem()
|
/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/ |
H A D | file_path_utils.cpp | 83 out.emplace_back(str.substr(startPos, endPos - startPos)); in SplitString() 89 out.emplace_back(str.substr(startPos)); in SplitString() 114 return str.substr(startPos, str.find_last_not_of(charSet) - startPos + 1); in StripString() 162 return curJsModulePath.substr(0, pos + 1); in GetInstallPath() 447 loadPath.substr(loadPath.find(std::string(Constants::FILE_SEPARATOR)) + 1); in GetLoadPath() 459 relativePath = relativePath.substr(1); in GetRelativePath() 460 relativePath = relativePath.substr(relativePath.find(std::string(Constants::FILE_SEPARATOR)) + 1); in GetRelativePath()
|
/foundation/arkui/ace_engine/frameworks/core/components/plugin/ |
H A D | plugin_element.cpp | 297 packagePathStr = info.pluginName.substr(0, posAssets); in GetPackagePathByAbsolutePath() 301 info.pluginName.substr(posAssets + assets.size(), posModule - (posAssets + assets.size())); in GetPackagePathByAbsolutePath() 302 info.source = info.pluginName.substr(posModule); in GetPackagePathByAbsolutePath() 305 info.source = info.pluginName.substr(posAssets + assets.size()); in GetPackagePathByAbsolutePath() 309 packagePathStr = info.pluginName.substr(0, pos + 1); in GetPackagePathByAbsolutePath() 310 info.source = info.pluginName.substr(pos + 1); in GetPackagePathByAbsolutePath() 471 std::string sub = packagePathStr.substr(1, packagePathStr.size() - 5) + "/"; in RunPluginTask()
|
/foundation/communication/nfc/services/src/tag/ |
H A D | ndef_bt_data_parser.cpp | 75 result += orgBtMac.substr(i * HEX_BYTE_LEN, HEX_BYTE_LEN);
in FormatBtMacAddr() 78 result += orgBtMac.substr(0, HEX_BYTE_LEN);
in FormatBtMacAddr() 93 std::string mac = payload.substr(offset * HEX_BYTE_LEN, MAC_ADDR_SIZE * HEX_BYTE_LEN);
in GetOrgBtMacFromPayload() 121 res += uuid.substr(i - HEX_BYTE_LEN, HEX_BYTE_LEN);
in RevertUuidStr() 136 uuidSubfix = baseUuid.substr(uuidPrefixLen, baseUuid.length() - uuidPrefixLen);
in FormatUuidTo128Bit() 160 std::string data = payload.substr(offset * HEX_BYTE_LEN, dataLen * HEX_BYTE_LEN);
in GetDataFromPayload() 193 std::string uuid = payload.substr(offset * HEX_BYTE_LEN, uuidSize * HEX_BYTE_LEN);
in GetUuidFromPayload()
|
/third_party/skia/third_party/externals/tint/fuzzers/tint_regex_fuzzer/ |
H A D | wgsl_mutator.cc | 167 "return " + wgsl_code.substr(return_value.first, return_value.second) + in InsertReturnStatement() 180 std::string region_1 = wgsl_code.substr(idx1 + 1, reg1_len - 1); in SwapIntervals() 182 std::string region_2 = wgsl_code.substr(idx2 + 1, reg2_len - 1); in SwapIntervals() 198 std::string region = wgsl_code.substr(idx1 + 1, reg1_len - 1); in DuplicateInterval() 207 std::string region_1 = wgsl_code.substr(idx1, id1_len); in ReplaceRegion() 208 std::string region_2 = wgsl_code.substr(idx2, id2_len); in ReplaceRegion() 216 std::string region_1 = wgsl_code.substr(start_index, length); in ReplaceInterval()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
H A D | cord_rep_btree_reader_test.cc | 62 EXPECT_THAT(chunk, Eq(data.substr(0, chunk.length()))); in TEST() 69 EXPECT_THAT(chunk, Eq(data.substr(consumed, chunk.length()))); in TEST() 99 ASSERT_THAT(chunk, Eq(data.substr(consumed + skip1, chunk.length()))); in TEST() 107 ASSERT_THAT(chunk, Eq(data.substr(consumed + skip, chunk.length()))); in TEST() 140 ASSERT_THAT(chunk, Eq(data.substr(seek, chunk.length()))); in TEST() 261 EXPECT_THAT(CordToString(tree), Eq(data.substr(consumed, n))); in TEST() 271 ASSERT_THAT(chunk, Eq(data.substr(consumed, chunk.length()))); in TEST()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | string_view.h | 392 // string_view::substr() 397 // Use absl::ClippedSubstr if you need a truncating substr operation. 398 constexpr string_view substr(size_type pos = 0, size_type n = npos) const { 401 "absl::string_view::substr"), 423 return substr(pos1, count1).compare(v); 430 return substr(pos1, count1).compare(v.substr(pos2, count2)); 440 return substr(pos1, count1).compare(string_view(s)); 447 return substr(pos1, count1).compare(string_view(s, count2)); 690 // Like `s.substr(po [all...] |
/foundation/graphic/graphic_3d/lume/LumeEcsSerializer/EcsSerializer/include/ecs_serializer/ |
H A D | ecs_property_util.h | 43 path = propertyPath.substr(0, separatorPosition); in ResolveContainerProperty() 44 name = propertyPath.substr(separatorPosition + 1); in ResolveContainerProperty()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_data_manager_utils.cpp | 49 oprn = uri.substr(found + 1); in GetOperationType() 60 displayName = path.substr(lastSlashPosition + 1); in GetDisPlayNameFromPath()
|
/foundation/communication/netstack/frameworks/js/builtin/fetch/src/ |
H A D | response_data.cpp | 52 headers[Strip(header.substr(0, index))] = Strip(header.substr(index + 1)); in ParseHeaders()
|
/foundation/communication/wifi/wifi/frameworks/native/src/ |
H A D | wifi_msg.cpp | 39 methodStr = str.substr(PREFIX_AUTH.length()); in Phase2MethodFromStr() 41 methodStr = str.substr(PREFIX_AUTHEAP.length()); in Phase2MethodFromStr()
|
/foundation/communication/netstack/frameworks/js/napi/fetch/options/src/ |
H A D | fetch_response.cpp | 53 header_[CommonUtils::ToLower(CommonUtils::Strip(header.substr(0, index)))] = in ParseHeaders() 54 CommonUtils::Strip(header.substr(index + 1)); in ParseHeaders()
|
/foundation/distributeddatamgr/data_share/frameworks/native/common/src/ |
H A D | datashare_string_utils.cpp | 31 return (DEFAULT_ANONYMOUS + name.substr(name.length() - END_SIZE, END_SIZE));
in Anonymous() 48 return DEFAULT_ANONYMOUS + name.substr(ANONYMOUS_SIZE);
in Change()
|
/third_party/libwebsockets/minimal-examples/ws-server/minimal-ws-server-pmd-bulk/mount-origin/ |
H A D | example.js | 14 u = u.substr(8); 18 u = u.substr(7);
|
/third_party/libwebsockets/minimal-examples/ws-server/minimal-ws-server-threads-foreign-libuv-smp/mount-origin/ |
H A D | example.js | 15 u = u.substr(8); 19 u = u.substr(7);
|
/third_party/libwebsockets/minimal-examples/client-server/minimal-ws-proxy/mount-origin/ |
H A D | example.js | 15 u = u.substr(8); 19 u = u.substr(7);
|