haiku/headers/os/locale
PulkoMandy 7d5b913b51 BCatalog: declare GetString as format_printf function
This tells the compiler that this function takes a format string as a
parameter, and returns a "similar" string with the same formatting
operations. This allows the format string to "propagate" to prinf-file
functions (including BString::SetToFormat) and the format string to be
actually checked with the arguments passed to that function.

Without this, all translated strings were not checked to match with
their arguments.

Change-Id: I5c3c5cbfe7dfede9a6f45cad47a7524f9138fac0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7663
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-05-03 16:38:23 +00:00
..
tools Add B_TRANSLATE_MARK_CONTEXT to Catalog.h and tools/CollectingCatalog.h 2017-08-07 06:55:28 +02:00
Catalog.h BCatalog: declare GetString as format_printf function 2024-05-03 16:38:23 +00:00
CatalogData.h Fix instanciate_catalog prototype 2015-01-17 17:02:40 +01:00
Collator.h Remove deprecated BCollatorAddOn and implementations. 2017-05-29 08:52:44 +02:00
Country.h BCountry: add a GetPreferredLanguage method. 2021-07-21 07:20:39 +00:00
DateFormat.h BDateFormat: Properly map day values to ICU day-of-week. 2017-09-16 17:42:54 +02:00
DateTimeFormat.h Remove even more Locale Kit cruft. 2017-07-30 14:46:41 -04:00
DurationFormat.h BDurationFormat::Format docs, update method params 2017-11-10 14:59:33 -08:00
Format.h Remove even more Locale Kit cruft. 2017-07-30 14:46:41 -04:00
FormattingConventions.h locale: Fix 24 hour format for DateTimeFormats. 2016-06-18 18:09:56 -04:00
Language.h Update icu x86_64 package with namespace renaming enabled. 2015-05-10 21:52:36 +02:00
Locale.h Move DateTimeFormat and NumberFormat out of BLocale 2014-10-02 09:19:54 +02:00
LocaleRoster.h locale: Fix another class/struct mixup. 2017-12-03 13:44:30 -05:00
LocaleStrings.h * reintegrated gsoc-locale-kit branch into trunk - there's more 2009-09-18 22:23:34 +00:00
NumberFormat.h NumberFormat: add floating-point precision support 2024-02-27 19:27:56 +00:00
RelativeDateTimeFormat.h Implement a formatter for relative dates. 2017-08-25 21:14:27 +02:00
StringFormat.h BMessageFormat: Rename to BStringFormat. 2018-08-13 20:49:00 -04:00
TextEncoding.h BTextEncoding: even more style fixes. 2016-09-27 20:41:26 +02:00
TimeFormat.h Update icu x86_64 package with namespace renaming enabled. 2015-05-10 21:52:36 +02:00
TimeUnitFormat.h Fix style formatting issue in BTimeUnitFormat, update BDurationFormat accordingly. 2017-05-17 19:53:46 +02:00
TimeZone.h Update icu x86_64 package with namespace renaming enabled. 2015-05-10 21:52:36 +02:00
UnicodeChar.h Style fixes to Locale Kit, focus on docs. 2014-06-11 16:48:02 -04:00