Encode input characters to hexadecimal output.

Synopsis

Declared in <bdlde_hexencoder.h>

template<
    class OUTPUT_ITERATOR,
    class INPUT_ITERATOR>
int
convert(
    OUTPUT_ITERATOR out,
    INPUT_ITERATOR begin,
    INPUT_ITERATOR end);

Description

Append pending output (if any) addressed by the specified out, then consume and encode input from the specified begin up to but not including the specified end. Return a non‐negative value on success and a negative value otherwise. Note that after all calls to convert are finished, endConvert should be called to complete encoding of any unprocessed input.

Return Value

a non‐negative value on success, and a negative value otherwise

Parameters

Name

Description

out

destination iterator for encoded output

begin

beginning of the input range to encode

end

end of the input range (one past the last element)

Created with MrDocs