O'Reilly logo

The C++ Programming Language, Fourth Edition by Bjarne Stroustrup

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required