Berthold Stoeger bec3e80683 Localization: Make Qt's locale-aware formatting accessible from C
This commit introduces functions:
 - QString asprintf_loc(const char *cformat, ...);
 - int snprintf_loc(char *dst, size_t size, const char *cformat, ...);
 - put_format_loc(struct membuffer *, const char *fmt, ...);
and their va_arg equivalents, which use Qt's QString::arg() formatting
options to render the strings.

The snprintf_loc() function takes care not to truncate multi-byte
UTF-8 encodings. Thus, on overflow, the resulting string might be
shorter than size-1.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-03-05 16:23:55 +01:00
..
2018-01-08 06:06:12 +02:00
2018-01-10 21:25:02 +01:00
2018-01-10 21:25:02 +01:00
2017-12-27 17:14:43 -08:00
2017-11-25 20:13:01 +01:00
2017-04-29 13:32:55 -07:00
2018-02-27 09:17:57 +01:00
2018-02-27 09:17:57 +01:00
2018-01-06 09:21:16 +01:00
2018-01-31 14:47:26 +01:00
2017-04-29 13:32:55 -07:00
2018-01-08 09:52:55 +02:00
2017-05-26 15:52:04 -07:00
2017-05-26 15:44:36 -07:00
2017-11-25 20:13:01 +01:00
2017-07-19 06:21:23 -07:00
2017-11-19 12:20:43 -08:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-10-04 08:05:09 -07:00
2017-04-29 13:32:55 -07:00
2018-01-31 14:47:47 +01:00
2018-01-10 16:45:42 +01:00
2017-04-29 13:32:55 -07:00