---
Product: Aspose.Cells
Platform: cpp
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/cpp/displaytextlocalesupport
---

# DisplayTextLocaleSupport

## Overview

`DisplayTextLocaleSupport` is a class in Aspose.Cells FOSS for C++.

Internal helper for parsing and applying locale directives (e.g. [$-0409], [$-F800]) embedded in Excel format strings.

This class declares 2 methods for DisplayTextLocaleSupport objects in C++ programs.
Available methods include: `ApplyLocaleDirectives`, `DisplayTextLocaleSupport`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `DisplayTextLocaleSupport()` | Calls DisplayTextLocaleSupport on this DisplayTextLocaleSupport instance. |
| `ApplyLocaleDirectives(section: std::string_view, defaultCulture: std::locale, sectionCulture: std::locale)` → `std::string` | Scans the given format section for [$-XXXX] locale directives, replacing each directive with the appropriate literal text and updating sectionCulture to the resolved locale. directives (or defaultCulture when none are found). |

## See Also

- [Aspose.Cells — Enterprise API Reference](https://reference.aspose.com/cells/)