Beispiel #1
0
 def __init__(self, culture_info: CultureInfo = None):
     if culture_info is None:
         culture_info = CultureInfo(Culture.English)
     super().__init__(culture_info)
     self._WordBoundariesRegex = BasePhoneNumbers.WordBoundariesRegex
     self._NonWordBoundariesRegex = BasePhoneNumbers.NonWordBoundariesRegex
     self._EndWordBoundariesRegex = BasePhoneNumbers.EndWordBoundariesRegex
 def __init__(self, culture_info: CultureInfo = None):
     if culture_info is None:
         culture_info = CultureInfo(Culture.English)
     super().__init__(culture_info)
     self._WordBoundariesRegex = BasePhoneNumbers.WordBoundariesRegex
     self._NonWordBoundariesRegex = BasePhoneNumbers.NonWordBoundariesRegex
     self._EndWordBoundariesRegex = BasePhoneNumbers.EndWordBoundariesRegex
     self._ColonPrefixCheckRegex = BasePhoneNumbers.ColonPrefixCheckRegex
     self._ForbiddenPrefixMarkers = BasePhoneNumbers.ForbiddenPrefixMarkers
 def __init__(self):
     super().__init__(CultureInfo(Culture.Chinese))
     self.add_dict_to_unit_map(ChineseDateTime.DurationSuffixList)