Previous fileTop of DocumentContentsIndex pageNext file
Apache C++ Standard Library User's Guide

26.8 Formatting Phone Numbers

As mentioned earlier, the virtual function in the base class facet do_put() must be overridden in derived classes to actually implement locale dependent formatting of phone numbers. In the example below, we show do_put() (see //1) being overridden in the derived facet class US_phone_put to implement formatting phone numbers in the US style. This overridden version will be called by the base class's put() member function

For the sake of brevity, we spare you here the details of the actual implementation of the formatting in do_put().



Previous fileTop of DocumentContentsIndex pageNext file