/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
int32_t nsHtml5Portability::checkedAdd(int32_t a, int32_t b) {
mozilla::CheckedInt<int32_t> sum(a);
sum += b;
MOZ_RELEASE_ASSERT(sum.isValid(), "HTML input too large for signed 32-bit integer."); return sum.value();
}
nsAtom* nsHtml5Portability::newLocalNameFromBuffer(char16_t* buf,
int32_t length,
nsHtml5AtomTable* interner) {
NS_ASSERTION(interner, "Didn't get an atom service."); return interner->GetAtom(nsDependentSubstring(buf, buf + length));
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.