1 /****************************************************************************
2 **
3 ** DQt - D bindings for the Qt Toolkit
4 **
5 ** GNU Lesser General Public License Usage
6 ** This file may be used under the terms of the GNU Lesser
7 ** General Public License version 3 as published by the Free Software
8 ** Foundation and appearing in the file LICENSE.LGPL3 included in the
9 ** packaging of this file. Please review the following information to
10 ** ensure the GNU Lesser General Public License version 3 requirements
11 ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
12 **
13 ****************************************************************************/
14 module qt.core.locale;
15 extern(C++):
16 
17 import core.stdc.config;
18 import qt.config;
19 import qt.core.calendar;
20 import qt.core.datetime;
21 import qt.core.flags;
22 import qt.core.global;
23 import qt.core.list;
24 import qt.core.metatype;
25 import qt.core.namespace;
26 import qt.core.objectdefs;
27 import qt.core.qchar;
28 import qt.core.shareddata;
29 import qt.core.string;
30 import qt.core.stringlist;
31 import qt.core.stringview;
32 import qt.core.typeinfo;
33 import qt.helpers;
34 
35 /+ class QCalendar;
36 class QDataStream;
37 class QDate;
38 class QDateTime;
39 class QLocale;
40 class QTime;
41 class QVariant;
42 class QTextStream;
43 class QTextStreamPrivate; +/
44 
45 extern(C++, class) struct QLocalePrivate;
46 
47 /+ Q_CORE_EXPORT uint qHash(const QLocale &key, uint seed = 0) noexcept; +/
48 
49 @Q_MOVABLE_TYPE @(QMetaType.Type.QLocale) extern(C++, class) struct /+ Q_CORE_EXPORT +/ QLocale
50 {
51     mixin(Q_GADGET);
52     /+ friend class QString; +/
53     /+ friend class QStringRef; +/
54     /+ friend class QByteArray; +/
55     /+ friend class QIntValidator; +/
56     /+ friend class QDoubleValidatorPrivate; +/
57     /+ friend class QTextStream; +/
58     /+ friend class QTextStreamPrivate; +/
59 
60 public:
61 // see qlocale_data_p.h for more info on generated data
62 // GENERATED PART STARTS HERE
63     enum Language {
64         AnyLanguage = 0,
65         C = 1,
66         Abkhazian = 2,
67         Oromo = 3,
68         Afar = 4,
69         Afrikaans = 5,
70         Albanian = 6,
71         Amharic = 7,
72         Arabic = 8,
73         Armenian = 9,
74         Assamese = 10,
75         Aymara = 11,
76         Azerbaijani = 12,
77         Bashkir = 13,
78         Basque = 14,
79         Bengali = 15,
80         Dzongkha = 16,
81 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
82         Bihari /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 17,
83 /+ #endif +/
84         Bislama = 18,
85         Breton = 19,
86         Bulgarian = 20,
87         Burmese = 21,
88         Belarusian = 22,
89         Khmer = 23,
90         Catalan = 24,
91         Chinese = 25,
92         Corsican = 26,
93         Croatian = 27,
94         Czech = 28,
95         Danish = 29,
96         Dutch = 30,
97         English = 31,
98         Esperanto = 32,
99         Estonian = 33,
100         Faroese = 34,
101         Fijian = 35,
102         Finnish = 36,
103         French = 37,
104         WesternFrisian = 38,
105         Gaelic = 39,
106         Galician = 40,
107         Georgian = 41,
108         German = 42,
109         Greek = 43,
110         Greenlandic = 44,
111         Guarani = 45,
112         Gujarati = 46,
113         Hausa = 47,
114         Hebrew = 48,
115         Hindi = 49,
116         Hungarian = 50,
117         Icelandic = 51,
118         Indonesian = 52,
119         Interlingua = 53,
120         Interlingue = 54,
121         Inuktitut = 55,
122         Inupiak = 56,
123         Irish = 57,
124         Italian = 58,
125         Japanese = 59,
126         Javanese = 60,
127         Kannada = 61,
128         Kashmiri = 62,
129         Kazakh = 63,
130         Kinyarwanda = 64,
131         Kirghiz = 65,
132         Korean = 66,
133         Kurdish = 67,
134         Rundi = 68,
135         Lao = 69,
136         Latin = 70,
137         Latvian = 71,
138         Lingala = 72,
139         Lithuanian = 73,
140         Macedonian = 74,
141         Malagasy = 75,
142         Malay = 76,
143         Malayalam = 77,
144         Maltese = 78,
145         Maori = 79,
146         Marathi = 80,
147         Marshallese = 81,
148         Mongolian = 82,
149         NauruLanguage = 83,
150         Nepali = 84,
151         NorwegianBokmal = 85,
152         Occitan = 86,
153         Oriya = 87,
154         Pashto = 88,
155         Persian = 89,
156         Polish = 90,
157         Portuguese = 91,
158         Punjabi = 92,
159         Quechua = 93,
160         Romansh = 94,
161         Romanian = 95,
162         Russian = 96,
163         Samoan = 97,
164         Sango = 98,
165         Sanskrit = 99,
166         Serbian = 100,
167         Ossetic = 101,
168         SouthernSotho = 102,
169         Tswana = 103,
170         Shona = 104,
171         Sindhi = 105,
172         Sinhala = 106,
173         Swati = 107,
174         Slovak = 108,
175         Slovenian = 109,
176         Somali = 110,
177         Spanish = 111,
178         Sundanese = 112,
179         Swahili = 113,
180         Swedish = 114,
181         Sardinian = 115,
182         Tajik = 116,
183         Tamil = 117,
184         Tatar = 118,
185         Telugu = 119,
186         Thai = 120,
187         Tibetan = 121,
188         Tigrinya = 122,
189         Tongan = 123,
190         Tsonga = 124,
191         Turkish = 125,
192         Turkmen = 126,
193         Tahitian = 127,
194         Uighur = 128,
195         Ukrainian = 129,
196         Urdu = 130,
197         Uzbek = 131,
198         Vietnamese = 132,
199         Volapuk = 133,
200         Welsh = 134,
201         Wolof = 135,
202         Xhosa = 136,
203         Yiddish = 137,
204         Yoruba = 138,
205         Zhuang = 139,
206         Zulu = 140,
207         NorwegianNynorsk = 141,
208         Bosnian = 142,
209         Divehi = 143,
210         Manx = 144,
211         Cornish = 145,
212         Akan = 146,
213         Konkani = 147,
214         Ga = 148,
215         Igbo = 149,
216         Kamba = 150,
217         Syriac = 151,
218         Blin = 152,
219         Geez = 153,
220         Koro = 154,
221         Sidamo = 155,
222         Atsam = 156,
223         Tigre = 157,
224         Jju = 158,
225         Friulian = 159,
226         Venda = 160,
227         Ewe = 161,
228         Walamo = 162,
229         Hawaiian = 163,
230         Tyap = 164,
231         Nyanja = 165,
232         Filipino = 166,
233         SwissGerman = 167,
234         SichuanYi = 168,
235         Kpelle = 169,
236         LowGerman = 170,
237         SouthNdebele = 171,
238         NorthernSotho = 172,
239         NorthernSami = 173,
240         Taroko = 174,
241         Gusii = 175,
242         Taita = 176,
243         Fulah = 177,
244         Kikuyu = 178,
245         Samburu = 179,
246         Sena = 180,
247         NorthNdebele = 181,
248         Rombo = 182,
249         Tachelhit = 183,
250         Kabyle = 184,
251         Nyankole = 185,
252         Bena = 186,
253         Vunjo = 187,
254         Bambara = 188,
255         Embu = 189,
256         Cherokee = 190,
257         Morisyen = 191,
258         Makonde = 192,
259         Langi = 193,
260         Ganda = 194,
261         Bemba = 195,
262         Kabuverdianu = 196,
263         Meru = 197,
264         Kalenjin = 198,
265         Nama = 199,
266         Machame = 200,
267         Colognian = 201,
268         Masai = 202,
269         Soga = 203,
270         Luyia = 204,
271         Asu = 205,
272         Teso = 206,
273         Saho = 207,
274         KoyraChiini = 208,
275         Rwa = 209,
276         Luo = 210,
277         Chiga = 211,
278         CentralMoroccoTamazight = 212,
279         KoyraboroSenni = 213,
280         Shambala = 214,
281         Bodo = 215,
282         Avaric = 216,
283         Chamorro = 217,
284         Chechen = 218,
285         Church = 219,
286         Chuvash = 220,
287         Cree = 221,
288         Haitian = 222,
289         Herero = 223,
290         HiriMotu = 224,
291         Kanuri = 225,
292         Komi = 226,
293         Kongo = 227,
294         Kwanyama = 228,
295         Limburgish = 229,
296         LubaKatanga = 230,
297         Luxembourgish = 231,
298         Navaho = 232,
299         Ndonga = 233,
300         Ojibwa = 234,
301         Pali = 235,
302         Walloon = 236,
303         Aghem = 237,
304         Basaa = 238,
305         Zarma = 239,
306         Duala = 240,
307         JolaFonyi = 241,
308         Ewondo = 242,
309         Bafia = 243,
310         MakhuwaMeetto = 244,
311         Mundang = 245,
312         Kwasio = 246,
313         Nuer = 247,
314         Sakha = 248,
315         Sangu = 249,
316 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
317         CongoSwahili /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 250,
318 /+ #endif +/
319         Tasawaq = 251,
320         Vai = 252,
321         Walser = 253,
322         Yangben = 254,
323         Avestan = 255,
324         Asturian = 256,
325         Ngomba = 257,
326         Kako = 258,
327         Meta = 259,
328         Ngiemboon = 260,
329         Aragonese = 261,
330         Akkadian = 262,
331         AncientEgyptian = 263,
332         AncientGreek = 264,
333         Aramaic = 265,
334         Balinese = 266,
335         Bamun = 267,
336         BatakToba = 268,
337         Buginese = 269,
338 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
339         Buhid /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 270,
340         Carian /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 271,
341 /+ #endif +/
342         Chakma = 272,
343 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
344         ClassicalMandaic /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 273,
345 /+ #endif +/
346         Coptic = 274,
347         Dogri = 275,
348 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
349         EasternCham /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 276,
350         EasternKayah /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 277,
351         Etruscan /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 278,
352 /+ #endif +/
353         Gothic = 279,
354 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
355         Hanunoo /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 280,
356 /+ #endif +/
357         Ingush = 281,
358 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
359         LargeFloweryMiao /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 282,
360         Lepcha /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 283,
361         Limbu /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 284,
362         Lisu /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 285,
363         Lu /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 286,
364         Lycian /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 287,
365         Lydian /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 288,
366 /+ #endif +/
367         Mandingo = 289,
368         Manipuri = 290,
369 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
370         Meroitic /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 291,
371         NorthernThai /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 292,
372 /+ #endif +/
373         OldIrish = 293,
374         OldNorse = 294,
375         OldPersian = 295,
376 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
377         OldTurkish /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 296,
378 /+ #endif +/
379         Pahlavi = 297,
380 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
381         Parthian /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 298,
382 /+ #endif +/
383         Phoenician = 299,
384 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
385         PrakritLanguage /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 300,
386         Rejang /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 301,
387         Sabaean /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 302,
388         Samaritan /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 303,
389 /+ #endif +/
390         Santali = 304,
391         Saurashtra = 305,
392 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
393         Sora /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 306,
394         Sylheti /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 307,
395         Tagbanwa /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 308,
396 /+ #endif +/
397         TaiDam = 309,
398 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
399         TaiNua /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 310,
400 /+ #endif +/
401         Ugaritic = 311,
402         Akoose = 312,
403         Lakota = 313,
404         StandardMoroccanTamazight = 314,
405         Mapuche = 315,
406         CentralKurdish = 316,
407         LowerSorbian = 317,
408         UpperSorbian = 318,
409         Kenyang = 319,
410         Mohawk = 320,
411         Nko = 321,
412         Prussian = 322,
413         Kiche = 323,
414         SouthernSami = 324,
415         LuleSami = 325,
416         InariSami = 326,
417         SkoltSami = 327,
418         Warlpiri = 328,
419 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
420         ManichaeanMiddlePersian /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 329,
421 /+ #endif +/
422         Mende = 330,
423 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
424         AncientNorthArabian /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 331,
425         LinearA /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 332,
426         HmongNjua /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 333,
427         Ho /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 334,
428 /+ #endif +/
429         Lezghian = 335,
430 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
431         Bassa /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 336,
432         Mono /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 337,
433         TedimChin /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 338,
434 /+ #endif +/
435         Maithili = 339,
436 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
437         Ahom /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 340,
438 /+ #endif +/
439         AmericanSignLanguage = 341,
440 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
441         ArdhamagadhiPrakrit /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 342,
442 /+ #endif +/
443         Bhojpuri = 343,
444 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
445         HieroglyphicLuwian /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 344,
446 /+ #endif +/
447         LiteraryChinese = 345,
448         Mazanderani = 346,
449 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
450         Mru /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 347,
451 /+ #endif +/
452         Newari = 348,
453         NorthernLuri = 349,
454         Palauan = 350,
455         Papiamento = 351,
456 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
457         Saraiki /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 352,
458 /+ #endif +/
459         TokelauLanguage = 353,
460         TokPisin = 354,
461         TuvaluLanguage = 355,
462 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
463         UncodedLanguages /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 356,
464 /+ #endif +/
465         Cantonese = 357,
466         Osage = 358,
467 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
468         Tangut /+ Q_DECL_ENUMERATOR_DEPRECATED_X("No locale data for this language") +/ = 359,
469 /+ #endif +/
470         Ido = 360,
471         Lojban = 361,
472         Sicilian = 362,
473         SouthernKurdish = 363,
474         WesternBalochi = 364,
475         Cebuano = 365,
476         Erzya = 366,
477         Chickasaw = 367,
478         Muscogee = 368,
479         Silesian = 369,
480         NigerianPidgin = 370,
481 
482         Afan = Language.Oromo,
483         Bhutani = Language.Dzongkha,
484         Byelorussian = Language.Belarusian,
485         Cambodian = Language.Khmer,
486         Chewa = Language.Nyanja,
487         Frisian = Language.WesternFrisian,
488         Kurundi = Language.Rundi,
489 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
490         Moldavian /+ Q_DECL_ENUMERATOR_DEPRECATED_X("Obsolete name, use Romanian") +/ = Language.Romanian,
491         Norwegian /+ Q_DECL_ENUMERATOR_DEPRECATED_X("Obsolete name, use NorwegianBokmal") +/ = Language.NorwegianBokmal,
492 /+ #endif +/
493         RhaetoRomance = Language.Romansh,
494 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
495         SerboCroatian /+ Q_DECL_ENUMERATOR_DEPRECATED_X("Obsolete name, use Serbian") +/ = Language.Serbian,
496         Tagalog /+ Q_DECL_ENUMERATOR_DEPRECATED_X("Obsolete name, use Filipino") +/ = Language.Filipino,
497         Twi /+ Q_DECL_ENUMERATOR_DEPRECATED_X("Obsolete name, use Akan") +/ = Language.Akan,
498 /+ #endif +/
499         Uigur = Language.Uighur,
500 
501         LastLanguage = Language.NigerianPidgin
502     }
503 
504     enum Script {
505         AnyScript = 0,
506         ArabicScript = 1,
507         CyrillicScript = 2,
508         DeseretScript = 3,
509         GurmukhiScript = 4,
510         SimplifiedHanScript = 5,
511         TraditionalHanScript = 6,
512         LatinScript = 7,
513         MongolianScript = 8,
514         TifinaghScript = 9,
515         ArmenianScript = 10,
516         BengaliScript = 11,
517         CherokeeScript = 12,
518         DevanagariScript = 13,
519         EthiopicScript = 14,
520         GeorgianScript = 15,
521         GreekScript = 16,
522         GujaratiScript = 17,
523         HebrewScript = 18,
524         JapaneseScript = 19,
525         KhmerScript = 20,
526         KannadaScript = 21,
527         KoreanScript = 22,
528         LaoScript = 23,
529         MalayalamScript = 24,
530         MyanmarScript = 25,
531         OriyaScript = 26,
532         TamilScript = 27,
533         TeluguScript = 28,
534         ThaanaScript = 29,
535         ThaiScript = 30,
536         TibetanScript = 31,
537         SinhalaScript = 32,
538         SyriacScript = 33,
539         YiScript = 34,
540         VaiScript = 35,
541         AvestanScript = 36,
542         BalineseScript = 37,
543         BamumScript = 38,
544         BatakScript = 39,
545         BopomofoScript = 40,
546         BrahmiScript = 41,
547         BugineseScript = 42,
548         BuhidScript = 43,
549         CanadianAboriginalScript = 44,
550         CarianScript = 45,
551         ChakmaScript = 46,
552         ChamScript = 47,
553         CopticScript = 48,
554         CypriotScript = 49,
555         EgyptianHieroglyphsScript = 50,
556         FraserScript = 51,
557         GlagoliticScript = 52,
558         GothicScript = 53,
559         HanScript = 54,
560         HangulScript = 55,
561         HanunooScript = 56,
562         ImperialAramaicScript = 57,
563         InscriptionalPahlaviScript = 58,
564         InscriptionalParthianScript = 59,
565         JavaneseScript = 60,
566         KaithiScript = 61,
567         KatakanaScript = 62,
568         KayahLiScript = 63,
569         KharoshthiScript = 64,
570         LannaScript = 65,
571         LepchaScript = 66,
572         LimbuScript = 67,
573         LinearBScript = 68,
574         LycianScript = 69,
575         LydianScript = 70,
576         MandaeanScript = 71,
577         MeiteiMayekScript = 72,
578         MeroiticScript = 73,
579         MeroiticCursiveScript = 74,
580         NkoScript = 75,
581         NewTaiLueScript = 76,
582         OghamScript = 77,
583         OlChikiScript = 78,
584         OldItalicScript = 79,
585         OldPersianScript = 80,
586         OldSouthArabianScript = 81,
587         OrkhonScript = 82,
588         OsmanyaScript = 83,
589         PhagsPaScript = 84,
590         PhoenicianScript = 85,
591         PollardPhoneticScript = 86,
592         RejangScript = 87,
593         RunicScript = 88,
594         SamaritanScript = 89,
595         SaurashtraScript = 90,
596         SharadaScript = 91,
597         ShavianScript = 92,
598         SoraSompengScript = 93,
599         CuneiformScript = 94,
600         SundaneseScript = 95,
601         SylotiNagriScript = 96,
602         TagalogScript = 97,
603         TagbanwaScript = 98,
604         TaiLeScript = 99,
605         TaiVietScript = 100,
606         TakriScript = 101,
607         UgariticScript = 102,
608         BrailleScript = 103,
609         HiraganaScript = 104,
610         CaucasianAlbanianScript = 105,
611         BassaVahScript = 106,
612         DuployanScript = 107,
613         ElbasanScript = 108,
614         GranthaScript = 109,
615         PahawhHmongScript = 110,
616         KhojkiScript = 111,
617         LinearAScript = 112,
618         MahajaniScript = 113,
619         ManichaeanScript = 114,
620         MendeKikakuiScript = 115,
621         ModiScript = 116,
622         MroScript = 117,
623         OldNorthArabianScript = 118,
624         NabataeanScript = 119,
625         PalmyreneScript = 120,
626         PauCinHauScript = 121,
627         OldPermicScript = 122,
628         PsalterPahlaviScript = 123,
629         SiddhamScript = 124,
630         KhudawadiScript = 125,
631         TirhutaScript = 126,
632         VarangKshitiScript = 127,
633         AhomScript = 128,
634         AnatolianHieroglyphsScript = 129,
635         HatranScript = 130,
636         MultaniScript = 131,
637         OldHungarianScript = 132,
638         SignWritingScript = 133,
639         AdlamScript = 134,
640         BhaiksukiScript = 135,
641         MarchenScript = 136,
642         NewaScript = 137,
643         OsageScript = 138,
644         TangutScript = 139,
645         HanWithBopomofoScript = 140,
646         JamoScript = 141,
647 
648         SimplifiedChineseScript = Script.SimplifiedHanScript,
649         TraditionalChineseScript = Script.TraditionalHanScript,
650 
651         LastScript = Script.JamoScript
652     }
653 
654     enum Country {
655         AnyCountry = 0,
656         Afghanistan = 1,
657         Albania = 2,
658         Algeria = 3,
659         AmericanSamoa = 4,
660         Andorra = 5,
661         Angola = 6,
662         Anguilla = 7,
663         Antarctica = 8,
664         AntiguaAndBarbuda = 9,
665         Argentina = 10,
666         Armenia = 11,
667         Aruba = 12,
668         Australia = 13,
669         Austria = 14,
670         Azerbaijan = 15,
671         Bahamas = 16,
672         Bahrain = 17,
673         Bangladesh = 18,
674         Barbados = 19,
675         Belarus = 20,
676         Belgium = 21,
677         Belize = 22,
678         Benin = 23,
679         Bermuda = 24,
680         Bhutan = 25,
681         Bolivia = 26,
682         BosniaAndHerzegowina = 27,
683         Botswana = 28,
684         BouvetIsland = 29,
685         Brazil = 30,
686         BritishIndianOceanTerritory = 31,
687         Brunei = 32,
688         Bulgaria = 33,
689         BurkinaFaso = 34,
690         Burundi = 35,
691         Cambodia = 36,
692         Cameroon = 37,
693         Canada = 38,
694         CapeVerde = 39,
695         CaymanIslands = 40,
696         CentralAfricanRepublic = 41,
697         Chad = 42,
698         Chile = 43,
699         China = 44,
700         ChristmasIsland = 45,
701         CocosIslands = 46,
702         Colombia = 47,
703         Comoros = 48,
704         CongoKinshasa = 49,
705         CongoBrazzaville = 50,
706         CookIslands = 51,
707         CostaRica = 52,
708         IvoryCoast = 53,
709         Croatia = 54,
710         Cuba = 55,
711         Cyprus = 56,
712         CzechRepublic = 57,
713         Denmark = 58,
714         Djibouti = 59,
715         Dominica = 60,
716         DominicanRepublic = 61,
717         EastTimor = 62,
718         Ecuador = 63,
719         Egypt = 64,
720         ElSalvador = 65,
721         EquatorialGuinea = 66,
722         Eritrea = 67,
723         Estonia = 68,
724         Ethiopia = 69,
725         FalklandIslands = 70,
726         FaroeIslands = 71,
727         Fiji = 72,
728         Finland = 73,
729         France = 74,
730         Guernsey = 75,
731         FrenchGuiana = 76,
732         FrenchPolynesia = 77,
733         FrenchSouthernTerritories = 78,
734         Gabon = 79,
735         Gambia = 80,
736         Georgia = 81,
737         Germany = 82,
738         Ghana = 83,
739         Gibraltar = 84,
740         Greece = 85,
741         Greenland = 86,
742         Grenada = 87,
743         Guadeloupe = 88,
744         Guam = 89,
745         Guatemala = 90,
746         Guinea = 91,
747         GuineaBissau = 92,
748         Guyana = 93,
749         Haiti = 94,
750         HeardAndMcDonaldIslands = 95,
751         Honduras = 96,
752         HongKong = 97,
753         Hungary = 98,
754         Iceland = 99,
755         India = 100,
756         Indonesia = 101,
757         Iran = 102,
758         Iraq = 103,
759         Ireland = 104,
760         Israel = 105,
761         Italy = 106,
762         Jamaica = 107,
763         Japan = 108,
764         Jordan = 109,
765         Kazakhstan = 110,
766         Kenya = 111,
767         Kiribati = 112,
768         NorthKorea = 113,
769         SouthKorea = 114,
770         Kuwait = 115,
771         Kyrgyzstan = 116,
772         Laos = 117,
773         Latvia = 118,
774         Lebanon = 119,
775         Lesotho = 120,
776         Liberia = 121,
777         Libya = 122,
778         Liechtenstein = 123,
779         Lithuania = 124,
780         Luxembourg = 125,
781         Macau = 126,
782         Macedonia = 127,
783         Madagascar = 128,
784         Malawi = 129,
785         Malaysia = 130,
786         Maldives = 131,
787         Mali = 132,
788         Malta = 133,
789         MarshallIslands = 134,
790         Martinique = 135,
791         Mauritania = 136,
792         Mauritius = 137,
793         Mayotte = 138,
794         Mexico = 139,
795         Micronesia = 140,
796         Moldova = 141,
797         Monaco = 142,
798         Mongolia = 143,
799         Montserrat = 144,
800         Morocco = 145,
801         Mozambique = 146,
802         Myanmar = 147,
803         Namibia = 148,
804         NauruCountry = 149,
805         Nepal = 150,
806         Netherlands = 151,
807         CuraSao = 152,
808         NewCaledonia = 153,
809         NewZealand = 154,
810         Nicaragua = 155,
811         Niger = 156,
812         Nigeria = 157,
813         Niue = 158,
814         NorfolkIsland = 159,
815         NorthernMarianaIslands = 160,
816         Norway = 161,
817         Oman = 162,
818         Pakistan = 163,
819         Palau = 164,
820         PalestinianTerritories = 165,
821         Panama = 166,
822         PapuaNewGuinea = 167,
823         Paraguay = 168,
824         Peru = 169,
825         Philippines = 170,
826         Pitcairn = 171,
827         Poland = 172,
828         Portugal = 173,
829         PuertoRico = 174,
830         Qatar = 175,
831         Reunion = 176,
832         Romania = 177,
833         Russia = 178,
834         Rwanda = 179,
835         SaintKittsAndNevis = 180,
836         SaintLucia = 181,
837         SaintVincentAndTheGrenadines = 182,
838         Samoa = 183,
839         SanMarino = 184,
840         SaoTomeAndPrincipe = 185,
841         SaudiArabia = 186,
842         Senegal = 187,
843         Seychelles = 188,
844         SierraLeone = 189,
845         Singapore = 190,
846         Slovakia = 191,
847         Slovenia = 192,
848         SolomonIslands = 193,
849         Somalia = 194,
850         SouthAfrica = 195,
851         SouthGeorgiaAndTheSouthSandwichIslands = 196,
852         Spain = 197,
853         SriLanka = 198,
854         SaintHelena = 199,
855         SaintPierreAndMiquelon = 200,
856         Sudan = 201,
857         Suriname = 202,
858         SvalbardAndJanMayenIslands = 203,
859         Swaziland = 204,
860         Sweden = 205,
861         Switzerland = 206,
862         Syria = 207,
863         Taiwan = 208,
864         Tajikistan = 209,
865         Tanzania = 210,
866         Thailand = 211,
867         Togo = 212,
868         TokelauCountry = 213,
869         Tonga = 214,
870         TrinidadAndTobago = 215,
871         Tunisia = 216,
872         Turkey = 217,
873         Turkmenistan = 218,
874         TurksAndCaicosIslands = 219,
875         TuvaluCountry = 220,
876         Uganda = 221,
877         Ukraine = 222,
878         UnitedArabEmirates = 223,
879         UnitedKingdom = 224,
880         UnitedStates = 225,
881         UnitedStatesMinorOutlyingIslands = 226,
882         Uruguay = 227,
883         Uzbekistan = 228,
884         Vanuatu = 229,
885         VaticanCityState = 230,
886         Venezuela = 231,
887         Vietnam = 232,
888         BritishVirginIslands = 233,
889         UnitedStatesVirginIslands = 234,
890         WallisAndFutunaIslands = 235,
891         WesternSahara = 236,
892         Yemen = 237,
893         CanaryIslands = 238,
894         Zambia = 239,
895         Zimbabwe = 240,
896         ClippertonIsland = 241,
897         Montenegro = 242,
898         Serbia = 243,
899         SaintBarthelemy = 244,
900         SaintMartin = 245,
901         LatinAmerica = 246,
902         AscensionIsland = 247,
903         AlandIslands = 248,
904         DiegoGarcia = 249,
905         CeutaAndMelilla = 250,
906         IsleOfMan = 251,
907         Jersey = 252,
908         TristanDaCunha = 253,
909         SouthSudan = 254,
910         Bonaire = 255,
911         SintMaarten = 256,
912         Kosovo = 257,
913         EuropeanUnion = 258,
914         OutlyingOceania = 259,
915         World = 260,
916         Europe = 261,
917 
918         DemocraticRepublicOfCongo = Country.CongoKinshasa,
919         DemocraticRepublicOfKorea = Country.NorthKorea,
920         LatinAmericaAndTheCaribbean = Country.LatinAmerica,
921         PeoplesRepublicOfCongo = Country.CongoBrazzaville,
922         RepublicOfKorea = Country.SouthKorea,
923         RussianFederation = Country.Russia,
924         SyrianArabRepublic = Country.Syria,
925 /+ #if QT_DEPRECATED_SINCE(5, 15) +/
926         Tokelau /+ Q_DECL_ENUMERATOR_DEPRECATED_X("Obsolete name, use TokelauCountry") +/ = Country.TokelauCountry,
927         Tuvalu /+ Q_DECL_ENUMERATOR_DEPRECATED_X("Obsolete name, use TuvaluCountry") +/ = Country.TuvaluCountry,
928 /+ #endif +/
929 
930         LastCountry = Country.Europe
931     }
932 // GENERATED PART ENDS HERE
933 
934     /+ Q_ENUM(Language) +/
935     /+ Q_ENUM(Country) +/
936     /+ Q_ENUM(Script) +/
937 
938     enum MeasurementSystem {
939         MetricSystem,
940         ImperialUSSystem,
941         ImperialUKSystem,
942         ImperialSystem = MeasurementSystem.ImperialUSSystem // Qt 4 compatibility
943     }
944     /+ Q_ENUM(MeasurementSystem) +/
945 
946     enum FormatType { LongFormat, ShortFormat, NarrowFormat }
947     enum NumberOption {
948         DefaultNumberOptions = 0x0,
949         OmitGroupSeparator = 0x01,
950         RejectGroupSeparator = 0x02,
951         OmitLeadingZeroInExponent = 0x04,
952         RejectLeadingZeroInExponent = 0x08,
953         IncludeTrailingZeroesAfterDot = 0x10,
954         RejectTrailingZeroesAfterDot = 0x20
955     }
956     /+ Q_DECLARE_FLAGS(NumberOptions, NumberOption) +/
957 alias NumberOptions = QFlags!(NumberOption);
958     enum FloatingPointPrecisionOption {
959         FloatingPointShortest = -128
960     }
961 
962     enum CurrencySymbolFormat {
963         CurrencyIsoCode,
964         CurrencySymbol,
965         CurrencyDisplayName
966     }
967 
968     enum DataSizeFormat {
969         // Single-bit values, for internal use.
970         DataSizeBase1000 = 1, // use factors of 1000 instead of IEC's 1024;
971         DataSizeSIQuantifiers = 2, // use SI quantifiers instead of IEC ones.
972 
973         // Flags values for use in API:
974         DataSizeIecFormat = 0, // base 1024, KiB, MiB, GiB, ...
975         DataSizeTraditionalFormat = DataSizeFormat.DataSizeSIQuantifiers, // base 1024, kB, MB, GB, ...
976         DataSizeSIFormat = DataSizeFormat.DataSizeBase1000 | DataSizeFormat.DataSizeSIQuantifiers // base 1000, kB, MB, GB, ...
977     }
978     /+ Q_DECLARE_FLAGS(DataSizeFormats, DataSizeFormat) +/
979 alias DataSizeFormats = QFlags!(DataSizeFormat);    /+ Q_FLAG(DataSizeFormats) +/
980 
981     @disable this();
982     pragma(mangle, defaultConstructorMangling(__traits(identifier, typeof(this))))
983     ref typeof(this) rawConstructor();
984     static typeof(this) create()
985     {
986         typeof(this) r = typeof(this).init;
987         r.rawConstructor();
988         return r;
989     }
990 
991     this(ref const(QString) name);
992     this(Language language, Country country = Country.AnyCountry);
993     this(Language language, Script script, Country country);
994     @disable this(this);
995     this(ref const(QLocale) other);
996     /+ QLocale &operator=(QLocale &&other) noexcept { swap(other); return *this; } +/
997     /+ref QLocale operator =(ref const(QLocale) other);+/
998     ~this();
999 
1000     /+ void swap(QLocale &other) noexcept { qSwap(d, other.d); } +/
1001 
1002     Language language() const;
1003     Script script() const;
1004     Country country() const;
1005     QString name() const;
1006 
1007     QString bcp47Name() const;
1008     QString nativeLanguageName() const;
1009     QString nativeCountryName() const;
1010 
1011     static if(QT_STRINGVIEW_LEVEL < 2)
1012     {
1013         short toShort(ref const(QString) s, bool* ok = null) const;
1014         ushort toUShort(ref const(QString) s, bool* ok = null) const;
1015         int toInt(ref const(QString) s, bool* ok = null) const;
1016         uint toUInt(ref const(QString) s, bool* ok = null) const;
1017         cpp_long toLong(ref const(QString) s, bool* ok = null) const;
1018         cpp_ulong toULong(ref const(QString) s, bool* ok = null) const;
1019         qlonglong toLongLong(ref const(QString) s, bool* ok = null) const;
1020         qulonglong toULongLong(ref const(QString) s, bool* ok = null) const;
1021         float toFloat(ref const(QString) s, bool* ok = null) const;
1022         double toDouble(ref const(QString) s, bool* ok = null) const;
1023 
1024         short toShort(ref const(QStringRef) s, bool* ok = null) const;
1025         ushort toUShort(ref const(QStringRef) s, bool* ok = null) const;
1026         int toInt(ref const(QStringRef) s, bool* ok = null) const;
1027         uint toUInt(ref const(QStringRef) s, bool* ok = null) const;
1028         cpp_long toLong(ref const(QStringRef) s, bool* ok = null) const;
1029         cpp_ulong toULong(ref const(QStringRef) s, bool* ok = null) const;
1030         qlonglong toLongLong(ref const(QStringRef) s, bool* ok = null) const;
1031         qulonglong toULongLong(ref const(QStringRef) s, bool* ok = null) const;
1032         float toFloat(ref const(QStringRef) s, bool* ok = null) const;
1033         double toDouble(ref const(QStringRef) s, bool* ok = null) const;
1034     }
1035 
1036     short toShort(QStringView s, bool* ok = null) const;
1037     ushort toUShort(QStringView s, bool* ok = null) const;
1038     int toInt(QStringView s, bool* ok = null) const;
1039     uint toUInt(QStringView s, bool* ok = null) const;
1040     cpp_long toLong(QStringView s, bool* ok = null) const;
1041     cpp_ulong toULong(QStringView s, bool* ok = null) const;
1042     qlonglong toLongLong(QStringView s, bool* ok = null) const;
1043     qulonglong toULongLong(QStringView s, bool* ok = null) const;
1044     float toFloat(QStringView s, bool* ok = null) const;
1045     double toDouble(QStringView s, bool* ok = null) const;
1046 
1047     QString toString(qlonglong i) const;
1048     QString toString(qulonglong i) const;
1049     pragma(inline, true) QString toString(cpp_long i) const
1050         { return toString(qlonglong(i)); }
1051     pragma(inline, true) QString toString(cpp_ulong i) const
1052         { return toString(qulonglong(i)); }
1053     pragma(inline, true) QString toString(short i) const
1054         { return toString(qlonglong(i)); }
1055     pragma(inline, true) QString toString(ushort i) const
1056         { return toString(qulonglong(i)); }
1057     pragma(inline, true) QString toString(int i) const
1058         { return toString(qlonglong(i)); }
1059     pragma(inline, true) QString toString(uint i) const
1060         { return toString(qulonglong(i)); }
1061     QString toString(double i, char f = 'g', int prec = 6) const;
1062     pragma(inline, true) QString toString(float i, char f = 'g', int prec = 6) const
1063         { return toString(double(i), f, prec); }
1064 
1065     static if(QT_STRINGVIEW_LEVEL < 2)
1066     {
1067         QString toString(ref const(QDate) date, ref const(QString) formatStr) const;
1068         QString toString(ref const(QTime) time, ref const(QString) formatStr) const;
1069         QString toString(ref const(QDateTime) dateTime, ref const(QString) format) const;
1070     }
1071     QString toString(ref const(QDate) date, QStringView formatStr) const;
1072     QString toString(ref const(QTime) time, QStringView formatStr) const;
1073     QString toString(ref const(QDateTime) dateTime, QStringView format) const;
1074     QString toString(ref const(QDate) date, FormatType format = FormatType.LongFormat) const;
1075     QString toString(ref const(QTime) time, FormatType format = FormatType.LongFormat) const;
1076     QString toString(ref const(QDateTime) dateTime, FormatType format = FormatType.LongFormat) const;
1077     /* Removing default value for `format' is done intentionally,
1078      * after all tests we will remove non-calendar-aware version of these functions,
1079      * and add a default value for both calendar instance, and format
1080      */
1081     QString toString(ref const(QDate) date, QStringView formatStr, QCalendar cal) const;
1082     QString toString(ref const(QDate) date, FormatType format, QCalendar cal) const;
1083     QString toString(ref const(QDateTime) dateTime, FormatType format, QCalendar cal) const;
1084     QString toString(ref const(QDateTime) dateTime, QStringView formatStr, QCalendar cal) const;
1085 
1086     QString dateFormat(FormatType format = FormatType.LongFormat) const;
1087     QString timeFormat(FormatType format = FormatType.LongFormat) const;
1088     QString dateTimeFormat(FormatType format = FormatType.LongFormat) const;
1089 /+ #if QT_CONFIG(datestring) +/
1090     QDate toDate(ref const(QString) string, FormatType /+ = LongFormat +/) const;
1091     QTime toTime(ref const(QString) string, FormatType /+ = LongFormat +/) const;
1092     QDateTime toDateTime(ref const(QString) string, FormatType format = FormatType.LongFormat) const;
1093     QDate toDate(ref const(QString) string, ref const(QString) format) const;
1094     QTime toTime(ref const(QString) string, ref const(QString) format) const;
1095     QDateTime toDateTime(ref const(QString) string, ref const(QString) format) const;
1096     // Calendar-aware API
1097     QDate toDate(ref const(QString) string, FormatType format, QCalendar cal) const;
1098     QDateTime toDateTime(ref const(QString) string, FormatType format, QCalendar cal) const;
1099     QDate toDate(ref const(QString) string, ref const(QString) format, QCalendar cal) const;
1100     QDateTime toDateTime(ref const(QString) string, ref const(QString) format, QCalendar cal) const;
1101 /+ # if QT_DEPRECATED_SINCE(5, 15) +/
1102     /+ QT_DEPRECATED_X("Calendar is ignored when parsing times") +/
1103         QTime toTime(ref const(QString) string, FormatType format, QCalendar cal) const;
1104     /+ QT_DEPRECATED_X("Calendar is ignored when parsing times") +/
1105         QTime toTime(ref const(QString) string, ref const(QString) format, QCalendar cal) const;
1106 /+ # endif // 5.15
1107 #endif +/
1108 
1109     // ### Qt 6: We need to return QString from these function since
1110     //           UTF-16 may need surrogate pairs to represent these fields.
1111     QChar decimalPoint() const;
1112     QChar groupSeparator() const;
1113     QChar percent() const;
1114     QChar zeroDigit() const;
1115     QChar negativeSign() const;
1116     QChar positiveSign() const;
1117     QChar exponential() const;
1118 
1119     QString monthName(int, FormatType format = FormatType.LongFormat) const;
1120     QString standaloneMonthName(int, FormatType format = FormatType.LongFormat) const;
1121     QString dayName(int, FormatType format = FormatType.LongFormat) const;
1122     QString standaloneDayName(int, FormatType format = FormatType.LongFormat) const;
1123 
1124     /+ Qt:: +/qt.core.namespace.DayOfWeek firstDayOfWeek() const;
1125     QList!(/+ Qt:: +/qt.core.namespace.DayOfWeek) weekdays() const;
1126 
1127     QString amText() const;
1128     QString pmText() const;
1129 
1130     MeasurementSystem measurementSystem() const;
1131     QLocale collation() const;
1132     /+ Qt:: +/qt.core.namespace.LayoutDirection textDirection() const;
1133 
1134     QString toUpper(ref const(QString) str) const;
1135     QString toLower(ref const(QString) str) const;
1136 
1137     QString currencySymbol(CurrencySymbolFormat /+ = CurrencySymbol +/) const;
1138     QString toCurrencyString(qlonglong, ref const(QString) symbol = globalInitVar!QString) const;
1139     QString toCurrencyString(qulonglong, ref const(QString) symbol = globalInitVar!QString) const;
1140     pragma(inline, true) QString toCurrencyString(short i, ref const(QString) symbol = globalInitVar!QString) const
1141         { return toCurrencyString(qlonglong(i), symbol); }
1142     pragma(inline, true) QString toCurrencyString(ushort i, ref const(QString) symbol = globalInitVar!QString) const
1143         { return toCurrencyString(qulonglong(i), symbol); }
1144     pragma(inline, true) QString toCurrencyString(int i, ref const(QString) symbol = globalInitVar!QString) const
1145     { return toCurrencyString(qlonglong(i), symbol); }
1146     pragma(inline, true) QString toCurrencyString(uint i, ref const(QString) symbol = globalInitVar!QString) const
1147     { return toCurrencyString(qulonglong(i), symbol); }
1148 /+ #if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
1149     QString toCurrencyString(double, const QString &symbol = QString(), int precision = -1) const;
1150     inline QString toCurrencyString(float i, const QString &symbol = QString(), int precision = -1) const
1151     { return toCurrencyString(double(i), symbol, precision); }
1152 #else +/
1153     QString toCurrencyString(double, ref const(QString) symbol = globalInitVar!QString) const;
1154     QString toCurrencyString(double, ref const(QString) symbol, int precision) const;
1155     pragma(inline, true) QString toCurrencyString(float i, ref const(QString) symbol = globalInitVar!QString) const
1156     { return toCurrencyString(double(i), symbol); }
1157     pragma(inline, true) QString toCurrencyString(float i, ref const(QString) symbol, int precision) const
1158     { return toCurrencyString(double(i), symbol, precision); }
1159 /+ #endif
1160 
1161 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) +/
1162     QString formattedDataSize(qint64 bytes, int precision = 2, DataSizeFormats format = DataSizeFormat.DataSizeIecFormat);
1163 /+ #endif +/
1164     QString formattedDataSize(qint64 bytes, int precision = 2, DataSizeFormats format = DataSizeFormat.DataSizeIecFormat) const;
1165 
1166     QStringList uiLanguages() const;
1167 
1168     /+bool operator ==(ref const(QLocale) other) const;+/
1169     /+bool operator !=(ref const(QLocale) other) const;+/
1170 
1171     static QString languageToString(Language language);
1172     static QString countryToString(Country country);
1173     static QString scriptToString(Script script);
1174     static void setDefault(ref const(QLocale) locale);
1175 
1176     static QLocale c() { return QLocale(Language.C); }
1177     static QLocale system();
1178 
1179     static QList!(QLocale) matchingLocales(QLocale.Language language, QLocale.Script script, QLocale.Country country);
1180     static QList!(Country) countriesForLanguage(Language lang);
1181 
1182     void setNumberOptions(NumberOptions options);
1183     NumberOptions numberOptions() const;
1184 
1185     enum QuotationStyle { StandardQuotation, AlternateQuotation }
1186     QString quoteString(ref const(QString) str, QuotationStyle style = QuotationStyle.StandardQuotation) const;
1187     QString quoteString(ref const(QStringRef) str, QuotationStyle style = QuotationStyle.StandardQuotation) const;
1188 
1189     QString createSeparatedList(ref const(QStringList) strl) const;
1190 
1191 private:
1192     this(ref QLocalePrivate dd);
1193     /+ friend class QLocalePrivate; +/
1194     /+ friend class QSystemLocale; +/
1195     /+ friend class QCalendarBackend; +/
1196     /+ friend class QGregorianCalendar; +/
1197     /+ friend Q_CORE_EXPORT uint qHash(const QLocale &key, uint seed) noexcept; +/
1198 
1199     QSharedDataPointer!(QLocalePrivate) d;
1200 }
1201 /+pragma(inline, true) QFlags!(QLocale.NumberOptions.enum_type) operator |(QLocale.NumberOptions.enum_type f1, QLocale.NumberOptions.enum_type f2)/+noexcept+/{return QFlags!(QLocale.NumberOptions.enum_type)(f1)|f2;}+/
1202 /+pragma(inline, true) QFlags!(QLocale.NumberOptions.enum_type) operator |(QLocale.NumberOptions.enum_type f1, QFlags!(QLocale.NumberOptions.enum_type) f2)/+noexcept+/{return f2|f1;}+/
1203 /+pragma(inline, true) QIncompatibleFlag operator |(QLocale.NumberOptions.enum_type f1, int f2)/+noexcept+/{return QIncompatibleFlag(int(f1)|f2);}+/
1204 /+ Q_DECLARE_SHARED(QLocale)
1205 Q_DECLARE_OPERATORS_FOR_FLAGS(QLocale::NumberOptions)
1206 #ifndef QT_NO_DATASTREAM
1207 Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QLocale &);
1208 Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QLocale &);
1209 #endif
1210 
1211 #ifndef QT_NO_DEBUG_STREAM
1212 Q_CORE_EXPORT QDebug operator<<(QDebug, const QLocale &);
1213 #endif +/
1214