Modules§

Enums§

Statics§

Functions§

  • returns operator prefix of phone number (919,912,…)
  • returns phone prefix for example +98 98 based on given phone number This function returns an Option<&str>, where Some(prefix) contains the extracted prefix, and None is returned if no valid prefix is found.
  • This is a simple function that checks if a phone number valid or not
  • replaces current phone number prefix with your desired prefix