Alias std.utf.byUTF
Iterate an input range
 of characters by char type C by encoding the elements of the range.
						
					
				UTF sequences that cannot be converted to the specified encoding are either
 replaced by U+FFFD per "5.22 Best Practice for U+FFFD Substitution"
 of the Unicode Standard 6.2 or result in a thrown UTFException.
  Hence byUTF is not symmetric.
 This algorithm is lazy, and does not allocate memory.
 @nogc, pure-ity, nothrow, and @safe-ty are inferred from the
 r parameter.
Parameters
| Name | Description | 
|---|---|
| C | char,wchar, ordchar | 
| useReplacementDchar | UseReplacementDchar.yes means replace invalid UTF with replacementDchar,
                            UseReplacementDchar.no means throwUTFExceptionfor invalid UTF | 
Throws
UTFException if invalid UTF sequence and useReplacementDchar is set to UseReplacementDchar
GC
Does not use GC if useReplacementDchar is set to UseReplacementDchar
Returns
A bidirectional range if R is a bidirectional range and not auto-decodable,
      as defined by isAutodecodableString.
      A forward range if R is a forward range and not auto-decodable.
      Or, if R is a range and it is auto-decodable and
      is(ElementEncodingType!typeof(r) == C), then the range is passed
      to byCodeUnit.
Otherwise, an input range of characters.
Example
import stdExample
import stdExample
import std