std::regex_traits::getloc - cppreference.com (original) (raw)

C++

Compiler support
Freestanding and hosted
Language
Standard library
Standard library headers
Named requirements
Feature test macros (C++20)
Language support library
Concepts library (C++20)
Diagnostics library
Memory management library
Metaprogramming library (C++11)
General utilities library
Containers library
Iterators library
Ranges library (C++20)
Algorithms library
Strings library
Text processing library
Numerics library
Date and time library
Input/output library
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Technical specifications
Symbols index
External libraries

[edit]

Text processing library

Localization library
Regular expressions library (C++11)
Formatting library (C++20)
Null-terminated sequence utilities
Byte strings
Multibyte strings
Wide strings
Primitive numeric conversions
to_chars(C++17) to_chars_result(C++17) from_chars(C++17) from_chars_result(C++17) chars_format(C++17)
Text encoding identifications
text_encoding(C++26)

[edit]

Regular expressions library

Classes
basic_regex(C++11)
sub_match(C++11)
match_results(C++11)
Algorithms
regex_match(C++11)
regex_search(C++11)
regex_replace(C++11)
Iterators
regex_iterator(C++11)
regex_token_iterator(C++11)
Exceptions
regex_error(C++11)
Traits
regex_traits(C++11)
Constants
syntax_option_type(C++11)
match_flag_type(C++11)
error_type(C++11)
Regex Grammar
Modified ECMAScript-262(C++11)

[edit]

std::regex_traits

Member functions
regex_traits::regex_traits
regex_traits::length
regex_traits::translate
regex_traits::translate_nocase
regex_traits::transform
regex_traits::transform_primary
regex_traits::lookup_collatename
regex_traits::lookup_classname
regex_traits::isctype
regex_traits::value
regex_traits::imbue
regex_traits::getloc

[edit]

| locale_type getloc() const; | | (since C++11) | | ---------------------------- | | ------------- |

Returns the current locale of the traits object.

If imbue() has been never called for this object, then the global locale at the time of the call is returned. Otherwise, the locale passed to the last call to imbue() is returned.

Contents

[edit] Parameters

(none)

[edit] Return value

The current locale of the traits object.

[edit] Example

This section is incompleteReason: no example

[edit] See also

imbue sets the locale (public member function) [edit]