class ProgramShortname
Defined at line 13 of file ../../src/developer/forensics/crash_reports/program_shortname.h
Public Methods
const std::string & Value ()
Defined at line 24 of file ../../src/developer/forensics/crash_reports/program_shortname.h
std::optional<ProgramShortname> Create (std::string program_name)
Returns std::nullopt if the shortened program name is empty.
Defined at line 49 of file ../../src/developer/forensics/crash_reports/program_shortname.cc
std::string Logname ()
Extract the component name without the ".cm" suffix from |name|, if one is present.
For example `fuchsia-pkg://fuchsia.com/foo-bar#meta/foo_bar.cm` becomes
`foo_bar`.
Defined at line 58 of file ../../src/developer/forensics/crash_reports/program_shortname.cc