Logo Search packages:      
Sourcecode: icu version File versions  Download package

U_STABLE const char* U_EXPORT2 utrace_functionName ( int32_t  fnNumber  ) 

Get the name of a function from its trace function number.

Parameters:
fnNumber The trace number for an ICU function.
Returns:
The name string for the function.
See also:
UTraceFunctionNumber ICU 2.8

Definition at line 475 of file utrace.c.

                                      {
    if(UTRACE_FUNCTION_START <= fnNumber && fnNumber < UTRACE_FUNCTION_LIMIT) {
        return trFnName[fnNumber];
    } else if(UTRACE_CONVERSION_START <= fnNumber && fnNumber < UTRACE_CONVERSION_LIMIT) {
        return trConvNames[fnNumber - UTRACE_CONVERSION_START];
    } else if(UTRACE_COLLATION_START <= fnNumber && fnNumber < UTRACE_COLLATION_LIMIT){
        return trCollNames[fnNumber - UTRACE_COLLATION_START];
    } else {
        return "[BOGUS Trace Function Number]";
    }
}


Generated by  Doxygen 1.6.0   Back to index