void HTMLLinkElement::parseSizesAttribute(const AtomicString& value, Vector<IntSize>& iconSizes) { ASSERT(iconSizes.isEmpty()); if (value.isEmpty()) return; if (value.is8Bit()) parseSizes(value.characters8(), value.length(), iconSizes); else parseSizes(value.characters16(), value.length(), iconSizes); }
bool Document::parseQualifiedName(const AtomicString& qualifiedName, AtomicString& prefix, AtomicString& localName, ExceptionState& exceptionState) { unsigned length = qualifiedName.length(); if (!length) { exceptionState.ThrowDOMException(InvalidCharacterError, "The qualified name provided is empty."); return false; } if (qualifiedName.is8Bit()) return parseQualifiedNameInternal(qualifiedName, qualifiedName.characters8(), length, prefix, localName, exceptionState); return parseQualifiedNameInternal(qualifiedName, qualifiedName.characters16(), length, prefix, localName, exceptionState); }
static inline bool containsHTMLSpace(const AtomicString& string) { if (LIKELY(string.is8Bit())) return containsHTMLSpaceTemplate<LChar>(string.characters8(), string.length()); return containsHTMLSpaceTemplate<UChar>(string.characters16(), string.length()); }