void FrameWin::setStatusBarText(const String& status) { String text = status; text.replace('\\', backslashAsCurrencySymbol()); m_client->setStatusText(text); }
void FrameWin::setTitle(const String &title) { String text = title; text.replace('\\', backslashAsCurrencySymbol()); m_client->setTitle(text); }
bool FrameWin::runJavaScriptConfirm(String const& message) { String text = message; text.replace('\\', backslashAsCurrencySymbol()); UChar nullChar = 0; text += String(&nullChar, 1); return MessageBox(view()->windowHandle(), text.characters(), L"JavaScript Alert", MB_OKCANCEL) == IDOK; }
void FrameWin::runJavaScriptAlert(String const& message) { String text = message; text.replace('\\', backslashAsCurrencySymbol()); UChar nullChar = 0; text += String(&nullChar, 1); MessageBox(view()->windowHandle(), text.characters(), L"JavaScript Alert", MB_OK); }
TextEncoding::TextEncoding(const String& name) : m_name(atomicCanonicalTextEncodingName(name)) , m_backslashAsCurrencySymbol(backslashAsCurrencySymbol()) { // Aliases are valid, but not "replacement" itself. if (m_name && isReplacementEncoding(name)) m_name = nullptr; }
TextEncoding::TextEncoding(const String& name) : m_name(atomicCanonicalTextEncodingName(name)) , m_backslashAsCurrencySymbol(backslashAsCurrencySymbol()) { }
TextEncoding::TextEncoding(const String& name) : m_name(atomicCanonicalTextEncodingName(name.characters(), name.length())) , m_backslashAsCurrencySymbol(backslashAsCurrencySymbol()) { }