// pDest is Null-terminated. static void CopyFontFamilyName(char16_t* pDest, const WTF::AtomicString& name) { size_t numCharsToCopy = eastl::min_alt<size_t>(name.length(), EA::WebKit::kFamilyNameCapacity - 1); EAW_ASSERT_MSG(numCharsToCopy < EA::WebKit::kFamilyNameCapacity, "Font family name too long. Font is not going to be detected properly"); EA::Internal::Strncpy(pDest, name.characters(),numCharsToCopy); pDest[numCharsToCopy] = 0; }
WebDOMString::WebDOMString(const WTF::AtomicString& s) : m_private(0) { assign(s.string()); }
WebString::WebString(const WTF::AtomicString& s) { assign(s.string()); }
void DOMTokenList::add(const WTF::AtomicString& token, ExceptionCode& ec) { addInternal(&token.string(), 1, ec); }
void DOMTokenList::remove(const WTF::AtomicString& token, ExceptionCode& ec) { removeInternal(&token.string(), 1, ec); }