コード例 #1
0
ファイル: CachedScript.cpp プロジェクト: FilipBE/qtextended
CachedScript::CachedScript(DocLoader* dl, const String& url, const String& charset)
    : CachedResource(url, Script)
    , m_encoding(charset)
{
    // It's javascript we want.
    // But some websites think their scripts are <some wrong mimetype here>
    // and refuse to serve them if we only accept application/x-javascript.
    setAccept("*/*");
    // load the file
    cache()->loader()->load(dl, this, false);
    m_loading = true;
    if (!m_encoding.isValid())
        m_encoding = Latin1Encoding();
}
コード例 #2
0
ファイル: FormData.cpp プロジェクト: Zirias/webkitfltk
String FormData::flattenToString() const
{
    Vector<char> bytes;
    flatten(bytes);
    return Latin1Encoding().decode(reinterpret_cast<const char*>(bytes.data()), bytes.size());
}
コード例 #3
0
String FormData::flattenToString() const
{
    Vector<char> bytes;
    flatten(bytes);
    return Latin1Encoding().decode(bytes.data(), bytes.size());
}
コード例 #4
0
CString String::latin1() const
{
    return Latin1Encoding().encode(characters(), length(), QuestionMarksForUnencodables);
}
コード例 #5
0
ファイル: String.cpp プロジェクト: jackiekaon/owb-mirror
CString String::latin1() const
{
    return Latin1Encoding().encode(characters(), length());
}