Internationalization and localization tools


String Format Function

int obstack_vprintf(char *s, size_t size, const char *template, va_list ap);

Internationalization (I18n) Function Overview

The obstack_vprintf function is identical to obstack_printf except it uses the data pointed to by the argptr argument, similar as for vprintf.

I18n Issues

Use the appropriate version of the function as required for internationalization support, noting the following:

Prior to calling this function, ensure that the current locale is set properly by calling setlocale, as string formatting is dependent on the LC_NUMERIC locale category. See String Formatting in C and C++ for a discussion on locale-sensitive formatting in internationalized applications.

There is no ANSI wide character version of this function. The parameters will have to be converted to multibyte UTF-8 characters and then the obstack_vprintf function can be used.

Recommended Replacements*

*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.

String Format Functions

 

Lingoport internationalization and localization services and software