nationalPrefixOptionalWhenFormatting property

  1. @TagNumber(6)
bool nationalPrefixOptionalWhenFormatting

This field specifies whether the $NP can be omitted when formatting a number in national format, even though it usually wouldn't be. For example, a UK number would be formatted by our library as 020 XXXX XXXX. If we have commonly seen this number written by people without the leading 0, for example as (20) XXXX XXXX, this field would be set to true. This will be inherited from the value set for the territory in the XML file, unless a national_prefix_optional_when_formatting is defined specifically for this NumberFormat.

Implementation

@$pb.TagNumber(6)
$core.bool get nationalPrefixOptionalWhenFormatting => $_getBF(5);
  1. @TagNumber(6)
void nationalPrefixOptionalWhenFormatting=(bool v)

Implementation

@$pb.TagNumber(6)
set nationalPrefixOptionalWhenFormatting($core.bool v) {
  $_setBool(5, v);
}