Lines Matching defs:str
74 bool Utility::StartWith(const char *str, const char *prefix)
77 return (prefixlen > 0 ? (strncmp(str, prefix, strlen(prefix)) == 0) : false);
80 bool Utility::StartWith(const std::string &str, const std::string &prefix)
82 if (str.size() < prefix.size()) {
85 return (str.compare(0, prefix.size(), prefix) == 0);
104 void Utility::RemoveSpace(std::string &str)
106 str.erase(remove_if(str.begin(), str.end(), [](unsigned char c) { return std::isspace(c);}), str.end());
184 FI_HILOGD("%{public}20s:%{public}s", "PERMISSIONS", ss.str().c_str());