/** * Instances of this class store information used to trace reads from resource * bundles when ICU is built with --enable-tracing. * * All arguments of type const UResourceBundle*, const char*, and * const ResourceTracer& are stored as pointers. The caller must retain * ownership for the lifetime of this ResourceTracer. * * Exported as U_COMMON_API for Windows because it is a value field * in other exported types.
*/ class U_COMMON_API ResourceTracer { public:
ResourceTracer() :
fResB(nullptr),
fParent(nullptr),
fKey(nullptr),
fIndex(-1) {}
/** * Calls trace() if the resB or parent provided to the constructor was * non-null; otherwise, does nothing.
*/ void maybeTrace(constchar* type) const { if (fResB || fParent) {
trace(type);
}
}
/** * This class provides methods to trace data file reads when ICU is built * with --enable-tracing.
*/ class FileTracer { public: staticvoid traceOpen(constchar* path, constchar* type, constchar* name);
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.