[#BloombergLP-bslim-FuzzUtil-consumeRandomLengthAsciiString-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslim.adoc[bslim]::xref:BloombergLP/bslim/FuzzUtil.adoc[FuzzUtil]::consumeRandomLengthAsciiString :relfileprefix: ../../../ :mrdocs: `consumeRandomLengthAsciiString` overloads == Synopses Declared in `<bslim_fuzzutil.h>` Load into the specified `output` a string consisting of printable ASCII characters of length from 0 to the specified `maxLength`. If the specified `fuzzDataView` has fewer bytes than `maxLength`, load at most `fuzzDataView‐>length()` bytes into `output`. If the buffer in `fuzzDataView` contains two successive backslash characters, then in `output` they will be converted to a single backslash () character; if a single backslash character is encountered, the consumption of bytes is terminated. Note that because double backslashes are mapped to single backslashes, more than `maxLength` bytes may be consumed from the buffer to produce the `output`. Also note that the generated string is also a valid UTF‐8 string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/bslim/FuzzUtil/consumeRandomLengthAsciiString-00.adoc[consumeRandomLengthAsciiString]( xref:bsl/string.adoc[bsl::string]* output, xref:BloombergLP/bslim/FuzzDataView.adoc[FuzzDataView]* fuzzDataView, std::size_t maxLength); ---- [.small]#xref:BloombergLP/bslim/FuzzUtil/consumeRandomLengthAsciiString-00.adoc[_» more..._]# Same as the preceding overload for `std::pmr::string`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/bslim/FuzzUtil/consumeRandomLengthAsciiString-09.adoc[consumeRandomLengthAsciiString]( std::pmr::string* output, xref:BloombergLP/bslim/FuzzDataView.adoc[FuzzDataView]* fuzzDataView, std::size_t maxLength); ---- [.small]#xref:BloombergLP/bslim/FuzzUtil/consumeRandomLengthAsciiString-09.adoc[_» more..._]# Same as the preceding overload for `std::string`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/bslim/FuzzUtil/consumeRandomLengthAsciiString-0f.adoc[consumeRandomLengthAsciiString]( std::string* output, xref:BloombergLP/bslim/FuzzDataView.adoc[FuzzDataView]* fuzzDataView, std::size_t maxLength); ---- [.small]#xref:BloombergLP/bslim/FuzzUtil/consumeRandomLengthAsciiString-0f.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#