Skip to content

Type traits for conversion #7

@dangelog

Description

@dangelog

The code needs to use a helper trait to allow iteration on something different than char / char16_t / char32_t. My idea is that such a trait tells which decoder to use (UTF-8 / 16 / 32) and how to convert a type T we're iterating upon to char/char16_t/char32_t. The trait must be customizable by the users.

At a minimum this should be supported:

  • QChar -> convert to char16_t via unicode()
  • ushort and other unsigned 16 bit integrals -> convert to char16_t
  • uint and other unsigned 32 bit integrals -> convert to char32_t
  • wchar_t -> 16 / 32 as needed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions