1 // generated by fakerjsgenerator
2 ///
3 module faked.faker_en_gb;
4 
5 import faked.base;
6 
7 
8 ///
9 class Faker_en_gb : Faker {
10 @safe:
11 	import std.random;
12 	import std.array;
13 	import std.format;
14 	import std.conv : to;
15 
16 	///
17 	this(int seed) {
18         super(seed);
19 	}
20 
21 	///
22 	override string phoneNumberFormats() {
23 		auto data = [
24 		"01#### #####",
25 		"01### ######",
26 		"01#1 ### ####",
27 		"011# ### ####",
28 		"02# #### ####",
29 		"03## ### ####",
30 		"055 #### ####",
31 		"056 #### ####",
32 		"0800 ### ####",
33 		"08## ### ####",
34 		"09## ### ####",
35 		"016977 ####",
36 		"01### #####",
37 		"0500 ######",
38 		"0800 ######"
39 		];
40 		return this.digitBuild(choice(data, this.rnd));
41 	}
42 
43 	///
44 	override string cellPhoneFormats() {
45 		auto data = [
46 		"074## ######",
47 		"075## ######",
48 		"076## ######",
49 		"077## ######",
50 		"078## ######",
51 		"079## ######"
52 		];
53 		return this.digitBuild(choice(data, this.rnd));
54 	}
55 
56 	///
57 	override string internetDomainSuffix() {
58 		auto data = [
59 		"ac.uk",
60 		"biz",
61 		"co",
62 		"co.uk",
63 		"com",
64 		"cymru",
65 		"gov.uk",
66 		"info",
67 		"london",
68 		"ltd.uk",
69 		"me.uk",
70 		"name",
71 		"nhs.uk",
72 		"org.uk",
73 		"plc.uk",
74 		"sch.uk",
75 		"scot",
76 		"uk",
77 		"wales"
78 		];
79 		return choice(data, this.rnd);
80 	}
81 
82 
83 	override string addressStreet() {
84 		final switch(uniform(0, 2, this.rnd)) {
85 			case 0: return nameFirstName() ~ " " ~ addressStreetSuffix();
86 			case 1: return nameLastName() ~ " " ~ addressStreetSuffix();
87 		}
88 	}
89 
90 	///
91 	override string addressPostcode() {
92 		auto data = [
93 		"??# #??",
94 		"??## #??'"
95 		];
96 		return this.digitBuild(choice(data, this.rnd));
97 	}
98 
99 	///
100 	string addressUkCountry() {
101 		auto data = [
102 		"England",
103 		"Scotland",
104 		"Wales",
105 		"Northern Ireland'"
106 		];
107 		return choice(data, this.rnd);
108 	}
109 
110 
111 	override string addressCity() {
112 		final switch(uniform(0, 4, this.rnd)) {
113 			case 0: return addressCityPrefix() ~ " " ~ nameFirstName() ~ addressCitySuffix();
114 			case 1: return addressCityPrefix() ~ " " ~ nameFirstName();
115 			case 2: return nameFirstName() ~ addressCitySuffix();
116 			case 3: return nameLastName() ~ addressCitySuffix();
117 		}
118 	}
119 
120 	///
121 	override string addressDefaultCountry() {
122 		auto data = [
123 		"England",
124 		"Scotland",
125 		"Wales",
126 		"Northern Ireland'"
127 		];
128 		return choice(data, this.rnd);
129 	}
130 
131 	///
132 	override string addressCounty() {
133 		auto data = [
134 		"Avon",
135 		"Bedfordshire",
136 		"Berkshire",
137 		"Borders",
138 		"Buckinghamshire",
139 		"Cambridgeshire",
140 		"Central",
141 		"Cheshire",
142 		"Cleveland",
143 		"Clwyd",
144 		"Cornwall",
145 		"County Antrim",
146 		"County Armagh",
147 		"County Down",
148 		"County Fermanagh",
149 		"County Londonderry",
150 		"County Tyrone",
151 		"Cumbria",
152 		"Derbyshire",
153 		"Devon",
154 		"Dorset",
155 		"Dumfries and Galloway",
156 		"Durham",
157 		"Dyfed",
158 		"East Sussex",
159 		"Essex",
160 		"Fife",
161 		"Gloucestershire",
162 		"Grampian",
163 		"Greater Manchester",
164 		"Gwent",
165 		"Gwynedd County",
166 		"Hampshire",
167 		"Herefordshire",
168 		"Hertfordshire",
169 		"Highlands and Islands",
170 		"Humberside",
171 		"Isle of Wight",
172 		"Kent",
173 		"Lancashire",
174 		"Leicestershire",
175 		"Lincolnshire",
176 		"Lothian",
177 		"Merseyside",
178 		"Mid Glamorgan",
179 		"Norfolk",
180 		"North Yorkshire",
181 		"Northamptonshire",
182 		"Northumberland",
183 		"Nottinghamshire",
184 		"Oxfordshire",
185 		"Powys",
186 		"Rutland",
187 		"Shropshire",
188 		"Somerset",
189 		"South Glamorgan",
190 		"South Yorkshire",
191 		"Staffordshire",
192 		"Strathclyde",
193 		"Suffolk",
194 		"Surrey",
195 		"Tayside",
196 		"Tyne and Wear",
197 		"Warwickshire",
198 		"West Glamorgan",
199 		"West Midlands",
200 		"West Sussex",
201 		"West Yorkshire",
202 		"Wiltshire",
203 		"Worcestershire"
204 		];
205 		return choice(data, this.rnd);
206 	}
207 
208 }