BloombergLP::bdls::FilesystemUtil_CStringUtil::flatten

flatten overloads

Synopses

Declared in <bdls_filesystemutil.h>

Return a temporary bsl::string constructed from the specified stringRef.

static
bsl::string
flatten(bslstl::StringRef const& stringRef);
» more...

Return the result of invoking c_str() on the specified string.

static
char const*
flatten(bsl::string const& string);
» more...

Return a null-terminated C string for the specified string.

static
char const*
flatten(std::pmr::string const& string);
» more...

Return a null-terminated C string for the specified string.

static
char const*
flatten(std::string const& string);
» more...

Return a temporary bsl::string constructed from the specified stringView.

static
bsl::string
flatten(std::string_view const& stringView);
» more...

Return the specified cString.

static
char const*
flatten(char* cString);
» more...

Return the specified cString.

static
char const*
flatten(char const* cString);
» more...

Produce a compile-time error informing the caller that the parameterized TYPE is not supported as the parameter for the call.

template<class TYPE>
static
char const*
flatten(TYPE const& value);
» more...

Return Value

  • a temporary bsl::string constructed from stringRef
  • the null-terminated C string from string.c_str()
  • a temporary bsl::string constructed from stringView
  • the specified cString
  • never returns; the call is ill-formed for unsupported TYPE

Parameters

NameDescription
stringRefstring reference used to construct the temporary
stringstring whose c_str() result is returned
stringViewstring view used to construct the temporary
cStringnull-terminated C string to return
valueobject of an unsupported type