[#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 `&lt;bslim&lowbar;fuzzutil&period;h&gt;`

Load into `output` a printable ASCII string of length at most `maxLength`&period;


[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&lowbar;t maxLength);
----

[.small]#xref:BloombergLP/bslim/FuzzUtil/consumeRandomLengthAsciiString-00.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for `std&colon;&colon;pmr&colon;&colon;string`&period;


[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&lowbar;t maxLength);
----

[.small]#xref:BloombergLP/bslim/FuzzUtil/consumeRandomLengthAsciiString-09.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for `std&colon;&colon;string`&period;


[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&lowbar;t maxLength);
----

[.small]#xref:BloombergLP/bslim/FuzzUtil/consumeRandomLengthAsciiString-0f.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *output*
| destination for the generated string
| *fuzzDataView*
| view providing fuzz input bytes
| *maxLength*
| maximum number of characters to load into `output`
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
