in include/aws/crt/StringView.h [286:310]
size_type rfind(CharT c, size_type pos = npos) const noexcept
{
if (m_size <= 0)
{
return npos;
}
if (pos < m_size)
{
++pos;
}
else
{
pos = m_size;
}
for (const CharT *ptr = m_data + pos; ptr != m_data;)
{
if (Traits::eq(*--ptr, c))
{
return static_cast<size_type>(ptr - m_data);
}
}
return npos;
}