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 static enum 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 static enum 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 static enum data = [ 59 "co.uk", 60 "com", 61 "biz", 62 "info", 63 "name" 64 ]; 65 return choice(data, this.rnd); 66 } 67 68 /// 69 string addressUkCountry() { 70 static enum data = [ 71 "England", 72 "Scotland", 73 "Wales", 74 "Northern Ireland" 75 ]; 76 return choice(data, this.rnd); 77 } 78 79 /// 80 override string addressDefaultCountry() { 81 static enum data = [ 82 "England", 83 "Scotland", 84 "Wales", 85 "Northern Ireland" 86 ]; 87 return choice(data, this.rnd); 88 } 89 90 /// 91 override string addressCounty() { 92 static enum data = [ 93 "Avon", 94 "Bedfordshire", 95 "Berkshire", 96 "Borders", 97 "Buckinghamshire", 98 "Cambridgeshire", 99 "Central", 100 "Cheshire", 101 "Cleveland", 102 "Clwyd", 103 "Cornwall", 104 "County Antrim", 105 "County Armagh", 106 "County Down", 107 "County Fermanagh", 108 "County Londonderry", 109 "County Tyrone", 110 "Cumbria", 111 "Derbyshire", 112 "Devon", 113 "Dorset", 114 "Dumfries and Galloway", 115 "Durham", 116 "Dyfed", 117 "East Sussex", 118 "Essex", 119 "Fife", 120 "Gloucestershire", 121 "Grampian", 122 "Greater Manchester", 123 "Gwent", 124 "Gwynedd County", 125 "Hampshire", 126 "Herefordshire", 127 "Hertfordshire", 128 "Highlands and Islands", 129 "Humberside", 130 "Isle of Wight", 131 "Kent", 132 "Lancashire", 133 "Leicestershire", 134 "Lincolnshire", 135 "Lothian", 136 "Merseyside", 137 "Mid Glamorgan", 138 "Norfolk", 139 "North Yorkshire", 140 "Northamptonshire", 141 "Northumberland", 142 "Nottinghamshire", 143 "Oxfordshire", 144 "Powys", 145 "Rutland", 146 "Shropshire", 147 "Somerset", 148 "South Glamorgan", 149 "South Yorkshire", 150 "Staffordshire", 151 "Strathclyde", 152 "Suffolk", 153 "Surrey", 154 "Tayside", 155 "Tyne and Wear", 156 "Warwickshire", 157 "West Glamorgan", 158 "West Midlands", 159 "West Sussex", 160 "West Yorkshire", 161 "Wiltshire", 162 "Worcestershire" 163 ]; 164 return choice(data, this.rnd); 165 } 166 167 }