8#ifndef INCLUDED_BDLDE_CHARCONVERTUCS2
9#define INCLUDED_BDLDE_CHARCONVERTUCS2
308#include <bdlscm_version.h>
312#include <bsl_cstddef.h>
313#include <bsl_string.h>
314#include <bsl_vector.h>
344 bsl::size_t dstCapacity,
345 const char *srcString,
346 bsl::size_t *numCharsWritten = 0,
347 unsigned short errorCharacter =
'?');
350 const char *srcString,
351 unsigned short errorCharacter =
'?');
377 const char *srcString,
378 unsigned short errorCharacter =
'?');
379#ifdef BSLS_LIBRARYFEATURES_HAS_CPP17_PMR
381 std::pmr::vector<unsigned short> *result,
382 const char *srcString,
383 unsigned short errorCharacter =
'?');
400 bsl::size_t dstCapacity,
401 const unsigned short *srcString,
402 bsl::size_t *numCharsWritten = 0,
403 bsl::size_t *numBytesWritten = 0);
406 const unsigned short *srcString,
407 bsl::size_t *numCharsWritten = 0);
435 const unsigned short *srcString,
436 bsl::size_t *numCharsWritten = 0);
437#ifdef BSLS_LIBRARYFEATURES_HAS_CPP17_PMR_STRING
438 static int ucs2ToUtf8(std::pmr::string *result,
439 const unsigned short *srcString,
440 bsl::size_t *numCharsWritten = 0);
Definition bslstl_string.h:1281
Definition bslstl_vector.h:1025
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bdlde_base64alphabet.h:118
Definition bdlde_charconvertucs2.h:339
static int ucs2ToUtf8(char *dstBuffer, bsl::size_t dstCapacity, const unsigned short *srcString, bsl::size_t *numCharsWritten=0, bsl::size_t *numBytesWritten=0)
static int utf8ToUcs2(std::vector< unsigned short > *result, const char *srcString, unsigned short errorCharacter='?')
static int ucs2ToUtf8(std::string *result, const unsigned short *srcString, bsl::size_t *numCharsWritten=0)
static int utf8ToUcs2(unsigned short *dstBuffer, bsl::size_t dstCapacity, const char *srcString, bsl::size_t *numCharsWritten=0, unsigned short errorCharacter='?')
static int utf8ToUcs2(bsl::vector< unsigned short > *result, const char *srcString, unsigned short errorCharacter='?')
static int ucs2ToUtf8(bsl::string *result, const unsigned short *srcString, bsl::size_t *numCharsWritten=0)