Faker C++
Loading...
Searching...
No Matches
phone.h File Reference
#include <optional>
#include <string>
#include <string_view>
#include <unordered_map>
#include "faker-cxx/export.h"
Include dependency graph for phone.h:

Go to the source code of this file.

Namespaces

namespace  faker
 
namespace  faker::phone
 

Enumerations

enum class  faker::phone::PhoneNumberCountryFormat {
  faker::phone::Default , faker::phone::Afghanistan , faker::phone::AlandIslands , faker::phone::Albania ,
  faker::phone::Algeria , faker::phone::AmericanSamoa , faker::phone::Andorra , faker::phone::Angola ,
  faker::phone::Anguilla , faker::phone::AntiguaAndBarbuda , faker::phone::Argentina , faker::phone::Armenia ,
  faker::phone::Aruba , faker::phone::Australia , faker::phone::Austria , faker::phone::Azerbaijan ,
  faker::phone::Bahamas , faker::phone::Bahrain , faker::phone::Bangladesh , faker::phone::Barbados ,
  faker::phone::Belarus , faker::phone::Belgium , faker::phone::Belize , faker::phone::Benin ,
  faker::phone::Bermuda , faker::phone::Bhutan , faker::phone::Bolivia , faker::phone::BosniaAndHerzegovina ,
  faker::phone::Botswana , faker::phone::Brazil , faker::phone::BruneiDarussalam , faker::phone::Bulgaria ,
  faker::phone::BurkinaFaso , faker::phone::Burundi , faker::phone::Cambodia , faker::phone::Cameroon ,
  faker::phone::Canada , faker::phone::CapeVerde , faker::phone::CaymanIslands , faker::phone::CentralAfricanRepublic ,
  faker::phone::Chad , faker::phone::Chile , faker::phone::China , faker::phone::Colombia ,
  faker::phone::Comoros , faker::phone::Congo , faker::phone::CookIslands , faker::phone::CostaRica ,
  faker::phone::Croatia , faker::phone::Cuba , faker::phone::Curacao , faker::phone::Cyprus ,
  faker::phone::Czechia , faker::phone::DemocraticRepublicOfTheCongo , faker::phone::Denmark , faker::phone::Djibouti ,
  faker::phone::Dominica , faker::phone::DominicanRepublic , faker::phone::Ecuador , faker::phone::Egypt ,
  faker::phone::ElSalvador , faker::phone::EquatorialGuinea , faker::phone::Eritrea , faker::phone::Estonia ,
  faker::phone::Eswatini , faker::phone::Ethiopia , faker::phone::FaroeIslands , faker::phone::Fiji ,
  faker::phone::Finland , faker::phone::France , faker::phone::FrenchGuiana , faker::phone::FrenchPolynesia ,
  faker::phone::Gabon , faker::phone::Gambia , faker::phone::Georgia , faker::phone::Germany ,
  faker::phone::Ghana , faker::phone::Gibraltar , faker::phone::Greece , faker::phone::Greenland ,
  faker::phone::Grenada , faker::phone::Guadeloupe , faker::phone::Guam , faker::phone::Guatemala ,
  faker::phone::Guernsey , faker::phone::Guinea , faker::phone::GuineaBissau , faker::phone::Guyana ,
  faker::phone::Haiti , faker::phone::HolySeeVaticanCityState , faker::phone::Honduras , faker::phone::HongKong ,
  faker::phone::Hungary , faker::phone::Iceland , faker::phone::India , faker::phone::Indonesia ,
  faker::phone::Iran , faker::phone::Iraq , faker::phone::Ireland , faker::phone::IsleOfMan ,
  faker::phone::Israel , faker::phone::Italy , faker::phone::Jamaica , faker::phone::Japan ,
  faker::phone::Jersey , faker::phone::Jordan , faker::phone::RepublicOfKorea , faker::phone::Kuwait ,
  faker::phone::KyrgyzRepublic , faker::phone::Latvia , faker::phone::Lebanon , faker::phone::Lesotho ,
  faker::phone::Liberia , faker::phone::LibyanArabJamahiriya , faker::phone::Liechtenstein , faker::phone::Lithuania ,
  faker::phone::Luxembourg , faker::phone::Macao , faker::phone::Madagascar , faker::phone::Malawi ,
  faker::phone::Malaysia , faker::phone::Maldives , faker::phone::Mali , faker::phone::Malta ,
  faker::phone::MarshallIslands , faker::phone::Martinique , faker::phone::Mauritania , faker::phone::Mauritius ,
  faker::phone::Mayotte , faker::phone::Mexico , faker::phone::Micronesia , faker::phone::Moldova ,
  faker::phone::Monaco , faker::phone::Mongolia , faker::phone::Montenegro , faker::phone::Montserrat ,
  faker::phone::Morocco , faker::phone::Mozambique , faker::phone::Myanmar , faker::phone::Namibia ,
  faker::phone::Nauru , faker::phone::Nepal , faker::phone::Netherlands , faker::phone::NewCaledonia ,
  faker::phone::NewZealand , faker::phone::Nicaragua , faker::phone::Niger , faker::phone::Nigeria ,
  faker::phone::Niue , faker::phone::NorthMacedonia , faker::phone::NorthernMarianaIslands , faker::phone::Norway ,
  faker::phone::Oman , faker::phone::Pakistan , faker::phone::Palau , faker::phone::Palestine ,
  faker::phone::Panama , faker::phone::PapuaNewGuinea , faker::phone::Paraguay , faker::phone::Peru ,
  faker::phone::Philippines , faker::phone::Poland , faker::phone::Portugal , faker::phone::PuertoRico ,
  faker::phone::Qatar , faker::phone::Reunion , faker::phone::Romania , faker::phone::RussianFederation ,
  faker::phone::Rwanda , faker::phone::SaintBarthelemy , faker::phone::SaintHelena , faker::phone::SaintKittsAndNevis ,
  faker::phone::SaintLucia , faker::phone::SaintMartin , faker::phone::SaintPierreAndMiquelon , faker::phone::SaintVincentAndTheGrenadines ,
  faker::phone::Samoa , faker::phone::SanMarino , faker::phone::SaoTomeAndPrincipe , faker::phone::SaudiArabia ,
  faker::phone::Senegal , faker::phone::Serbia , faker::phone::Seychelles , faker::phone::SierraLeone ,
  faker::phone::Singapore , faker::phone::SintMaarten , faker::phone::Slovakia , faker::phone::Slovenia ,
  faker::phone::SolomonIslands , faker::phone::Somalia , faker::phone::SouthAfrica , faker::phone::SouthSudan ,
  faker::phone::Spain , faker::phone::SriLanka , faker::phone::Sudan , faker::phone::Suriname ,
  faker::phone::SvalbardAndJanMayenIslands , faker::phone::Sweden , faker::phone::Switzerland , faker::phone::SyrianArabRepublic ,
  faker::phone::Taiwan , faker::phone::Tajikistan , faker::phone::Tanzania , faker::phone::Thailand ,
  faker::phone::TimorLeste , faker::phone::Togo , faker::phone::Tonga , faker::phone::TrinidadAndTobago ,
  faker::phone::Tunisia , faker::phone::Turkey , faker::phone::Turkmenistan , faker::phone::TurksAndCaicosIslands ,
  faker::phone::Tuvalu , faker::phone::Uganda , faker::phone::Ukraine , faker::phone::UnitedArabEmirates ,
  faker::phone::UK , faker::phone::Usa , faker::phone::Uruguay , faker::phone::Uzbekistan ,
  faker::phone::Vanuatu , faker::phone::Venezuela , faker::phone::Vietnam , faker::phone::VirginIslandsBritish ,
  faker::phone::VirginIslandsUS , faker::phone::WallisAndFutuna , faker::phone::WesternSahara , faker::phone::Yemen ,
  faker::phone::Zambia , faker::phone::Zimbabwe
}
 

Functions

FAKER_CXX_EXPORT std::string faker::phone::phoneNumberByFormat (std::optional< std::string >=std::nullopt)
 Returns a random phone number.
 
FAKER_CXX_EXPORT std::string_view faker::phone::platform ()
 Returns a random phone platform.
 
FAKER_CXX_EXPORT std::string_view faker::phone::modelName ()
 Returns a random phone model.
 
FAKER_CXX_EXPORT std::string_view faker::phone::manufacturer ()
 Returns a random phone manufacturer.
 
FAKER_CXX_EXPORT std::string faker::phone::phoneNumberByCountry (std::optional< PhoneNumberCountryFormat > format=std::nullopt)
 Returns a random phone number based on country phone number template.
 
FAKER_CXX_EXPORT std::string faker::phone::imei ()
 Returns IMEI number.
 
FAKER_CXX_EXPORT std::string_view faker::phone::areaCode ()
 returns a random country area code
 
FAKER_CXX_EXPORT std::unordered_map< PhoneNumberCountryFormat, std::string > faker::phone::createPhoneNumberFormatMap ()