static bool HasStringPrefix(const nsCString& str, const nsACString& prefix) { return str.Compare(prefix.BeginReading(), false, prefix.Length()) == 0; }