• Home
  • Raw
  • Download

Lines Matching refs:string

93 std::string CanonicalizeSpecPath(const char* src);
94 const std::string EMPTY_STRING = "";
96 const std::string USER_DOMESTIC_BETA = "beta";
99 static const std::string USER_TYPE_PARAM = "const.logsystem.versiontype";
100 static const std::string USER_TYPE_PARAM_GET = "";
134 std::string StringReplace(std::string source, const std::string &from, const std::string &to);
137 std::string VectorToString(const std::vector<T> &items) in VectorToString()
139 if constexpr (std::is_same<T, std::vector<std::string>>::value) { in VectorToString()
140 std::vector<std::string> stringItems; in VectorToString()
146 std::string itemsString; in VectorToString()
147 const std::string split = ","; in VectorToString()
151 if constexpr (std::is_same<T, std::string>::value) { in VectorToString()
163 std::string BufferToHexString(const std::vector<unsigned char> &vec);
164 std::string BufferToHexString(const unsigned char buf[], size_t size);
167 std::string &StringTrim(std::string &s);
169 std::vector<std::string> StringSplit(std::string source, const std::string split = ",");
171 size_t SubStringCount(const std::string &source, const std::string &sub);
173 bool StringStartsWith(const std::string &string, const std::string &with);
175 bool StringEndsWith(const std::string &string, const std::string &with);
177 bool IsSameCommand(const std::string &cmdLine, const std::string &cmdName);
181 bool IsDigits(const std::string &str);
183 bool IsHexDigits(const std::string &str);
187 bool CompressFile(const std::string &dataFile, const std::string &destFile);
189 bool UncompressFile(const std::string &gzipFile, const std::string &dataFile);
192 std::string StringPrintf(const char *stringFormat, VA... args) in StringPrintf()
209 return std::string(bytes); in StringPrintf()
213 std::vector<std::string> GetEntriesInDir(const std::string &basePath);
215 std::vector<std::string> GetSubDirs(const std::string &basePath);
218 bool IsDir(const std::string &path);
220 bool IsPath(const std::string &fileName);
229 const std::string PATH_SEPARATOR_STR = std::string(1, PATH_SEPARATOR);
231 std::string PlatformPathConvert(const std::string &path);
247 std::string ToHex(const T &source, int size = sizeof(T), bool prefix = false)
272 bool ReadIntFromProcFile(const std::string &path, int &value);
273 bool WriteIntToProcFile(const std::string &path, int value);
274 std::string ReadFileToString(const std::string &fileName);
275 bool ReadFileToString(const std::string &fileName, std::string &content, size_t fileSize = 0);
276 bool WriteStringToFile(const std::string &fileName, const std::string &value);
285 StdoutRecord(const std::string &tempFile = EMPTY_STRING,
286 const std::string &mode = EMPTY_STRING);
289 std::string Stop();
295 std::string content_ = EMPTY_STRING;
330 pid_t GetAppPackagePid(const std::string &appPackage, const pid_t oldPid, const int checkAppMs,
332 bool IsNeedCheckSamePid(const std::string &fileName, const std::string &appPackage, const std::stri…
334 bool CheckAppIsRunning (std::vector<pid_t> &selectPids, const std::string &appPackage, int checkApp…
335 bool IsExistDebugByApp(const std::string& bundleName);
338 const std::string GetUserType();
339 std::string GetProcessName(int pid);
340 bool IsDebugableApp(const std::string& bundleName);
342 std::string AdaptSandboxPath(std::string filePath, int pid);