func()

in metadata_util.go [4:23]


func (nf *NumberFormat) merge(other *NumberFormat) {
	if other.Pattern != nil {
		nf.Pattern = other.Pattern
	}
	if other.Format != nil {
		nf.Format = other.Format
	}
	for i := 0; i < len(other.LeadingDigitsPattern); i++ {
		nf.LeadingDigitsPattern = append(nf.LeadingDigitsPattern, other.LeadingDigitsPattern[i])
	}
	if other.NationalPrefixFormattingRule != nil {
		nf.NationalPrefixFormattingRule = other.NationalPrefixFormattingRule
	}
	if other.DomesticCarrierCodeFormattingRule != nil {
		nf.DomesticCarrierCodeFormattingRule = other.DomesticCarrierCodeFormattingRule
	}
	if other.NationalPrefixOptionalWhenFormatting != nil {
		nf.NationalPrefixOptionalWhenFormatting = other.NationalPrefixOptionalWhenFormatting
	}
}