Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      Localization library

      From cppreference.com
      <cpp
       
       
       
      Localization library
       

      The locale facility includes internationalization support for character classification and string collation, numeric, monetary, and date/time formatting and parsing, and message retrieval. Locale settings control the behavior of stream I/O, regular expression library, and other components of the C++ standard library.

      Contents

      [edit]Locales and facets

      Defined in header<locale>
      Locales
      set of polymorphic facets that encapsulate cultural differences
      (class)[edit]
      obtains a facet from a locale
      (function template)[edit]
      checks if a locale implements a specific facet
      (function template)[edit]
      Facet category base classes
      defines character classification categories
      (class)[edit]
      defines character conversion errors
      (class)[edit]
      defines messages catalog type
      (class)[edit]
      defines date format constants
      (class)[edit]
      defines monetary formatting patterns
      (class)[edit]
      ctype facets
      defines character classification tables
      (class template)[edit]
      represents the system-suppliedstd::ctype for the named locale
      (class template)[edit]
      specialization ofstd::ctype for typechar
      (class template specialization)[edit]
      converts between character encodings, including UTF-8, UTF-16, UTF-32
      (class template)[edit]
      represents the system-suppliedstd::codecvt for the named locale
      (class template)[edit]
      numeric facets
      parses numeric values from an input character sequence
      (class template)[edit]
      formats numeric values for output as character sequence
      (class template)[edit]
      defines numeric punctuation rules
      (class template)[edit]
      represents the system-suppliedstd::numpunct for the named locale
      (class template)[edit]
      collate facets
      defines lexicographical comparison and hashing of strings
      (class template)[edit]
      represents the system-suppliedstd::collate for the named locale
      (class template)[edit]
      time facets
      parses time/date values from an input character sequence intostd::tm
      (class template)[edit]
      represents the system-suppliedstd::time_get for the named locale
      (class template)[edit]
      formats contents ofstd::tm for output as character sequence
      (class template)[edit]
      represents the system-suppliedstd::time_put for the named locale
      (class template)[edit]
      monetary facets
      parses and constructs a monetary value from an input character sequence
      (class template)[edit]
      formats a monetary value for output as a character sequence
      (class template)[edit]
      defines monetary formatting parameters used bystd::money_get andstd::money_put
      (class template)[edit]
      represents the system-suppliedstd::moneypunct for the named locale
      (class template)[edit]
      messages facets
      implements retrieval of strings from message catalogs
      (class template)[edit]
      represents the system-suppliedstd::messages for the named locale
      (class template)[edit]

      [edit]Character classification and conversion

      Defined in header<locale>
      Character classification
      checks if a character is classified as whitespace by a locale
      (function template)[edit]
      checks if a character is classified as a blank character by a locale
      (function template)[edit]
      checks if a character is classified as a control character by a locale
      (function template)[edit]
      checks if a character is classified as uppercase by a locale
      (function template)[edit]
      checks if a character is classified as lowercase by a locale
      (function template)[edit]
      checks if a character is classified as alphabetic by a locale
      (function template)[edit]
      checks if a character is classified as a digit by a locale
      (function template)[edit]
      checks if a character is classified as punctuation by a locale
      (function template)[edit]
      checks if a character is classified as a hexadecimal digit by a locale
      (function template)[edit]
      checks if a character is classified as alphanumeric by a locale
      (function template)[edit]
      checks if a character is classified as printable by a locale
      (function template)[edit]
      checks if a character is classified as graphical by a locale
      (function template)[edit]
      Character conversions
      converts a character to uppercase using the ctype facet of a locale
      (function template)[edit]
      converts a character to lowercase using thectype facet of a locale
      (function template)[edit]
      String and stream conversions
      (C++11)(deprecated in C++17)(removed in C++26)
      performs conversions between a wide string and a byte string
      (class template)[edit]
      (C++11)(deprecated in C++17)(removed in C++26)
      performs conversion between a byte stream buffer and a wide stream buffer
      (class template)[edit]

      Locale-independent unicode conversion facets

      Defined in header<codecvt>
      (C++11)(deprecated in C++17)(removed in C++26)
      converts between UTF-8 and UCS-2/UCS-4
      (class template)[edit]
      (C++11)(deprecated in C++17)(removed in C++26)
      converts between UTF-16 and UCS-2/UCS-4
      (class template)[edit]
      (C++11)(deprecated in C++17)(removed in C++26)
      converts between UTF-8 and UTF-16
      (class template)[edit]
      (C++11)(deprecated in C++17)(removed in C++26)
      tags to alter behavior of the standard codecvt facets
      (enum)[edit]
      (until C++26)

      [edit]C library locales

      Defined in header<clocale>
      gets and sets the current C locale
      (function)[edit]
      locale categories forstd::setlocale
      (macro constant)[edit]
      queries numeric and monetary formatting details of the current locale
      (function)[edit]
      formatting details, returned bystd::localeconv
      (class)[edit]

      [edit]See also

      C documentation forLocalization support
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/locale&oldid=179015"

      [8]ページ先頭

      ©2009-2025 Movatter.jp