예제 #1
0
bool MatchPattern(const base::StringPiece& eval,
                  const base::StringPiece& pattern)
{
    return MatchPatternT(eval.data(), eval.data()+eval.size(),
        pattern.data(), pattern.data()+pattern.size(),
        0, NextCharUTF8());
}
std::wstring UTF8ToWide(const base::StringPiece& utf8)
{
    std::wstring ret;
    UTF8ToWide(utf8.data(), utf8.length(), &ret);
    return ret;
}