TChar::ToUnsigned

Syntax

static uint32 ToUnsigned
(
    CharType Char
)

Remarks

Avoid sign extension problems with signed characters smaller than int

E.g. 'Ö' - 'A' is negative since the char 'Ö' (0xD6) is negative and gets sign-extended to the 32-bit int 0xFFFFFFD6 before subtraction happens.

Mainly needed for subtraction and addition.

References

Module

Core

Header

Runtime/Core/Public/Misc/Char.h