src/developer/debug/zxdb/symbols/module_symbols_impl.cc
std::optional<std::string> GetPLTInputLocation(const InputLocation& loc) {
  if (loc.type != InputLocation::Type::kName || loc.name.components().size() != 1)
    return std::nullopt;

  const IdentifierComponent& comp = loc.name.components()[0];
  if (!StringEndsWith(comp.name(), "@plt"))
    return std::nullopt;

  return comp.name().substr(0, comp.name().size() - 4);
}
// Determines if the given input location references a PLT symbol. If it does, returns the name of
// that symbol (with the "@plt" annotation stripped). If it does not, returns a null optional.
Determines if the given input location references a PLT symbol. If it does, returns the name of
that symbol (with the "@plt" annotation stripped). If it does not, returns a null optional.
Determines if the given input location references a PLT symbol . If it does returns the name of that symbol ( with the " @plt " annotation stripped ) . If it does not returns a null optional .
std::optional<std::string> GetPLTInputLocation(const InputLocation& loc) {
  if (loc.type != InputLocation::Type::kName || loc.name.components().size() != 1)
    return std::nullopt;
  const IdentifierComponent& comp = loc.name.components()[0];
  if (!StringEndsWith(comp.name(), "@plt"))
    return std::nullopt;
  return comp.name().substr(0, comp.name().size() - 4);
}
std :: optional < std :: string > GetPLTInputLocation ( const InputLocation & loc ) { if ( loc . type != InputLocation :: Type :: kName || loc . name . components ( ) . size ( ) != 1 ) return std :: nullopt ; const IdentifierComponent & comp = loc . name . components ( ) [ 0 ] ; if ( ! StringEndsWith ( comp . name ( ) , " " ) ) return std :: nullopt ; return comp . name ( ) . substr ( 0 , comp . name ( ) . size ( ) - 4 ) ; }
Determines if the given input location references a PLT symbol.
Determines if the given input location references a PLT symbol .