# std_string.h File Reference

C++ API: Central ICU header for including the C++ standard <string> header and for related definitions. More...

`#include "unicode/utypes.h"`
`#include <string>`

Go to the source code of this file.

## Defines
#define | U_HAVE_STD_STRING 1
| Define whether the standard C++ (STL) <string> header is available.
#define | U_STD_NS
| Define the namespace to use for standard C++ (STL) classes.
#define | U_STD_NSQ
| Define the namespace qualifier to use for standard C++ (STL) classes.
#define | U_STD_NS_USE
| This is used to specify that the rest of the code uses the standard (STL) namespace.

## Detailed Description

C++ API: Central ICU header for including the C++ standard <string> header and for related definitions.

Definition in file std_string.h.

## Define Documentation

#define U_HAVE_STD_STRING 1

Define whether the standard C++ (STL) <string> header is available.

Draft:
  This API may be changed in the future versions and was introduced in ICU 4.2

Definition at line 34 of file std_string.h.

#define U_STD_NS

Define the namespace to use for standard C++ (STL) classes.

Either std or empty.

Draft:
  This API may be changed in the future versions and was introduced in ICU 4.2

Definition at line 70 of file std_string.h.

#define U_STD_NS_USE

This is used to specify that the rest of the code uses the standard (STL) namespace.

Either "using namespace std;" or empty.

Draft:
  This API may be changed in the future versions and was introduced in ICU 4.2

Definition at line 72 of file std_string.h.

#define U_STD_NSQ

Define the namespace qualifier to use for standard C++ (STL) classes.

Either std:: or empty. For example, U_STD_NSQ string StringFromUnicodeString(const UnicodeString &unistr);

Draft:
  This API may be changed in the future versions and was introduced in ICU 4.2

Definition at line 71 of file std_string.h.