42 bool SymbolName::Parse(
const std::filesystem::path& path,
const std::string& line,
int lineNumber)
44 std::stringstream lineStream(line);
48 if (!std::getline(lineStream, token,
' '))
53 if (!token.empty() && token[0] ==
'$')
57 m_index = std::stoi(token.substr(1));
64 catch (
const std::invalid_argument&)
69 catch (
const std::out_of_range&)
76 if (!std::getline(lineStream, token,
' ') || token.empty())
90 if (std::getline(lineStream, token,
' '))
std::string ToUtf8(std::string_view input)
Converts input to valid UTF-8.