Home | History | Annotate | Download | only in common

Lines Matching refs:string

27 #include <string>
51 // Formats |vec_str| as a string of the form ["<elem1>", "<elem2>"].
53 std::string StringVectorToString(const std::vector<std::string> &vec_str);
56 std::string CalculateP2PFileId(const brillo::Blob& payload_hash,
61 std::string ParseECVersion(std::string input_line);
99 bool ReadFile(const std::string& path, brillo::Blob* out_p);
100 bool ReadFile(const std::string& path, std::string* out_p);
101 bool ReadFileChunk(const std::string& path, off_t offset, off_t size,
107 bool ReadPipe(const std::string& cmd, std::string* out_p);
117 off_t FileSize(const std::string& path);
120 std::string ErrnoNumberAsString(int err);
148 bool MakeTempFile(const std::string& base_filename_template,
149 std::string* filename,
160 bool SplitPartitionName(const std::string& partition_name,
161 std::string* out_disk_name,
168 // Returns empty string when invalid parameters are passed in
169 std::string MakePartitionName(const std::string& disk_name,
177 // /dev/sda3. Return empty string on error.
178 std::string MakePartitionNameForMount(const std::string& part_name);
182 bool SetBlockDeviceReadOnly(const std::string& device, bool read_only);
188 bool MountFilesystem(const std::string& device,
189 const std::string& mountpoint,
191 const std::string& type,
192 const std::string& fs_mount_options);
193 bool UnmountFilesystem(const std::string& mountpoint);
199 bool IsMountpoint(const std::string& mountpoint);
201 // Returns a human-readable string with the file format based on magic constants
203 std::string GetFileFormat(const std::string& path);
205 // Returns the string representation of the given UTC time.
207 std::string ToString(const base::Time utc_time);
210 std::string ToString(bool b);
212 // Returns a string representation of the given enum.
213 std::string ToString(DownloadSource source);
215 // Returns a string representation of the given enum.
216 std::string ToString(PayloadType payload_type);
222 // Log a string in hex to LOG(INFO). Useful for debugging.
224 inline void HexDumpString(const std::string& str) {
273 std::string FormatSecs(unsigned secs);
282 std::string FormatTimeDelta(base::TimeDelta delta);
296 bool DecodeAndStoreBase64String(const std::string& base64_encoded,
325 bool ReadExtents(const std::string& path, const std::vector<Extent>& extents,
332 bool GetBootId(std::string* boot_id);
355 explicit ScopedPathUnlinker(const std::string& path)
366 const std::string path_;
405 std::string _msg = \
425 std::string _msg = \