/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/ |
H A D | string_view.h | 46 using size_type = size_t; variable 49 static const size_type npos = size_type(-1); 116 constexpr size_type copy(CharT* dest, size_type count, size_type pos = 0) const; 124 … size_type pos1, size_type count1, basic_string_view v, size_type pos2, size_type count2) const; 127 …constexpr int compare(size_type pos1, size_type count1, CharT const* const s, size_type count2) co… 129 constexpr size_type find(const CharT str, size_type pos = 0) const noexcept; 136 constexpr size_type find_first_of(CharT ch, size_type pos = 0) const noexcept; 159 size_type size_ { 0 }; 319 CharT* dest, size_type count, size_type pos) const in copy() 376 size_type pos1, size_type count1, basic_string_view v, size_type pos2, size_type count2) const in compare() [all …]
|
H A D | string.h | 52 static constexpr size_type npos = size_type(-1); 148 basic_string(const StringT& a, size_type pos, size_type n, allocator& alloc) in basic_string() 361 size_type copy(pointer dst, size_type todo) const in copy() 449 string_view substr(size_type pos = 0, size_type count = npos) const 464 basic_string& erase(const size_type off, size_type count) in erase() 515 basic_string& insert(size_type pos, const_pointer str, size_type n) in insert() 666 int compare(size_type pos1, size_type count1, string_view v) const in compare() 671 …int compare(size_type pos1, size_type count1, string_view v, size_type pos2, size_type count2) con… in compare() 686 int compare(size_type pos1, size_type count1, CharT const* const s, size_type count2) const in compare() 692 size_type find(const value_type str, size_type pos = 0) const noexcept [all …]
|
H A D | fixed_string.h | 42 using size_type = typename string_view::size_type; variable 43 static constexpr size_type npos = string_view::npos; 209 constexpr size_type copy(CharT* const dst, size_type todo, size_type pos = 0) const 215 constexpr size_type find(const CharT str, size_type pos = 0) const noexcept 220 constexpr size_type find(const string_view& str, size_type pos = 0) const noexcept 226 constexpr size_type rfind(const CharT str, size_type pos = npos) const noexcept 231 constexpr size_type rfind(const string_view& str, size_type pos = npos) const noexcept 237 constexpr size_type find_first_of(const string_view& str, size_type pos = 0) const noexcept 242 constexpr size_type find_first_of(CharT ch, size_type pos = 0) const noexcept 248 constexpr size_type find_last_of(const string_view& str, size_type pos = npos) const noexcept [all …]
|
H A D | array_view.h | 40 using size_type = size_t; in BASE_BEGIN_NAMESPACE() local 49 : begin_(begin), size_(static_cast<size_type>(end - begin)) in BASE_BEGIN_NAMESPACE() 53 constexpr array_view(pointer begin, size_type aSize) noexcept : begin_(begin), size_(aSize) {} in BASE_BEGIN_NAMESPACE() 67 constexpr size_type size() const noexcept in BASE_BEGIN_NAMESPACE() 71 constexpr size_type size_bytes() const noexcept in BASE_BEGIN_NAMESPACE() 87 constexpr reference at(size_type aIndex) noexcept in BASE_BEGIN_NAMESPACE() 93 constexpr const_reference at(size_type aIndex) const noexcept in BASE_BEGIN_NAMESPACE() 99 constexpr reference operator[](size_type aIndex) in BASE_BEGIN_NAMESPACE() 105 constexpr const_reference operator[](size_type aIndex) const in BASE_BEGIN_NAMESPACE() 141 size_type size_; in BASE_BEGIN_NAMESPACE()
|
H A D | vector.h | 70 using size_type = size_t; variable 143 using size_type = allocator::size_type; variable 406 size_type size() const in size() 413 return size_type(-1); in max_size() 426 void reserve(size_type count) in reserve() 431 void resize(size_type count) in resize() 475 reference at(size_type index) in at() 672 size_type size = size_; in append() 694 size_type size = size_; in append() 714 size_type size = size_; in append() [all …]
|
H A D | allocator.h | 28 using size_type = size_t; member 30 void* (*alloc)(void* instance, size_type size) { nullptr }; 81 [](void* instance, allocator::size_type size) -> void* { return ::malloc(size); }, in default_allocator()
|
/ohos5.0/base/update/updateservice/services/firmware/utils/src/ |
H A D | firmware_combine_version_utils.cpp | 40 std::string::size_type start = baseVersion.find(" "); in HandleBaseVersion() 44 std::string::size_type end = baseVersion.find("("); in HandleBaseVersion() 56 std::string::size_type start = baseVersion.find_last_of("("); in HandleBaseVersionLog() 57 std::string::size_type end = baseVersion.find_last_of(")"); in HandleBaseVersionLog() 62 std::string::size_type mid = start; in HandleBaseVersionLog() 88 std::string::size_type mid = custVersion.find_last_of("("); in HandleCustVersion() 89 std::string::size_type end = custVersion.find_last_of(")"); in HandleCustVersion() 90 std::string::size_type start = custVersion.find_last_of("."); in HandleCustVersion() 106 std::string::size_type start = preloadVersion.find_last_of("R"); in HandlePreloadVersion() 107 std::string::size_type end = preloadVersion.find_last_of(")"); in HandlePreloadVersion()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/LumeShaderCompiler/src/ |
H A D | array_view.h | 74 using size_type = size_t; variable 86 …constexpr array_view(pointer aBegin, size_type aSize) noexcept : begin_(aBegin), size_(aSize), end… in array_view() 102 constexpr size_type size() const noexcept in size() 106 constexpr size_type size_bytes() const noexcept in size_bytes() 122 constexpr reference at(size_type aIndex) noexcept in at() 128 constexpr const_reference at(size_type aIndex) const noexcept in at() 134 constexpr reference operator[](size_type aIndex) 140 constexpr const_reference operator[](size_type aIndex) const 176 size_type size_;
|
/ohos5.0/commonlibrary/c_utils/base/src/ |
H A D | string_ex.cpp | 51 string::size_type pos = 0; in ReplaceStr() 68 std::string::size_type firstBound = strTmp.find_first_not_of(cTrim); in TrimStr() 73 std::string::size_type lastBound = strTmp.find_last_not_of(cTrim); in TrimStr() 101 string::size_type pos = strTmp.find(sep); in SplitStr() 205 string::size_type GetFirstSubStrBetween(const string& str, const string& left, in GetFirstSubStrBetween() 208 string::size_type leftPos = str.find(left); in GetFirstSubStrBetween() 213 string::size_type rightPos = str.find(right, leftPos + left.length()); in GetFirstSubStrBetween() 226 string::size_type pos = GetFirstSubStrBetween(strTmp, left, right, subString); in GetSubStrBetween()
|
/ohos5.0/foundation/multimedia/av_session/services/session/server/ |
H A D | avsession_service_ext.cpp | 49 std::string::size_type beginPos = 0; in SuperLauncher() 50 std::string::size_type endPos = extraInfo.find(seperator); in SuperLauncher() 88 std::string::size_type idBeginPos = info.find(":"); in SplitExtraInfo() 93 std::string::size_type nameBeginPos = info.find(":"); in SplitExtraInfo() 98 std::string::size_type typeBeginPos = info.find(":"); in SplitExtraInfo()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | clip_path.cpp | 22 std::string::size_type size = lengths.size(); in SetLength() 55 std::string::size_type size = rounds.size(); in SetRadius() 87 std::string::size_type boxPosition = 0; in GetGeometryBoxType() 88 std::string::size_type tmp = value.find("margin-box"); in GetGeometryBoxType() 112 std::string::size_type first = 0; in GetBasicShapeInfo() 113 std::string::size_type tmp = value.find("inset("); in GetBasicShapeInfo() 153 std::string::size_type atIndex = data.find("at"); in CreateCircle() 183 std::string::size_type atIndex = data.find("at"); in CreateEllipse() 221 std::string::size_type roundIndex = data.find("round"); in CreateInset() 230 std::string::size_type roundDataIndex = roundData.find('/'); in CreateInset()
|
/ohos5.0/foundation/multimedia/player_framework/services/utils/ |
H A D | uri_helper.cpp | 85 std::string_view::size_type start = str.find_first_not_of(' '); in SplitUriHeadAndBody() 86 std::string_view::size_type end = str.find_last_not_of(' '); in SplitUriHeadAndBody() 102 std::string_view::size_type pos = noSpaceStr.find(delimiter); in SplitUriHeadAndBody() 232 static constexpr std::string_view::size_type delim1Len = std::string_view("?offset=").size(); in ParseFdUri() 233 static constexpr std::string_view::size_type delim2Len = std::string_view("&size=").size(); in ParseFdUri() 234 std::string_view::size_type delim1 = uri.find("?"); in ParseFdUri() 235 std::string_view::size_type delim2 = uri.find("&"); in ParseFdUri()
|
/ohos5.0/foundation/filemanagement/user_file_service/interfaces/kits/js/src/common/ |
H A D | file_info_shared_memory.h | 347 std::string::size_type len = inVal.size(); in WriteString() 348 bool ret = WriteInteger<std::string::size_type>(len, memInfo); in WriteString() 369 std::string::size_type len = 0; in ReadString() 370 int ret = ReadInteger<std::string::size_type>(len, memInfo); in ReadString() 394 return sizeof(std::string::size_type) + info.uri.size() + sizeof(std::string::size_type) + in GetFileInfoSize() 395 …info.relativePath.size() + sizeof(std::string::size_type) + info.fileName.size() + sizeof(info.mod… in GetFileInfoSize() 396 … sizeof(info.size) + sizeof(info.mtime) + sizeof(std::string::size_type) + info.mimeType.size(); in GetFileInfoSize()
|
/ohos5.0/foundation/ability/ability_runtime/test/moduletest/mission_dump_test/ |
H A D | mission_dump_test.cpp | 103 std::string::size_type idx; 111 std::string::size_type idx1; 115 std::string::size_type idx2; 161 std::string::size_type idx; 217 std::string::size_type idx; 273 std::string::size_type idx; 330 std::string::size_type idx; 381 std::string::size_type idx; 432 std::string::size_type idx;
|
/ohos5.0/base/notification/common_event_service/frameworks/native/src/ |
H A D | matching_skills.cpp | 166 for (std::vector<std::string>::size_type i = 0; i < entities_.size(); i++) { in Marshalling() 177 for (std::vector<std::string>::size_type i = 0; i < events_.size(); i++) { in Marshalling() 188 for (std::vector<std::string>::size_type i = 0; i < schemes_.size(); i++) { in Marshalling() 214 for (std::vector<std::u16string>::size_type i = 0; i < actionU16Entity.size(); i++) { in ReadFromParcel() 230 for (std::vector<std::u16string>::size_type i = 0; i < actionU16Event.size(); i++) { in ReadFromParcel() 246 for (std::vector<std::u16string>::size_type i = 0; i < actionU16Scheme.size(); i++) { in ReadFromParcel()
|
/ohos5.0/foundation/multimodalinput/input/test/facility/virtual_device/src/ |
H A D | general_device.cpp | 115 std::string::size_type spos = res.find(kname); in GetInputDeviceNodes() 118 std::string::size_type tpos = res.find("\"", spos); in GetInputDeviceNodes() 124 std::string::size_type spos = res.find(kevent); in GetInputDeviceNodes() 130 std::string::size_type tpos = spos + kevent.size(); in GetInputDeviceNodes()
|
/ohos5.0/base/msdp/device_status/tools/vdev/src/ |
H A D | virtual_device.cpp | 96 std::string::size_type spos = res.find(kname); in GetInputDeviceNodes() 99 std::string::size_type tpos = res.find("\"", spos); in GetInputDeviceNodes() 105 std::string::size_type spos = res.find(kevent); in GetInputDeviceNodes() 111 std::string::size_type tpos = spos + kevent.size(); in GetInputDeviceNodes()
|
/ohos5.0/base/powermgr/thermal_manager/utils/native/src/ |
H A D | string_operation.cpp | 36 std::string::size_type begin = str.find_first_not_of(sep); in SplitString() 38 std::string::size_type pos = str.find(sep, begin); in SplitString() 57 std::string::size_type index = 0; in ClearAllSpace()
|
/ohos5.0/foundation/distributeddatamgr/relational_store/interfaces/inner_api/appdatafwk/include/ |
H A D | serializable.h | 33 using size_type = nlohmann::json::size_type; member 101 for (size_type i = 0; i < subNode.size(); ++i) { in GetValue() 111 size_type i = 0; in SetValue()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/src/ |
H A D | file_path.cpp | 130 std::string::size_type lastSeparator = in DirName() 132 std::string::size_type zero = 0; in DirName() 133 std::string::size_type one = 1; in DirName() 134 std::string::size_type two = 2; in DirName() 166 std::string::size_type lastSeparator = in BaseName() 183 std::string::size_type lastStripped = std::string::npos; in StripTrailingSeparatorsInternal() 184 …for (std::string::size_type pos = path_.length(); pos > start && FilePath::IsSeparator(path_[pos -… in StripTrailingSeparatorsInternal()
|
/ohos5.0/base/theme/wallpaper_mgr/utils/include/ |
H A D | concurrent_map.h | 27 using size_type = typename std::map<_Key, _Tp>::size_type; variable 107 size_type Erase(const key_type &key) noexcept in Erase() 125 size_type Size() const noexcept in Size() 133 …size_type EraseIf(const std::function<bool(const key_type &key, mapped_type &value)> &action) noex… in EraseIf()
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/framework/include/common/ |
H A D | concurrent_map.h | 28 using size_type = typename std::map<_Key, _Tp>::size_type; variable 110 size_type Erase(const key_type &key) noexcept in Erase() 128 size_type Size() const noexcept in Size() 136 …size_type EraseIf(const std::function<bool(const key_type &key, mapped_type &value)> &action) noex… in EraseIf()
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/native/remote_uri/ |
H A D | remote_uri.cpp | 80 string::size_type posDatashare = path.find(SCHEME_TAG); in IsRemoteUri() 81 string::size_type posFragment = path.find(FRAGMENT_TAG); in IsRemoteUri() 82 string::size_type posFd = path.find(FD_TAG); in IsRemoteUri()
|
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/native/include/ |
H A D | concurrent_map.h | 34 using size_type = typename std::map<_Key, _Tp>::size_type; variable 164 size_type Erase(const key_type &key) noexcept in Erase() 170 size_type EraseIf(const key_type &key, in EraseIf() 196 size_type Size() const noexcept in Size() 204 …size_type EraseIf(const std::function<bool(const key_type &key, mapped_type &value)> &action) noex… in EraseIf()
|
/ohos5.0/foundation/multimodalinput/input/intention/cooperate/plugin/src/input_event_transmission/ |
H A D | input_event_serialization.cpp | 286 std::set<int32_t>::size_type nPressed = pressedBtns.size(); in SerializePressedButtons() 302 std::set<int32_t>::size_type nPressed; in DeserializePressedButtons() 341 std::vector<int32_t>::size_type nPointers = pointerIds.size(); in SerializePointers() 366 std::vector<int32_t>::size_type nPointers; in DeserializePointers() 388 std::vector<int32_t>::size_type nPressed = pressedKeys.size(); in SerializePressedKeys() 392 for (std::vector<int32_t>::size_type i = 0; i < nPressed; ++i) { in SerializePressedKeys() 405 std::vector<int32_t>::size_type nPressed {}; in DeserializePressedKeys() 430 std::vector<uint8_t>::size_type bufSize = buffer.size(); in SerializeBuffer() 433 for (std::vector<uint8_t>::size_type i = 0; i < bufSize; ++i) { in SerializeBuffer() 446 std::vector<uint8_t>::size_type bufSize {}; in DeserializeBuffer()
|