• Home
  • Raw
  • Download

Lines Matching refs:string

94 std::string CanonicalizeSpecPath(const char* src);
95 const std::string EMPTY_STRING = "";
97 const std::string USER_DOMESTIC_BETA = "beta";
100 static const std::string USER_TYPE_PARAM = "const.logsystem.versiontype";
101 static const std::string USER_TYPE_PARAM_GET = "";
102 static const std::string SAVED_CMDLINES = "/sys/kernel/tracing/saved_cmdlines";
135 std::string StringReplace(std::string source, const std::string &from, const std::string &to);
138 std::string VectorToString(const std::vector<T> &items) in VectorToString()
140 if constexpr (std::is_same<T, std::vector<std::string>>::value) { in VectorToString()
141 std::vector<std::string> stringItems; in VectorToString()
147 std::string itemsString; in VectorToString()
148 const std::string split = ","; in VectorToString()
152 if constexpr (std::is_same<T, std::string>::value) { in VectorToString()
164 std::string BufferToHexString(const std::vector<unsigned char> &vec);
165 std::string BufferToHexString(const unsigned char buf[], size_t size);
168 std::string &StringTrim(std::string &s);
170 std::vector<std::string> StringSplit(std::string source, const std::string split = ",");
172 size_t SubStringCount(const std::string &source, const std::string &sub);
174 bool StringStartsWith(const std::string &string, const std::string &with);
176 bool StringEndsWith(const std::string &string, const std::string &with);
178 bool IsSameCommand(const std::string &cmdLine, const std::string &cmdName);
182 bool IsDigits(const std::string &str);
184 bool IsHexDigits(const std::string &str);
188 bool CompressFile(const std::string &dataFile, const std::string &destFile);
190 bool UncompressFile(const std::string &gzipFile, const std::string &dataFile);
193 std::string StringPrintf(const char *stringFormat, VA... args) in StringPrintf()
210 return std::string(bytes); in StringPrintf()
214 std::vector<std::string> GetEntriesInDir(const std::string &basePath);
216 std::vector<std::string> GetSubDirs(const std::string &basePath);
219 bool IsDir(const std::string &path);
221 bool IsPath(const std::string &fileName);
230 const std::string PATH_SEPARATOR_STR = std::string(1, PATH_SEPARATOR);
232 std::string PlatformPathConvert(const std::string &path);
248 std::string ToHex(const T &source, int size = sizeof(T), bool prefix = false)
273 bool ReadIntFromProcFile(const std::string &path, int &value);
274 bool WriteIntToProcFile(const std::string &path, int value);
275 std::string ReadFileToString(const std::string &fileName);
276 bool ReadFileToString(const std::string &fileName, std::string &content, size_t fileSize = 0);
277 bool WriteStringToFile(const std::string &fileName, const std::string &value);
286 StdoutRecord(const std::string &tempFile = EMPTY_STRING,
287 const std::string &mode = EMPTY_STRING);
290 std::string Stop();
296 std::string content_ = EMPTY_STRING;
311 const std::string HMKERNEL = "hmkernel";
333 pid_t GetAppPackagePid(const std::string &appPackage, const pid_t oldPid, const int checkAppMs,
335 bool IsRestarted(const std::string &appPackage);
336 void CollectPidsByAppname(std::set<pid_t> &pids, const std::string &appPackage);
337 bool CheckAppIsRunning (std::vector<pid_t> &selectPids, const std::string &appPackage, int checkApp…
339 const std::string GetUserType();
340 std::string GetProcessName(int pid);
342 bool NeedAdaptHMBundlePath(std::string& filename, const std::string& threadname);