xref: /haiku/src/apps/haikudepot/util/LocaleUtils.h (revision 4c8e85b316c35a9161f5a1c50ad70bc91c83a76f)
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 
20 	static	BString			TimestampToDateTimeString(uint64 millis);
21 	static	BString			TimestampToDateString(uint64 millis);
22 
23 	static	BString			CreateTranslatedIAmMinimumAgeSlug(int minimumAge);
24 
25 private:
26 	static	void			GetCollator(BCollator* collator);
27 
28 private:
29 	static	BCollator*		sSharedCollator;
30 };
31 
32 
33 #endif // LOCALE_UTILS_H
34