Rogue Wave banner
Previous fileTop of DocumentContentsNext file

5.7 Using Phone Number Facets

Now that we have laid the groundwork, we will soon be ready to format phone numbers. Here is an example of how instances of the new facet class can be used:

//1Imbue an output stream with a locale object that has a phone number facet object. In the example above, it is the US English ASCII locale with a US phone number facet, and
//2A French locale using a French phone number facet with a particular country code table.
//3Output phone numbers using the inserter function. The output will be:

1-33-1-60170716
(541) 711-PARK
19 49 89 636 40938

Previous fileTop of DocumentContentsNext file

©Copyright 1998, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.


OEM Release, June 1998