template<typename MemoryType> inlinebool String::AllASCII(const MemoryType* chars, constint length) {
static_assert(std::is_unsigned<MemoryType>::value, "Expecting unsigned MemoryType"); for (int i = 0; i < length; ++i) { if (!IsASCII(chars[i])) { returnfalse;
}
} returntrue;
}
inlinebool String::DexFileStringAllASCII(constchar* chars, constint length) { // For strings from the dex file we just need to check that // the terminating character is at the right position.
DCHECK_EQ(AllASCII(reinterpret_cast<const uint8_t*>(chars), length), chars[length] == 0); return chars[length] == 0;
}
} // namespace mirror
} // namespace art
#endif// ART_RUNTIME_MIRROR_STRING_INL_H_
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-29)
¤
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 und die Messung sind noch experimentell.