Apache C++ Standard Library Reference Guide

## <locale>

Library: Localization

    Header

- Local Index
- Summary
- Synopsis
- See Also
- Standards Conformance

### Local Index

No Entries

### Summary

The header `<locale>` represents the Localization library of the C++ Standard Library. It defines the class locale, and a set of class and function templates for localization of software.

### Synopsis

    namespace std {
      class locale;
      template <class Facet> const
               Facet& use_facet(const locale&);
      template <class Facet> bool
               has_facet(const locale&) throw();

      template <class charT> bool isspace(charT, const locale&);
      template <class charT> bool isprint(charT, const locale&);
      template <class charT> bool iscntrl(charT, const locale&);
      template <class charT> bool isupper(charT, const locale&);
      template <class charT> bool islower(charT, const locale&);
      template <class charT> bool isalpha(charT, const locale&);
      template <class charT> bool isdigit(charT, const locale&);
      template <class charT> bool ispunct(charT, const locale&);
      template <class charT> bool isxdigit(charT, const locale&);
      template <class charT> bool isalnum(charT, const locale&);
      template <class charT> bool isgraph(charT, const locale&);
      template <class charT> charT toupper(charT, const locale&);
      template <class charT> charT tolower(charT, const locale&);

      class ctype_base;
      template <class charT> class ctype;
      template <> class ctype<char>;
      template <class charT> class ctype_byname;
      template <> class ctype_byname<char>;
      class codecvt_base;
      template <class internT, class externT, class stateT>
      class codecvt;
      template <class internT, class externT, class stateT>
      class codecvt_byname;

      template <class charT, class InputIterator>  class num_get;
      template <class charT, class OutputIterator> class num_put;
      template <class charT> class numpunct;
      template <class charT> class numpunct_byname;

      template <class charT> class collate;
      template <class charT> class collate_byname;

      class time_base;
      template <class charT, class InputIterator>
      class time_get;
      template <class charT, class InputIterator>
      class time_get_byname;
      template <class charT, class OutputIterator> class time_put;
      template <class charT, class OutputIterator>
      class time_put_byname;

      class money_base;
      template <class charT, class InputIterator>
           class money_get;
      template <class charT, class OutputIterator>
           class money_put;
      template <class charT, bool Intl> class moneypunct;
      template <class charT, bool Intl> class moneypunct_byname;

      class messages_base;
      template <class charT> class messages;
      template <class charT> class messages_byname;
    }

### See Also

locale, `has_facet()`, `use_facet()`, `isspace()`, `isprint()`, `iscntrl()`, `isupper()`, `islower()`, `isalpha()`, `isdigit()`, `ispunct()`, `isxdigit()`, `isalnum()`, `isgraph()`, `toupper()`, `tolower()`, Facets, ctype, ctype_byname, num_get, num_put, numpunct, numpunct_byname, collate, collate_byname, time_get, time_get_byname, time_put, time_put_byname, money_get, money_put, moneypunct, moneypunct_byname, messages, messages_byname

### Standards Conformance

ISO/IEC 14882:1998 -- International Standard for Information Systems --Programming Language C++, Section 22.1