39. Locales

When in Rome, do as the Romans do.

– Proverb

Handling Cultural Differences

Class locale

Named locales; Comparing strings

Class facet

Accessing facets in a locale; A Simple User-defined facet; Uses of locales and facets

Standard facets

string Comparison; Numeric Formatting; Money Formatting; Date and Time Formatting; Character Classification; Character Code Conversion; Messages

Convenience Interfaces

Character Classifications; Character Conversions; String Conversions; Buffer Conversions

Advice

39.1. Handling Cultural Differences

A locale is an object that represents a set of cultural preferences, such as how strings are compared, the way numbers appear as human-readable output, and the way characters are represented in ...

Get The C++ Programming Language, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.