BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bdlb::LiteralUtil Struct Reference

#include <bdlb_literalutil.h>

Static Public Member Functions

static void createQuotedEscapedCString (bsl::string *result, const bsl::string_view &input)
 
static void createQuotedEscapedCString (std::string *result, const bsl::string_view &input)
 

Member Function Documentation

◆ createQuotedEscapedCString() [1/2]

static void bdlb::LiteralUtil::createQuotedEscapedCString ( bsl::string result,
const bsl::string_view input 
)
static

Load into the specified result string the " delimited and escaped C/C++ string literal equivalent representing the same value as that of the specified input string. When the C string literal equivalent is translated by a compiler having C-compatible string literals, it will result in a string identical to the input string.

Note
Note that this code uses the (ASCII) '\' character, rather than Unicode code points for escapes.

◆ createQuotedEscapedCString() [2/2]

static void bdlb::LiteralUtil::createQuotedEscapedCString ( std::string *  result,
const bsl::string_view input 
)
static

The documentation for this struct was generated from the following file: