xref: /haiku/src/apps/haikudepot/util/LocaleUtils.h (revision 68d37cfb3a755a7270d772b505ee15c8b18aa5e0)
1 /*
2  * Copyright 2019, Andrew Lindesay <apl@lindesay.co.nz>.
3  * All rights reserved. Distributed under the terms of the MIT License.
4  */
5 #ifndef LOCALE_UTILS_H
6 #define LOCALE_UTILS_H
7 
8 
9 #include <String.h>
10 
11 
12 class BCollator;
13 
14 
15 class LocaleUtils {
16 
17 public:
18 	static	BCollator*		GetSharedCollator();
19 	static	BString			TimestampToDateTimeString(uint64 millis);
20 
21 	static	BString			CreateTranslatedIAmMinimumAgeSlug(int minimumAge);
22 
23 private:
24 	static	void			GetCollator(BCollator* collator);
25 
26 private:
27 	static	BCollator*		sSharedCollator;
28 };
29 
30 
31 #endif // LOCALE_UTILS_H
32