Home
last modified time | relevance | path

Searched refs:string_view (Results 1 – 25 of 309) sorted by relevance

12345678910>>...13

/openbmc/bmcweb/redfish-core/include/
H A Derror_messages.hpp86 nlohmann::json propertyDuplicate(std::string_view arg1);
88 void propertyDuplicate(crow::Response& res, std::string_view arg1);
98 nlohmann::json propertyUnknown(std::string_view arg1);
100 void propertyUnknown(crow::Response& res, std::string_view arg1);
112 std::string_view arg2);
115 std::string_view arg2);
127 std::string_view arg2);
130 std::string_view arg2);
142 std::string_view arg2);
145 std::string_view arg2);
[all …]
H A Dresource_messages.hpp32 nlohmann::json resourceErrorsDetected(std::string_view arg1,
33 std::string_view arg2);
35 nlohmann::json resourceErrorsCorrected(std::string_view arg1,
36 std::string_view arg2);
38 nlohmann::json resourceErrorThresholdExceeded(std::string_view arg1,
39 std::string_view arg2);
42 resourceErrorThresholdCleared(std::string_view arg1, std::string_view arg2);
44 nlohmann::json resourceWarningThresholdExceeded(std::string_view arg1,
45 std::string_view arg2);
47 nlohmann::json resourceWarningThresholdCleared(std::string_view arg1,
[all …]
H A Dtask_messages.hpp28 nlohmann::json taskStarted(std::string_view arg1);
30 nlohmann::json taskCompletedOK(std::string_view arg1);
32 nlohmann::json taskCompletedWarning(std::string_view arg1);
34 nlohmann::json taskAborted(std::string_view arg1);
36 nlohmann::json taskCancelled(std::string_view arg1);
38 nlohmann::json taskRemoved(std::string_view arg1);
40 nlohmann::json taskPaused(std::string_view arg1);
42 nlohmann::json taskResumed(std::string_view arg1);
44 nlohmann::json taskProgressChanged(std::string_view arg1, uint64_t arg2);
/openbmc/bmcweb/redfish-core/src/
H A Dresource_messages.cpp35 std::span<const std::string_view> args) in getLog()
80 nlohmann::json resourceErrorsDetected(std::string_view arg1, in resourceErrorsDetected()
81 std::string_view arg2) in resourceErrorsDetected()
95 nlohmann::json resourceErrorsCorrected(std::string_view arg1, in resourceErrorsCorrected()
96 std::string_view arg2) in resourceErrorsCorrected()
111 resourceErrorThresholdExceeded(std::string_view arg1, std::string_view arg2) in resourceErrorThresholdExceeded()
126 resourceErrorThresholdCleared(std::string_view arg1, std::string_view arg2) in resourceErrorThresholdCleared()
140 nlohmann::json resourceWarningThresholdExceeded(std::string_view arg1, in resourceWarningThresholdExceeded()
141 std::string_view arg2) in resourceWarningThresholdExceeded()
155 nlohmann::json resourceWarningThresholdCleared(std::string_view arg1, in resourceWarningThresholdCleared()
[all …]
H A Derror_messages.cpp135 std::string_view fieldPath) in addMessageToJson()
152 std::span<const std::string_view> args) in getLog()
241 nlohmann::json propertyDuplicate(std::string_view arg1) in propertyDuplicate()
247 void propertyDuplicate(crow::Response& res, std::string_view arg1) in propertyDuplicate()
260 nlohmann::json propertyUnknown(std::string_view arg1) in propertyUnknown()
266 void propertyUnknown(crow::Response& res, std::string_view arg1) in propertyUnknown()
280 std::string_view arg2) in propertyValueTypeError()
285 std::to_array<std::string_view>({arg1Str, arg2})); in propertyValueTypeError()
289 std::string_view arg2) in propertyValueTypeError()
303 std::string_view arg2) in propertyValueFormatError()
[all …]
H A Dtask_messages.cpp37 std::span<const std::string_view> args) in getLog()
56 nlohmann::json taskStarted(std::string_view arg1) in taskStarted()
69 nlohmann::json taskCompletedOK(std::string_view arg1) in taskCompletedOK()
82 nlohmann::json taskCompletedWarning(std::string_view arg1) in taskCompletedWarning()
95 nlohmann::json taskAborted(std::string_view arg1) in taskAborted()
108 nlohmann::json taskCancelled(std::string_view arg1) in taskCancelled()
121 nlohmann::json taskRemoved(std::string_view arg1) in taskRemoved()
134 nlohmann::json taskPaused(std::string_view arg1) in taskPaused()
147 nlohmann::json taskResumed(std::string_view arg1) in taskResumed()
160 nlohmann::json taskProgressChanged(std::string_view arg1, uint64_t arg2) in taskProgressChanged()
[all …]
/openbmc/sdbusplus/include/sdbusplus/bus/
H A Dmatch.hpp81 constexpr auto sender(std::string_view s) noexcept in sender()
85 constexpr auto interface(std::string_view s) noexcept in interface()
89 constexpr auto member(std::string_view s) noexcept in member()
93 constexpr auto path(std::string_view s) noexcept in path()
97 constexpr auto path_namespace(std::string_view s) noexcept in path_namespace()
101 constexpr auto destination(std::string_view s) noexcept in destination()
105 inline auto argN(size_t n, std::string_view s) noexcept in argN()
109 inline auto argNpath(size_t n, std::string_view s) noexcept in argNpath()
116 constexpr auto arg0namespace(std::string_view s) noexcept in arg0namespace()
140 constexpr auto interfacesAdded(std::string_view p) noexcept in interfacesAdded()
[all …]
/openbmc/phosphor-networkd/src/
H A Dconfig_parser.hpp19 bool icaseeq(std::string_view in, std::string_view expected) noexcept;
21 std::optional<bool> parseBool(std::string_view in) noexcept;
25 fs::path pathForIntfConf(const fs::path& dir, std::string_view intf);
26 fs::path pathForIntfDev(const fs::path& dir, std::string_view intf);
80 void operator()(std::string_view s);
84 void operator()(std::string_view s);
88 void operator()(std::string_view s);
91 struct string_hash : public std::hash<std::string_view>
98 return static_cast<const std::hash<std::string_view>&>(*this)(t.get()); in operator ()()
103 return static_cast<const std::hash<std::string_view>&>(*this)(t); in operator ()()
[all …]
H A Dutil.cpp78 std::string_view getIgnoredInterfacesEnv() in getIgnoredInterfacesEnv()
89 std::unordered_set<std::string_view>
90 parseInterfaces(std::string_view interfaces) in parseInterfaces()
92 std::unordered_set<std::string_view> result; in parseInterfaces()
119 const std::unordered_set<std::string_view>& getIgnoredInterfaces() in getIgnoredInterfaces()
127 std::optional<std::string> interfaceToUbootEthAddr(std::string_view intf) in interfaceToUbootEthAddr()
152 static std::optional<DHCPVal> systemdParseDHCP(std::string_view str) in systemdParseDHCP()
170 std::string_view section, std::string_view key, in systemdParseLast()
194 return decltype(fun(std::string_view{}))(std::nullopt); in systemdParseLast()
216 std::string_view key) in getDHCPProp()
[all …]
H A Dutil.hpp26 constexpr stdplus::InAnyAddr addrFromBuf(int family, std::string_view buf) in addrFromBuf()
44 std::optional<std::string> interfaceToUbootEthAddr(std::string_view intf);
73 std::string_view key);
85 std::string_view getIgnoredInterfacesEnv();
88 std::unordered_set<std::string_view>
89 parseInterfaces(std::string_view interfaces);
92 const std::unordered_set<std::string_view>& getIgnoredInterfaces();
H A Dconfig_parser.cpp26 bool icaseeq(std::string_view in, std::string_view expected) noexcept in icaseeq()
32 std::optional<bool> parseBool(std::string_view in) noexcept in parseBool()
47 fs::path pathForIntfConf(const fs::path& dir, std::string_view intf) in pathForIntfConf()
52 fs::path pathForIntfDev(const fs::path& dir, std::string_view intf) in pathForIntfDev()
58 std::string_view section, std::string_view key) const noexcept in getLastValueString()
77 std::vector<std::string> SectionMap::getValueStrings(std::string_view section, in getValueStrings()
78 std::string_view key) const in getValueStrings()
84 void KeyCheck::operator()(std::string_view s) in operator ()()
96 void SectionCheck::operator()(std::string_view s) in operator ()()
108 void ValueCheck::operator()(std::string_view s) in operator ()()
[all …]
H A Drtnetlink.hpp11 InterfaceInfo intfFromRtm(std::string_view msg);
14 gatewayFromRtm(std::string_view msg);
16 AddressInfo addrFromRtm(std::string_view msg);
18 NeighborInfo neighFromRtm(std::string_view msg);
/openbmc/phosphor-networkd/test/
H A Dtest_netlink.cpp30 std::string_view data(buf, sizeof(buf)); in TEST()
33 auto cb = [&](const nlmsghdr&, std::string_view) { cbCalls++; }; in TEST() argument
45 std::string_view data(reinterpret_cast<char*>(&hdr), NLMSG_SPACE(0)); in TEST()
48 auto cb = [&](const nlmsghdr&, std::string_view) { cbCalls++; }; in TEST() argument
60 std::string_view data(reinterpret_cast<char*>(&hdr), NLMSG_SPACE(0)); in TEST()
63 auto cb = [&](const nlmsghdr&, std::string_view) { cbCalls++; }; in TEST() argument
76 std::string_view data(reinterpret_cast<char*>(&hdr), NLMSG_SPACE(0)); in TEST()
79 auto cb = [&](const nlmsghdr&, std::string_view) { cbCalls++; }; in TEST() argument
97 std::string_view data(reinterpret_cast<char*>(&buf), sizeof(buf)); in TEST()
100 auto cb = [&](const nlmsghdr&, std::string_view) { cbCalls++; }; in TEST() argument
[all …]
/openbmc/bmcweb/test/include/
H A Dmultipart_test.cpp26 std::string_view body = in TEST_F()
67 std::string_view body = in TEST_F()
86 std::string_view body = in TEST_F()
104 std::string_view body = in TEST_F()
124 std::string_view body = in TEST_F()
143 std::string_view body = in TEST_F()
163 std::string_view body = in TEST_F()
183 std::string_view body = in TEST_F()
202 std::string_view body = in TEST_F()
221 std::string_view body = in TEST_F()
[all …]
/openbmc/bmcweb/http/
H A Dhttp_request.hpp42 Request(std::string_view bodyIn, std::error_code& /*ec*/) : req({}, bodyIn) in Request()
54 void addHeader(std::string_view key, std::string_view value) in addHeader()
59 void addHeader(boost::beast::http::field key, std::string_view value) in addHeader()
84 std::string_view methodString() in methodString()
89 std::string_view getHeaderValue(std::string_view key) const in getHeaderValue()
94 std::string_view getHeaderValue(boost::beast::http::field key) const in getHeaderValue()
104 std::string_view methodString() const in methodString()
109 std::string_view target() const in target()
129 bool target(std::string_view target) in target()
H A Dmutual_tls_meta.hpp10 inline std::optional<std::string_view>
11 mtlsMetaParseSslUser(std::string_view sslUser) in mtlsMetaParseSslUser()
24 if (colonIndex == std::string_view::npos) in mtlsMetaParseSslUser()
31 std::string_view entityType = sslUser.substr(0, colonIndex); in mtlsMetaParseSslUser()
43 std::string_view entity; in mtlsMetaParseSslUser()
44 if (slashIndex == std::string_view::npos) in mtlsMetaParseSslUser()
H A Dutility.hpp33 constexpr uint64_t getParameterTag(std::string_view url) in getParameterTag()
36 size_t urlSegmentIndex = std::string_view::npos; in getParameterTag()
43 if (urlSegmentIndex != std::string_view::npos) in getParameterTag()
51 if (urlSegmentIndex == std::string_view::npos) in getParameterTag()
55 std::string_view tag = in getParameterTag()
66 urlSegmentIndex = std::string_view::npos; in getParameterTag()
69 if (urlSegmentIndex != std::string_view::npos) in getParameterTag()
114 void encode(std::string_view data, std::string& output) in encode()
195 inline std::string base64encode(std::string_view data) in base64encode()
208 inline bool base64Decode(std::string_view input, std::string& output) in base64Decode()
[all …]
/openbmc/google-misc/subprojects/metrics-ipmi-blobs/
H A Dutil.hpp41 TcommUtimeStime parseTcommUtimeStimeString(std::string_view content,
43 std::string readFileThenGrepIntoString(std::string_view fileName,
44 std::string_view grepStr = "");
45 bool isNumericPath(std::string_view path, int& value);
48 bool parseMeminfoValue(std::string_view content, std::string_view keyword,
50 bool parseProcUptime(const std::string_view content, double& uptime,
56 std::string trimStringRight(std::string_view s);
/openbmc/openbmc/meta-openembedded/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/
H A D0001-asio-Dont-use-experimental-with-clang.patch11 src/third_party/asio-master/asio/include/asio/detail/string_view.hpp | 4 ++--
14 …io-master/asio/include/asio/detail/string_view.hpp b/src/third_party/asio-master/asio/include/asio…
16 --- a/src/third_party/asio-master/asio/include/asio/detail/string_view.hpp
17 +++ b/src/third_party/asio-master/asio/include/asio/detail/string_view.hpp
20 using std::string_view;
23 -using std::experimental::string_view;
25 +using std::string_view;
/openbmc/bmcweb/redfish-core/include/utils/
H A Ddbus_utils.hpp52 std::string_view redfishPropertyName, std::string_view processName, in setDbusProperty()
53 const sdbusplus::message::object_path& path, std::string_view interface, in setDbusProperty()
54 std::string_view dbusProperty, const PropertyType& prop) in setDbusProperty()
74 std::string_view processName, const sdbusplus::message::object_path& path, in setDbusPropertyAction()
75 std::string_view interface, std::string_view dbusProperty, in setDbusPropertyAction()
76 std::string_view redfishActionParameterName, in setDbusPropertyAction()
77 std::string_view redfishActionName, const DbusPropertyType& prop) in setDbusPropertyAction()
/openbmc/telemetry/src/utils/
H A Dmake_id_name.cpp26 std::string generateId(std::string_view idIn, std::string_view nameIn, in generateId()
27 std::string_view defaultName, in generateId()
55 std::string_view::npos; in generateId()
87 makeIdName(std::string_view id, std::string_view name, in makeIdName()
88 std::string_view defaultName, in makeIdName()
H A Dconversion.hpp26 constexpr operator std::string_view() const in operator std::string_view()
34 [[noreturn]] inline void throwConversionError(std::string_view propertyName) in throwConversionError()
61 minEnumValue(std::array<std::pair<std::string_view, T>, N> data) in minEnumValue() argument
76 maxEnumValue(std::array<std::pair<std::string_view, T>, N> data) in maxEnumValue() argument
90 inline T toEnum(const std::array<std::pair<std::string_view, T>, N>& data, in toEnum() argument
104 inline std::string_view
105 enumToString(const std::array<std::pair<std::string_view, T>, N>& data, in enumToString() argument
/openbmc/telemetry/src/types/
H A Doperation_type.hpp26 constexpr std::array<std::pair<std::string_view, OperationType>, 4>
28 {std::make_pair<std::string_view, OperationType>(
31 std::make_pair<std::string_view, OperationType>(
34 std::make_pair<std::string_view, OperationType>(
37 std::make_pair<std::string_view, OperationType>(
/openbmc/estoraged/include/
H A Dsanitize.hpp30 virtual int doIoctl(std::string_view devPath, unsigned long request,
40 virtual int doIoctlMulti(std::string_view devPath, unsigned long request,
56 int doIoctl(std::string_view devPath, unsigned long request,
58 int doIoctlMulti(std::string_view devPath, unsigned long request,
79 Sanitize(std::string_view inDevPath, in Sanitize()
/openbmc/bmcweb/include/
H A Dauthentication.hpp23 const boost::asio::ip::address& clientIp, std::string_view authHeader) in performBasicAuth()
32 std::string_view param = authHeader.substr(strlen("Basic ")); in performBasicAuth()
90 performTokenAuth(std::string_view authHeader) in performTokenAuth()
97 std::string_view token = authHeader.substr(strlen("Token ")); in performTokenAuth()
108 std::string_view token = reqHeader["X-Auth-Token"]; in performXtokenAuth()
128 std::string_view cookieValue = it->value(); in performCookieAuth()
144 std::string_view authKey = in performCookieAuth()
161 std::string_view csrf = reqHeader["X-XSRF-TOKEN"]; in performCookieAuth()
201 inline bool isOnAllowlist(std::string_view url, boost::beast::http::verb method) in isOnAllowlist()
273 std::string_view authHeader = reqHeader["Authorization"]; in authenticate()

12345678910>>...13