 // Conversions between different Unicode encodings.  Note that UTF-16 and
 // UTF-32 decoding are *not* currently resilient to erroneous data.
 
-enum UTFDecodeResult {
+enum UnicodeDecodingResult {
   case Result(UnicodeScalar)
   case EmptyInput
   case Error


  @public mutating func decode<
    G : Generator where G.Element == CodeUnit
  >(inout next: G) -> UTFDecodeResult {
    // If the EOF flag is not set, fill the lookahead buffer from the input
    // generator.
    if _lookaheadFlags & 0b1111_0000 == 0 {


  @public mutating func decode<
    G : Generator where G.Element == CodeUnit
  >(inout input: G) -> UnicodeDecodingResult {
    if _lookaheadFlags & 0b01 != 0 {
      return .EmptyInput
    }
