]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/utrace.cpp
ICU-66108.tar.gz
[apple/icu.git] / icuSources / common / utrace.cpp
index 2ac3d77c43a036b4a3be565b11b6dbaa089a4996..c981546594706ce188f6bcb62a95b277ad37e7af 100644 (file)
@@ -476,6 +476,16 @@ trCollNames[] = {
     NULL
 };
 
+
+static const char* const
+trResDataNames[] = {
+    "resc",
+    "bundle-open",
+    "file-open",
+    "res-open",
+    NULL
+};
+
                 
 U_CAPI const char * U_EXPORT2
 utrace_functionName(int32_t fnNumber) {
@@ -485,6 +495,8 @@ utrace_functionName(int32_t fnNumber) {
         return trConvNames[fnNumber - UTRACE_CONVERSION_START];
     } else if(UTRACE_COLLATION_START <= fnNumber && fnNumber < UTRACE_COLLATION_LIMIT){
         return trCollNames[fnNumber - UTRACE_COLLATION_START];
+    } else if(UTRACE_UDATA_START <= fnNumber && fnNumber < UTRACE_RES_DATA_LIMIT){
+        return trResDataNames[fnNumber - UTRACE_UDATA_START];
     } else {
         return "[BOGUS Trace Function Number]";
     }