Lines Matching refs:str
58 bool StrToInt(const std::string_view& str, T& value)
60 if (str.empty() || (!isdigit(str.front()) && (str.front() != '-'))) {
63 std::string valStr(str);
69 "call StrToInt func false, input str is: %{public}s!", valStr.c_str());
71 "call StrToInt func false, input str is: %{public}s!", valStr.c_str());
74 "call StrToInt func false, input str is: %{public}s!", valStr.c_str());
83 std::pair<std::string_view, std::string_view> SplitUriHeadAndBody(const std::string_view &str)
85 std::string_view::size_type start = str.find_first_not_of(' ');
86 std::string_view::size_type end = str.find_last_not_of(' ');
95 noSpaceStr = str.substr(start);
98 noSpaceStr = str.substr(start, end - start + 1);