Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
TryCreate()
[2/4]
static
bool
System.Text.Rune.TryCreate
(
char
highSurrogate
,
char
lowSurrogate
,
out
Rune
result
)
inline
static
Definition at line
522
of file
Rune.cs
.
523
{
524
uint num = (uint)(highSurrogate - 55296);
525
uint num2 = (uint)(lowSurrogate - 56320);
526
if
((num | num2) <= 1023)
527
{
528
result =
UnsafeCreate
((uint)((
int
)(num << 10) + (lowSurrogate - 56320) + 65536));
529
return
true
;
530
}
531
result =
default
(
Rune
);
532
return
false
;
533
}
System.Text.Rune.UnsafeCreate
static Rune UnsafeCreate(uint scalarValue)
Definition
Rune.cs:643
System.Text.Rune.Rune
Rune(char ch)
Definition
Rune.cs:61
References
System.Text.Rune.UnsafeCreate()
.
System
Text
Rune
Generated by
1.10.0