Lines Matching refs:str
67 bool XmlParser::TransStrAsRange(const std::string &str, Range &range) const
69 CHECK_AND_RETURN_RET_LOG(str != "null", false, "str is null");
70 CHECK_AND_RETURN_RET_LOG(str != "", false, "str is empty");
71 size_t pos = str.find("-");
72 if (pos != str.npos && pos + 1 < str.size()) {
73 std::string head = str.substr(0, pos);
74 std::string tail = str.substr(pos + 1);
83 MEDIA_LOGD("Can not find the delimiter of \"-\" in : %{public}s", str.c_str());
96 "call StrToInt func false, input str is: %{public}s", iter->c_str());
102 bool XmlParser::SpiltKeyList(const std::string &str, const std::string &delim,
105 CHECK_AND_RETURN_RET_LOG(str != "", false, "str is null");
106 std::string strAddDelim = str;
107 if (str.back() != delim.back()) {
108 strAddDelim = str + delim;