Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetUtf8SequenceLength()

static int System.Text.UnicodeUtility.GetUtf8SequenceLength ( uint value)
inlinestatic

Definition at line 32 of file UnicodeUtility.cs.

33 {
34 int num = (int)(value - 2048) >> 31;
35 value ^= 0xF800u;
36 value -= 63616;
37 value += 67108864;
38 value >>= 24;
39 return (int)value + num * 2;
40 }

References System.value.