Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

uprintf.h File Reference

Go to the source code of this file.

Compounds

struct  u_printf_spec_info

Typedefs

typedef struct u_printf_spec_info u_printf_spec_info
typedef int32_t (* u_printf_info )(const u_printf_spec_info *info, int32_t *argtypes, int32_t n)
 A u_printf info function. More...

typedef int32_t (* u_printf_handler )(UFILE *stream, const u_printf_spec_info *info, const ufmt_args *args)
 A u_printf handler function. More...


Functions

int32_t u_printf_register_handler (UChar spec, u_printf_info info, u_printf_handler handler)
 Register a uprintf handler function with uprintf. More...


Typedef Documentation

typedef int32_t (* u_printf_handler)(UFILE *stream, const u_printf_spec_info *info, const ufmt_args *args)
 

A u_printf handler function.

A u_printf handler is responsible for handling a single u_printf format specification, for example 'd' or 's'.

Parameters:
stream   The UFILE to which to write output.
info   A pointer to a u_printf_spec_info struct containing information on the format specification.
args   A pointer to the argument data
Returns:
The number of Unicode characters written to stream.

Definition at line 76 of file uprintf.h.

typedef int32_t (* u_printf_info)(const u_printf_spec_info *info, int32_t *argtypes, int32_t n)
 

A u_printf info function.

A u_printf info is reponsible for reporting to u_printf how many arguments are required for the u_printf_spec_info info, and what their types are.

Parameters:
info   A pointer to a u_print_info struct containing information on the format specification.
argtypes   The array to receive the types of arguments specified by info.
n   The number of available slots in the array argtypes
Returns:
The number of arguments required by info.

Definition at line 62 of file uprintf.h.

typedef struct u_printf_spec_info u_printf_spec_info
 

Definition at line 48 of file uprintf.h.


Function Documentation

int32_t u_printf_register_handler ( UChar spec,
u_printf_info info,
u_printf_handler handler )
 

Register a uprintf handler function with uprintf.

Parameters:
spec   The format specififier handled by the handler func.
info   A pointer to the uprintf_info function used to determine how many arguments are required for spec, and what their types are.
handler   A pointer to the uprintf_handler function.
Returns:
0 if successful


Generated at Tue Dec 5 17:55:50 2000 for ICU by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000