const char16_t * wrapper with implicit conversion from distinct but bit-compatible pointer types.
More...
#include <char16ptr.h>
const char16_t * wrapper with implicit conversion from distinct but bit-compatible pointer types.
- Draft:
- This API may be changed in the future versions and was introduced in ICU 59
Definition at line 146 of file char16ptr.h.
◆ ConstChar16Ptr() [1/4]
icu::ConstChar16Ptr::ConstChar16Ptr |
( |
const char16_t * |
p | ) |
|
|
inline |
Copies the pointer.
- Parameters
-
- Draft:
- This API may be changed in the future versions and was introduced in ICU 59
Definition at line 234 of file char16ptr.h.
◆ ConstChar16Ptr() [2/4]
icu::ConstChar16Ptr::ConstChar16Ptr |
( |
const uint16_t * |
p | ) |
|
|
inline |
Converts the pointer to char16_t *.
- Parameters
-
- Draft:
- This API may be changed in the future versions and was introduced in ICU 59
Definition at line 236 of file char16ptr.h.
◆ ConstChar16Ptr() [3/4]
icu::ConstChar16Ptr::ConstChar16Ptr |
( |
const wchar_t * |
p | ) |
|
|
inline |
Converts the pointer to char16_t *.
(Only defined if U_SIZEOF_WCHAR_T==2.)
- Parameters
-
- Draft:
- This API may be changed in the future versions and was introduced in ICU 59
◆ ConstChar16Ptr() [4/4]
icu::ConstChar16Ptr::ConstChar16Ptr |
( |
const std::nullptr_t |
p | ) |
|
|
inline |
nullptr constructor.
- Parameters
-
- Draft:
- This API may be changed in the future versions and was introduced in ICU 59
Definition at line 241 of file char16ptr.h.
◆ ~ConstChar16Ptr()
icu::ConstChar16Ptr::~ConstChar16Ptr |
( |
| ) |
|
|
inline |
Destructor.
- Draft:
- This API may be changed in the future versions and was introduced in ICU 59
Definition at line 242 of file char16ptr.h.
◆ get()
const char16_t * icu::ConstChar16Ptr::get |
( |
| ) |
const |
|
inline |
Pointer access.
- Returns
- the wrapped pointer
- Draft:
- This API may be changed in the future versions and was introduced in ICU 59
Definition at line 244 of file char16ptr.h.
◆ operator const char16_t *()
icu::ConstChar16Ptr::operator const char16_t * |
( |
| ) |
const |
|
inline |
char16_t pointer access via type conversion (e.g., static_cast).
- Returns
- the wrapped pointer
- Draft:
- This API may be changed in the future versions and was introduced in ICU 59
Definition at line 195 of file char16ptr.h.
The documentation for this class was generated from the following file: