Campbell Ritchie wrote:Neither the "022" nor the "25555555" bit is a number...
But neither are they Strings.
Sorry to disagree, but I've had quite a lot of exposure to composite codes (which is, in fact, what a phone number is) in my career; and I
hate the assumption that you can simply regard them as numeric Strings and be done with.
Telephone numbers, unfortunately, have been around (and persist) for an awfully long time in computer terms; so it's quite difficult to pinpoint a specific standard for them, but
this might be a good place to start. However, I'd suspect very strongly that
any area code beginning with '0' is an error.
The structure is basically: [country-code]-[area-code]-[
exchange]-[number] (with the 2nd and/or third sometimes being omitted in small countries), and the last of these is most certainly a number because they are allocated/reallocated on a (normally) cyclic rotation until exhausted. There are obvious exceptions for emergency numbers and some other services (such as directory enquiries). If you are dialling '0' (and not '00') initially, it usually indicates that the call is internal to a country and actually has nothing to do with the number itself (at least as an identifier).
HIH
Winston (ex-Tel employee and geek)