/* *AllUTF-8inartisactuallymodifiedUTF-8.Mostly,thisdistinction *doesn'tmatter. * *Seehttp://en.wikipedia.org/wiki/UTF-8#Modified_UTF-8 for the details.
*/ namespace art {
// Compute a hash code of a modified UTF-8 string. Not the standard java hash since it returns a // uint32_t and hashes individual chars instead of codepoint words.
uint32_t ComputeModifiedUtf8Hash(constchar* chars);
uint32_t ComputeModifiedUtf8Hash(std::string_view chars);
// The starting value of a modified UTF-8 hash.
constexpr uint32_t StartModifiedUtf8Hash() { return0u;
}
// Update a modified UTF-8 hash with one character.
ALWAYS_INLINE inline uint32_t UpdateModifiedUtf8Hash(uint32_t hash, char c) { return hash * 31u + static_cast<uint8_t>(c);
}
// Update a modified UTF-8 hash with characters of a `std::string_view`.
ALWAYS_INLINE inline uint32_t UpdateModifiedUtf8Hash(uint32_t hash, std::string_view chars) { for (char c : chars) {
hash = UpdateModifiedUtf8Hash(hash, c);
} return hash;
}
// Returns a printable (escaped) version of a character.
std::string PrintableChar(uint16_t ch);
// Returns an ASCII string corresponding to the given UTF-8 string. // Java escapes are used for non-ASCII characters.
std::string PrintableString(constchar* utf8);
} // namespace art
#endif// ART_LIBDEXFILE_DEX_UTF_H_
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 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.